]> gcc.gnu.org Git - gcc.git/blob - gcc/ChangeLog
cpplex.c (_cpp_init_toklist): No comment space to initialise.
[gcc.git] / gcc / ChangeLog
1 2000-05-28 Neil Booth <NeilB@earthling.net>
2
3 * cpplex.c (_cpp_init_toklist): No comment space to initialise.
4 (_cpp_free_toklist): No comment space to free.
5 (expand_comment_space): Remove.
6 (save_comment_space): Place the comment in the current token and
7 not in a separate comment space.
8 (_cpp_lex_line): Save comments during plain code and #define
9 directives only.
10 * cpplib.h (struct _cpp_toklist): Remove comment space.
11
12 2000-05-28 Neil Booth <NeilB@earthling.net>
13
14 * cppexp.c (parse_assertion): Supply extra argument to
15 _cpp_init_toklist.
16 * cpplib.c (do_assert, do_unassert): Similarly.
17 * cpphash.h (_cpp_init_toklist) Update.
18 (_cpp_expand_token_space): New.
19 (DUMMY_TOKEN, NO_DUMMY_TOKEN): New.
20 * cpplex.c (_cpp_init_toklist): New argument.
21 (parse_string2): New argument multiline_ok.
22 (spell_token): Take a const cpp_token *.
23 (INIT_NAME): Replace with INIT_TOKEN_NAME. Update tokens_used.
24 (SPELL_ macros): Replace with enum.
25 (expand_token_space): Replace with _cpp_expand_token_space.
26 Take COUNT argument.
27 (IS_DIRECTIVE): Update.
28 (_cpp_lex_line): Update token structure before parsing number.
29 Don't assume start at beginning of token list.
30 (save_comment): Use INIT_TOKEN_NAME.
31
32 2000-05-27 Zack Weinberg <zack@wolery.cumb.org>
33
34 * configure.in (stage1_warn_cflags): Add -Wstrict-prototypes
35 -Wmissing-prototypes.
36 * configure: Regenerate.
37 * gcc.texi: Remove explanation of MD_CALL_PROTOTYPES.
38
39 * builtins.c, calls.c: Change all instances of gen_call_* or
40 gen_sibcall_* to GEN_CALL_* and GEN_SIBCALL_*.
41 * calls.c (struct_value_size_rtx): Separate definition from
42 initialization to avoid unused variable warning.
43
44 * genflags.c (gen_macro): New function.
45 (gen_proto): Call it for gen_call_* and gen_sibcall_*.
46 (gen_nonproto): Delete.
47 (gen_insn): Put all insns on the same obstack.
48 (main): Generate prototypes for everything unconditionally.
49
50 * configure.in: Add AC_CHECK_TYPE(ssize_t). Remove commented
51 out check for wchar_t.
52 * acconfig.h: Add template for ssize_t. Remove @TOP@.
53 * system.h: Add infrastructure for defining missing
54 TYPE_MAX/TYPE_MIN macros. Use it to provide fallback
55 definitions of UCHAR_MAX and SSIZE_MAX.
56 * configure: Regenerate.
57 * config.in: Regenerate.
58
59 * Makefile.in (libgcc2.ready): Rename to libgcc.ready.
60 Depend on $(LANGUAGES) as well as $(GCC_PATCHES) and fixed
61 headers.
62 (clean): No need to delete libgcc1.a, libgcc1-asm.a,
63 libgcc2.a, or libgcc1.null.
64
65 2000-05-27 Richard Henderson <rth@cygnus.com>
66
67 * Makefile.in (recog.o): Don't depend on resource.h.
68 * recog.c: Don't include resource.h.
69 (recog_last_allowed_insn): Remove.
70 (recog_next_insn): Remove.
71 (struct peep2_insn_data): New.
72 (peep2_insn_data, peep2_current): New.
73 (peep2_next_insn): New.
74 (peep2_regno_dead_p, peep2_reg_dead_p): New.
75 (peep2_find_free_register): New.
76 (peephole2_optimize): Track life information by insn as we go.
77 * recog.h: Update declarations.
78 * resource.c (find_free_register, reg_dead_p): Remove.
79 * resource.h: Remove their declarations.
80 * toplev.c: Include hard-reg-set.h before recog.h.
81
82 * genconfig.c (max_insns_per_peep2): New.
83 (gen_peephole2): New.
84 (main): Call it.
85 * genemit.c (output_peephole2_scratches): Generate calls to
86 peep2_find_free_register; adjust surrounding code.
87 (main): Have insn-emit.c include hard-reg-set.h before recog.h.
88 * genrecog.c (change_state): Don't track last_insn.
89 (write_action): Write into *_pmatch_len before accepting.
90 (write_tree): Adjust peephole2_insns and subroutines to match.
91
92 * config/i386/i386.md (all peepholes): Use peep2_regno_dead_p.
93
94 * config/alpha/alpha.c (hard_fp_register_operand): Mind the mode.
95 (hard_int_register_operand): New.
96 * config/alpha/alpha-protos.h: Declare it.
97 * config/alpha/alpha.h (PREDICATE_CODES): Update.
98 * config/alpha/alpha.md (peep2 patterns): Use hard_int_register_operand
99 as needed; use peep2_reg_dead_p instead of dead_or_set_p.
100
101 2000-05-27 Richard Henderson <rth@cygnus.com>
102
103 * function.c (thread_prologue_epilogue_insns): Don't move the
104 line note at the head of the chain. Only force a lineno note
105 before the end of block 0.
106
107 2000-05-27 Richard Henderson <rth@cygnus.com>
108
109 * gensupport.c (collect_insn_data): Record the maximum number
110 of alternatives, not the last seen.
111
112 * genoutput.c: Don't include errors.h.
113 (struct data): Add lineno member.
114 (have_error): New.
115 (scan_operands): Use message_with_line instead of error.
116 (validate_insn_alternatives): Likewise.
117 (gen_insn): Accept and store the pattern's line number.
118 (gen_peephole, gen_expand, gen_split): Likewise.
119 (main): Don't set progname. Pass line_no to gen_foo.
120
121 2000-05-27 Richard Henderson <rth@cygnus.com>
122
123 * config/d30v/d30v.c (d30v_print_operand): Handle ':'.
124 * config/d30v/d30v.h (PRINT_OPERAND_PUNCT_VALID_P): Accept ':'.
125 * config/d30v/d30v.md (attr predicable): New.
126 (all insn patterns): Mark non-predicable patterns; use %: on the rest.
127 (andsi3*): Unify into one pattern.
128 (iorsi3*, xorsi3*): Likewise.
129 (peephole2 patterns): Use peep2_reg_dead_p; verify not a
130 conditional return.
131 (old cond_exec patterns): Remove.
132 (define_cond_exec): New.
133
134 Sat May 27 11:01:27 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
135
136 * tree.h (TREE_CODE_LENGTH): New macro.
137 * c-common.c (c_find_base_decl): Use it.
138 * expr.c (safe_from_p): Likewise.
139 * print-tree.c (print_node): Likewise.
140 * tree.c (make_node, copy_node, get_identifier): Likewie.
141 (first_rtl_op, contains_placeholder_p, substitute_in_expr): Likewise.
142 (build, build_nt, build_parse_node, simple_cst_equal): Likewise.
143 * fold-const.c (make_range): Likewise.
144 (fold): Likewise; also use first_rtl_op.
145 * c-iterate.c (collect_iterators): Use first_rtl_op.
146 * calls.c (calls_function_1): Likewise; also rename TYPE to CLASS.
147 Use IS_EXPR_CODE_CLASS.
148 (preexpand_calls): Likewise.
149 * ggc-common.c (ggc_mark_trees): Rework to use first_rtl_op
150 and TREE_CODE_LENGTH.
151 * stmt.c (warn_if_unused_value): If no operands, no unused value.
152
153 2000-05-26 Geoffrey Keating <geoffk@cygnus.com>
154
155 * config/rs6000/rs6000.md (movsi_internal1): Use '%a1' rather
156 than '%1(%*)'.
157 (movdi_internal64): Likewise.
158
159 * config/rs6000/rs6000.md: Correct order of operands for DImode
160 boolean patterns.
161
162 * config/rs6000/rs6000.c (boolean_or_operator): New function.
163 * config/rs6000/rs6000-protos.h (boolean_or_operator): Prototype it.
164 * config/rs6000/rs6000.h (PREDICATE_CODES): Add boolean_or_operator.
165 * config/rs6000/rs6000.md: Use boolean_or_operator instead of
166 boolean_operator for the boolean patterns without NOTs.
167
168 * config/rs6000/rs6000.c (reg_or_logical_cint_operand): Rename
169 from reg_or_u_cint_operand. Change comment and behaviour.
170 (logical_operand): Clean up, add assertion.
171 (non_logical_cint_operand): Also check for
172 reg_or_logical_cint_operand.
173 * config/rs6000/rs6000.h (PREDICATE_CODES): Update.
174 * config/rs6000/rs6000.md (iorsi3): Use reg_or_logical_cint_operand
175 in the expander.
176 (xorsi3): Likewise.
177 (iordi3): Likewise.
178 (xordi3): Likewise.
179
180 2000-05-26 Mark Mitchell <mark@codesourcery.com>
181
182 * tree.h (struct record_layout_info): Rename to (struct
183 record_layout_info_s).
184 * stor-layout.c (start_record_layout): Replace
185 `record_layout_info' with `record_layout_info_s'.
186
187 2000-05-26 Richard Earnshaw <rearnsha@arm.com>
188
189 * flow.c (find_label_refs): New function.
190 (find_basic_blocks_1): Call it for each alternative of a call
191 placeholder.
192
193 2000-05-26 Richard Earnshaw <rearnsha@arm.com>
194
195 * ifcvt.c (cond_exec_get_condition): Set test_if to the SET_SRC
196 of get_pc.
197
198 2000-05-25 Richard Henderson <rth@cygnus.com>
199
200 * config/alpha/alpha.c (alpha_comparison_operator): Don't be
201 so strict about DImode.
202 (alpha_swapped_comparison_operator): Likewise.
203 * config/alpha/alpha.md (*setne_internal): Name it. Allow
204 any integer output mode.
205 (*setcc_internal): Likewise.
206 (*setcc_swapped_internal): Likewise.
207 (*movdicc_internal, *movdicc_lbc, *movdicc_lbs): Name them.
208 (*mov[qhs]icc_internal): New.
209 (*mov[qhs]icc_lbc, *mov[qhs]icc_lbs): New.
210
211 2000-05-25 J. David Anglin <dave@hiauly1.hia.nrc.ca>
212
213 * vax.h (CPP_SPEC): Define __GFLOAT and GFLOAT when -mg is specified.
214
215 2000-05-25 Richard Henderson <rth@cygnus.com>
216
217 * bb-reorder.c (reorder_block_def): Reorder elements for size.
218 Remove add_jump; add next; replace flags with visited.
219 (rbd_init): Remove.
220 (REORDER_BLOCK_HEAD, REORDER_BLOCK_VISITED): Remove.
221 (REORDER_BLOCK_FLAGS, REORDER_BLOCK_INDEX): Remove.
222 (REORDER_BLOCK_ADD_JUMP, REORDER_BLOCK_EFF_HEAD): Remove.
223 (REORDER_BLOCK_EFF_END, REORDER_BLOCK_SCOPE): Remove.
224 (RBI): New.
225 (reorder_index, reorder_last_visited): Remove.
226 (skip_insns_after_block): Rewrite to use a switch.
227 (get_common_dest): Remove.
228 (chain_reorder_blocks): Remove.
229 (record_effective_endpoints): Split out from reorder_basic_blocks.
230 (make_reorder_chain): Likewise. Loop until all blocks are placed.
231 (make_reorder_chain_1): Renamed from old make_reorder_chain.
232 Only construct the reorder chain, do not move insns. Try harder
233 to tail recurse.
234 (label_for_bb, emit_jump_to_block_after): New.
235 (fixup_reorder_chain): Use them. Do bulk block movement. Examine
236 and adjust the jump insns appropriately. Fixup basic_block_info.
237 (verify_insn_chain): Always define.
238 (relate_bbs_with_scopes): Call xmalloc, not xcalloc. Fix thinko
239 in allocation size.
240 (make_new_scope): Don't write zeros to calloc'd space.
241 (build_scope_forest): Rely on xrealloc to DTRT.
242 (reorder_basic_blocks): Don't build loop nest. Don't fail if
243 profile_arc_flag. Streamline EH test.
244
245 * flow.c (redirect_edge_succ, redirect_edge_pred): New.
246 * basic-block.h: Declare them.
247
248 2000-05-25 Alexandre Oliva <aoliva@cygnus.com>
249
250 * emit-rtl.c (reset_used_decls): New function.
251 (unshare_all_rtl_again): Call it.
252
253 2000-05-25 Zack Weinberg <zack@wolery.cumb.org>
254
255 * cpplex.c (maybe_macroexpand): Warn about function-like
256 macros used in non-function context, if -Wtraditional.
257
258 2000-05-25 Mark Mitchell <mark@codesourcery.com>
259
260 * recog.c (peephole2_optimize): Use INSN_P.
261
262 2000-05-25 Richard Henderson <rth@cygnus.com>
263
264 * ifcvt.c (seq_contains_jump): New.
265 (noce_try_store_flag_constants): Use it to fail conversion.
266 (noce_try_store_flag_inc, noce_try_store_flag_mask): Likewise.
267
268 2000-05-25 Mark Mitchell <mark@codesourcery.com>
269
270 * except.h (can_throw): Declare it.
271 * except.c (can_throw): Give it external linkage.
272 * resource.c (find_dead_or_set_registers): Use can_throw.
273
274 2000-05-25 Richard Henderson <rth@cygnus.com>
275
276 * flow.c (mark_set_1): Don't record conditionally dead memory.
277
278 2000-05-25 Jan Hubicka <jh@suse.cz>
279
280 * combine.c (try_combine): Use any_condjump_p, any_uncondjump_p
281 and pc_set at the place of simplejump_p and condjump_p.
282 * cse.c (record_jump_equiv): Likewise.
283 * emit-rtl.c (emit): Likewise.
284 * explow.c (find_next_ref): Likewise.
285 * flow.c (tidy_fallthru_edge): Likewise.
286 (init_propagate_block_info): Likewise.
287 * gcse.c (delete_null_pointer_checks): Likewise.
288 * ifcvt.c (cond_exec_get_condition, noce_get_condition,
289 dead_or_predicable): Likewise.
290 * integrate.c (copy_insn_list): Likewise.
291 * loop.c (scan_loop, verify_dominator, find_and_verify_loops,
292 for_each_insn_in_loop, check_dbra_loop, get_condition,
293 insert_bct, load_mems): Likewise.
294 * resource.c (find_dead_or_set_registers): Likewise.
295 * sibcalls.c (simplejump_p): Likewise.
296 * unroll.c (copy_loop_body, reg_dead_after_loop): Likewise.
297
298 2000-05-25 David Edelsohn <edelsohn@gnu.org>
299
300 * rs6000.c (expand_block_move): Add 64-bit PowerPC doubleword move
301 to STRING case. Use doubleword STRING move for TARGET_POWERPC64
302 when unaligned.
303 * rs6000.h (CONST_OK_FOR_LETTER_P, 'J'): unsigned HOST_WIDE_INT.
304 (RETURN_ADDR_RTX): Use COUNT and FRAME, not count and frame.
305 (LEGITIMIZE_RELOAD_ADDRESS): unsigned HOST_WIDE_INT high.
306 * rs6000.md: Name various internal patterns.
307
308 2000-05-25 Jan Hubicka <jh@suse.cz>
309
310 * jump.c (invert_exp_1): Remove first argument, use pc_set
311 to get the expression.
312 (redirect_exp): Make static; redirect only the pc_set expression,
313 remove first argument.
314 (invert_exp): Remove first argument, make static.
315 (jump_optimize): Use any_condjump_p, any_uncondjump_p and
316 any_onlyjump at most places where we originaly did condjump_p
317 and simplejump_p.
318 (jump_back_p, follow_jumps, thread_jumps): Likewise.
319 (delete_barrier_succesors): Use pc_set.
320 (invert_jump_1, invert_jump, redirect_jump_1, redirect_jump): Update
321 calls of invert_exp and redirect_exp.
322 * rtl.h (redirect_exp, invert_exp): Remove.
323 * unroll.c (copy_loop_body): Use invert_jump and redirect_jump.
324
325 2000-05-25 Richard Henderson <rth@cygnus.com>
326
327 * stmt.c (expand_end_bindings): Fix thinko last change.
328
329 2000-05-25 Andrew MacLeod <amacleod@cygnus.com>
330 Andrew Haley <aph@cygnus.com>
331
332 * except.c (func_eh_entry): Add emitted field.
333 (new_eh_region_entry): Set emitted field to 0;
334 (output_exception_table_entry): Only emit previously un-emitted data,
335 and send it to the eh_data section.
336 (output_exception_table): Break out common parts. Output
337 exception table for entire compilation unit to eh_data section.
338 (output_exception_table_data): Common parts of output_exception_table.
339 Send output to eh_data section.
340 (output_function_exception_table): Output exception table data for
341 a single function to eh_data section.
342 (free_exception_table): New external to free the table.
343 * except.h (free_exception_table): Add prototype.
344 (output_function_exception_table): Add prototype.
345 * final.c (final_end_function): Output function exception table
346 for IA64_UNWIND_INFO.
347 (final_scan_insn): Emit any unwind directives for an insn.
348
349 * frame-dwarf2.c: New file containing all DWARF 2 specific code
350 from frame.c.
351 * frame.c: Remove all DWARF 2 specific code.
352 * config/ia64/frame-ia64.c: New file.
353 (gthread_stuff): Make all gthread available with
354 IA64_UNWIND_INFO.
355 (dwarf_fde): Define an IA64 struct for dwarf_fde.
356 (__register_frame_info, __register_frame): Move to common area of file.
357 (__register_frame_info_table, __register_frame_table): Move to common i
358 area.
359 (__deregister_frame_info, __deregister_frame): Move to common area.
360 (__frame_init, find_fde): New versions for IA64_UNWIND_INFO.
361 (read_uleb128): New version for ia64.
362 (get_unwind_record): Read the next IA-64 unwind record.
363 (read_R_record): Read a region header record.
364 (process_a_b_reg_code): X record helper.
365 (read_X_record): Read an X format record.
366 (read_B_record): Read a B format record.
367 (P3_record_types): List of record types matching the P3 format.
368 (P7_record_types): List of record types matching the P7 format.
369 (P8_record_types): List of record types matching the P8 format.
370 (read_P_record): Read a P format record.
371 (init_ia64_reg_loc): Set default fields for a register.
372 (init_ia64_unwind_frame): Set defaults for all register records.
373 (execute_one_ia64_descriptor): Execute one descriptor record.
374 (rse_address_add): Calculate the position of a local reg in memory.
375 (normalize_reg_loc): Turn a location descriptor into a memory address.
376 (maybe_normalize_reg_loc): Only normalize a descriptor if it falls
377 within a specified PC offset range.
378 (get_real_reg_value): Given a register location, retrieve its value.
379 (set_real_reg_value): Change the value of a register location.
380 (copy_reg_value): Copy reg values, if needed.
381 (copy_saved_reg_state): Copy all registers that need to be copied.
382 (process_state_between): Normalize all frame register records that
383 fall within the specified PC range.
384 (frame_translate): Take a processed frame description, and turn
385 everything into addresses.
386 (build_ia64_frame_state ): Find and create frame state record for a PC.
387 (get_personality): Get the personality routine for a given frame.
388 (get_except_table): Get the exception table for a given frame.
389 (record_name): Unwind record names for debugging.
390 (print_record): Print and unwind record.
391 (print_all_records): Print an entire unwind image.
392 (__ia64_backtrace): Print a backtrace.
393 (ia64_backtrace_helper): New function.
394 (__register_frame_info_aux): New function.
395 * config/ia64/crtend.asm (__do_frame_setup_aux): New function.
396
397 * frame.h (enum unw_record_type): New unwind record types.
398 (struct unw_p_record, unw_b_record, unw_x_record) : New unwind records.
399 (struct unw_r_record, unwind_record): New unwind record structs.
400 (struct unwind_info_ptr): Unwind information layout.
401 (IA64_UNW_LOC_TYPE_*): Macros for different types for location
402 descriptors.
403 (struct ia64_reg_loc): Register location description.
404 (struct ia64_frame_state): Location of all registers in a frame.
405 (struct object): Add pc_base and fde_end for IA64_UNWIND_INFO.
406 * libgcc2.c (__ia64_personality_v1): Personality routine.
407 (__calc_caller_bsp): Calculate the bsp register for the caller's
408 frame.
409 (ia64_throw_helper): Figure out who to return to and set up the
410 registers.
411 (__throw): Throw routine.
412
413 * output.h (assemble_eh_align, assemble_eh_label): New functions
414 to generate EH info where we want it.
415 (assemble_eh_integer): New function.
416 * toplev.c (compile_file): Output module level exception table for
417 non-ia64 targets.
418 (main): Set exceptions_via_longjump and flag_new_exceptions based
419 on IA64_UNWIND_INFO too.
420
421 * varasm.c (assemble_eh_label): Generate a label via
422 ASM_OUTPUT_EH_LABEL if it has been specified.
423 (assemble_eh_align): Generate an alignment directive via
424 ASM_OUTPUT_EH_ALIGN if it has been specified.
425 (assemble_eh_label): Generate an integer value via
426 ASM_OUTPUT_EH_type if they have been specified.
427 * config/ia64/ia64.c (rtx_needs_barrier): Add flushrs.
428 (ia64_init_builtins): Add __builtin_ia64_bsp
429 and __builtin_ia64_flushrs.
430 (ia64_expand_builtin): Add IA64_BUILTIN_BSP and
431 IA64_BUILTIN_FLUSHRS.
432 * config/ia64/ia64.h (ia64_builtins): Add IA64_BUILTIN_BSP and
433 IA64_BUILTIN_FLUSHRS.
434
435 * config/ia64/ia64.md (flushrs): New insn to flush the register
436 stack. Add to unspec list.
437
438 * config/ia64/crtbegin.asm (frame_object): Change size.
439 (__do_frame_setup_aux): New function.
440 * config/ia64/crtend.asm: call __do_frame_setup_aux.
441 * config/ia64/t-ia64 (LIB2ADDEH): Add.
442 * Makefile.in (LIB2ADDEH): Add.
443 (LIB2ADD): Use LIB2ADDEH.
444
445 2000-05-24 Richard Henderson <rth@cygnus.com>
446
447 * recog.c (offsettable_address_p): If mode size is zero, assume
448 BIGGEST_ALIGNMENT.
449
450 2000-05-24 J. David Anglin <dave@hiauly.hia.nrc.ca>
451
452 * configure.in: Check for -Wno-long-long option support and improve
453 handling of warning CFLAGS for stages 1 and 2.
454 * Makefile.in (WARN_CFLAGS): Move definition to configure.in.
455 * configure: Regenerate.
456
457 Wed May 24 19:37:53 2000 Jeffrey A Law (law@cygnus.com)
458
459 * gcc.texi: Remove contributor list. Instead include contrib.texi.
460 * contrib.texi: New file.
461
462 Thu May 25 02:27:22 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
463
464 * loop.c (basic_induction_var): Avoid double recording of an increment.
465
466 Thu May 25 02:19:27 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
467
468 * Back out this patch:
469 Tue Dec 7 19:22:06 1999 Richard Henderson <rth@cygnus.com>
470 * loop.h (struct induction): Add multi_insn_incr.
471 * loop.c (basic_induction_var): New multi_insn_incr argument.
472 Set it if we search back through previous insns for the biv.
473 (record_biv): New multi_insn_incr argument; fill in struct induction.
474 (strength_reduce): Discard an iv with multiple bivs, any of
475 which require multiple insns to increment.
476
477 * loop.c (check_insn_for_bivs): Remove bits copied from above patch.
478
479 Thu May 25 02:09:10 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
480
481 * rtl.h (loc_mentioned_in_p): Declare.
482 * reload.c (loc_mentioned_in_p): Moved from here...
483 * rtlanal.c (loc_mentioned_in_p): to here. No longer static.
484 Fix loop increment for 'E' handling.
485 * loop.c (strength_reduce): When doing biv->giv conversion,
486 take multi-insn biv increments into account.
487
488 2000-05-24 Jason Merrill <jason@casey.soma.redhat.com>
489
490 * stmt.c (expand_end_bindings): Look through NOTEs to find a
491 BARRIER.
492
493 2000-05-24 Mark Mitchell <mark@codesourcery.com>
494
495 * calls.c (expand_call): Handle cleanups in tail-recursion
496 arguments analagously to cleanups in sibling calls.
497
498 2000-05-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
499
500 * simplify-rtx.c: Rename macro SIGN_EXTEND to HWI_SIGN_EXTEND.
501 All callers changed.
502
503 2000-05-24 Alexandre Oliva <aoliva@cygnus.com>
504
505 * expr.c (expand_assignment, store_expr, expand_expr,
506 expand_expr_unaligned): Set in_check_memory_usage while emitting
507 chkr_check_addr libcall.
508
509 2000-05-24 Nick Clifton <nickc@cygnus.com>
510
511 * fold-const.c (extract_muldiv): When constructing a
512 multiplier/divisor, do not expect const_binop to correctly
513 determine if overflow has occured, so check explicitly.
514
515 2000-05-24 Alexandre Oliva <aoliva@cygnus.com>
516
517 * c-decl.c (build_enumerator): Don't modify the value's type,
518 convert it.
519
520 2000-05-24 Andreas Jaeger <aj@suse.de>
521
522 * mips.h (LINKER_ENDIAN_SPEC): Pass -EL to linker by default.
523
524 2000-05-24 Eric Christopher <echristo@cygnus.com>
525
526 * configure.in: Redefine inhibit_libc conditions.
527 * libgcc2.c: Remove inhibit_libc conditional define.
528 * configure: Regenerate.
529
530 2000-05-24 Phil Edwards <pme@sourceware.cygnus.com>
531
532 * configure.in: For --enable-languages=LIST, check for empty LIST.
533 * configure: Regenerate.
534
535 2000-05-24 Lars Brinkhoff <lars@nocrew.org>
536
537 * pdp11.h (STACK_BOUNDARY): Define.
538
539 2000-05-24 Jakub Jelinek <jakub@redhat.com>
540
541 * ifcvt.c (if_convert): Update life info globally.
542
543 2000-05-24 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
544
545 * emit-rtl.c (unshare_all_decls): New function.
546 (unshare_all_rtl): Call it.
547
548 2000-05-23 Nick Clifton <nickc@cygnus.com>
549
550 * configure.in: Treat 'strongarm' as if it were 'arm' when
551 determining cpu type.
552
553 * configure: Regenerate.
554
555 * config/arm/arm.c: Change 'char *' to 'const char *' for cases
556 where constant strings are involved.
557
558 * config/arm/arm.h (arm_condition_codes): Change type to 'const
559 char *'.
560
561 * config/arm/arm-protos.h: Change 'char *' to 'const char *' for
562 cases where constant strings are involved.
563
564 Tue May 23 15:08:31 2000 Clinton Popetz <cpopetz@cygnus.com>
565
566 * config/sh/sh.c (gen_far_branch, split_branches): Update
567 to reflect new prototypes for redirect_jump and invert_jump.
568 (sh_insn_length_adjustment): Get rid of const warnings.
569
570 2000-05-23 Kazu Hirata <kazu@hxi.com>
571
572 * invoke.texi (Options for Debugging Your Program or GCC): Update
573 the names of dump files.
574
575 Tue May 23 13:58:52 2000 Philippe De Muyter <phdm@macqel.be>
576
577 * configure.in (NO_MINUS_C_MINUS_O): Fix thinko in previous fix.
578 * configure: Regenerated.
579
580 2000-05-23 Zack Weinberg <zack@wolery.cumb.org>
581
582 * simplify-rtx.c (SIGN_EXTEND): New macro.
583 (simplify_unary_operation, simplify_binary_operation,
584 simplify_relational_operation): Use SIGN_EXTEND. Make low
585 halves of (low, high) pairs unsigned if they weren't already.
586 (simplify_ternary_operation): Cast INTVAL to unsigned before
587 comparing to a MODE_BITSIZE.
588
589 2000-05-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
590
591 * aclocal.m4 (gcc_AC_CHECK_DECL, gcc_AC_CHECK_DECLS): New macros
592 rewritten from the internals of gcc_AC_NEED_DECLARATION{S}.
593
594 * configure.in (gcc_AC_CHECK_DECLS): Call this instead of
595 gcc_AC_NEED_DECLARATIONS.
596
597 * dwarfout.c: Don't prototype time().
598
599 * gcc.c: Check HAVE_DECL_* instead of NEED_DECLARATION_*.
600
601 * system.h: Likewise.
602
603 * toplev.c: Likewise.
604
605 2000-05-23 Zack Weinberg <zack@wolery.cumb.org>
606
607 * c-decl.c (pushdecl): Invert sense of test for non-global types.
608
609 Tue May 23 18:11:42 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
610
611 * reload1.c (reload_cse_move2add): Honor TRULY_NOOP_TRUNCATION.
612
613 2000-05-23 Jonathan Larmour <jlarmour@redhat.co.uk>
614
615 * config/mips/elf64.h (CTOR_LISTS_DEFINED_EXTERNALLY): Define
616
617 Tue May 23 06:50:29 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
618
619 * config/alpha/alpha.c: Remove #ifdef HAIFA since now only scheduler.
620 (alpha_start_function): Never write ..ng label if VMS or NT.
621 (alpha_align_insns): Remove GP_IN_USE arg.
622 Alignment now unsigned.
623 (alpha_reorg): Don't pass GP_IN_USE arg to alpha_align_insns.
624 * config/alpha/alpha.md (prologue_ldgp): Split into one define_expand
625 and two define_insn's.
626
627 2000-05-22 Richard Henderson <rth@cygnus.com>
628
629 * combine.c (simplify_comparison): Use trunc_int_for_mode.
630
631 2000-05-22 Richard Henderson <rth@cygnus.com>
632
633 * stor-layout.c (place_field): Change rli->size to rli->offset.
634
635 2000-05-22 Richard Henderson <rth@cygnus.com>
636
637 * function.c (thread_prologue_and_epilogue_insns): Make sure
638 existing line number notes appear after the prologue.
639
640 Mon May 22 21:49:00 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
641
642 * config/alpha/alpha.c (alpha_fnname): New static variable.
643 (print_operand, case '~'): New case.
644 (alpha_expand_prologue): Emit prologue_ldgp insn if needed.
645 (alpha_start_function): Set alpha_fnname.
646 Write "ng" label if no ldgp; don't write ldgp insn.
647 * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): New case '~'.
648 * config/alpha/alpha.md (prologue_ldgp): New define_insn.
649
650 Mon May 22 11:30:48 2000 Clinton Popetz <cpopetz@cygnus.com>
651
652 * jump.c (jump_optimize_1): Don't increment LABEL_NUSES
653 on deleted labels.
654
655 2000-05-22 Zack Weinberg <zack@wolery.cumb.org>
656
657 * varasm.c (eh_frame_section): Revert change to argument list.
658
659 Mon May 22 13:14:03 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
660
661 * optabs.c (can_extend_p): Allow unsignedp to have any nonzero value.
662 (gen_extend_insn, can_fix_p, can_float_p): Likewise.
663
664 * final.c (final_scan_insn, case NOTE_INSN_FUNCTION_BEG): Remove
665 dangling "else" that causes "break" to be conditional.
666 Also remove unneeded code at start.
667
668 Mon May 22 17:31:35 2000 Philippe De Muyter <phdm@macqel.be>
669
670 * m68k/m68k.h (STORE_FLAG_VALUE): Macro set to (-1), not -1.
671 * fx80/fx80.h, i370/i370.h, m88k/m88k.h (STORE_FLAG_VALUE): Ditto.
672 * gmicro/gmicro.h, we32k/we32k.h (STORE_FLAG_VALUE): Ditto.
673
674 2000-05-22 Jakub Jelinek <jakub@redhat.com>
675
676 * config/sparc/sparc.md (movdf_insn_v9only_vis): fzero has
677 just one argument.
678
679 Mon May 22 06:57:49 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
680
681 * alias.c (record_component_aliases): New function.
682 * tree.h: Clean up some declarations and comments.
683 (record_component_aliases): New declaration.
684 * tree.c (get_alias_set): If type and has alias set, use it.
685
686 2000-05-22 Richard Henderson <rth@cygnus.com>
687
688 * simplify-rtx.c (simplify_ternary_operation): Try to simplify
689 IF_THEN_ELSE to a setcc form.
690 * jump.c (can_reverse_comparison_p): Be prepared for insn null.
691
692 2000-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
693
694 * fixinc/inclhack.def (sun_malloc): Handle `calloc'.
695 (sun_malloc, sysz_stdtypes_for_sun): Add test_text.
696
697 Sun May 21 16:42:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
698
699 * combine.c (try_combine): Handle i3_subst_into_i2 case when I2 is
700 not a PARALLEL.
701
702 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
703
704 * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
705 * config/mn10300/mn10300.c (print_operand): Likewise.
706
707 * final.c (split_double): Right shift of negative values is not
708 portable.
709
710 * ifcvt.c (if_convert): Scan and kill dead code.
711
712 * emit-rtl.c (unshare_all_rtl): Store the copied rtx.
713
714 2000-05-20 Zack Weinberg <zack@wolery.cumb.org>
715
716 * diagnostic.c: Eliminate implicit int.
717 * except.c, gcc.c: Add static prototypes.
718 * final.c (final_end_function): Mark file arg ATTRIBUTE_UNUSED.
719 * gensupport.c (process_rtx): Use XVEC to initialize vector
720 slot of 'split'.
721
722 * print-rtl.c: If DEBUG_REGISTER_NAMES, define static
723 debug_reg_names instead of static reg_names. If not, define
724 global reg_names.
725 * regclass.c: Don't define global reg_names unless
726 DEBUG_REGISTER_NAMES is defined.
727
728 * reload1.c (order_regs_for_reload): Remove unused variable.
729 * varasm.c: Include output.h after defaults.h. Define
730 eh_frame_section as function of no args, not of unspecified args.
731
732 * gcc.c: Constify argbuf; arguments to store_arg,
733 process_command, main; elements of struct command and struct
734 switchstr; local variables in execute, process_command, main.
735
736 2000-05-20 Bruce Korb <bkorb@gnu.org>
737
738 * fixinc/inclhack.def: many applications of c_fix=format + tests
739 * fixinc/check.diff: regenerated
740 * fixinc/fixincl.x: regenerated
741
742 Sat May 20 09:30:55 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
743
744 * alias.c: Clarify some comments.
745 (record_base_value): REGNO is unsigned.
746 * rtl.h (record_base_value): Likewise.
747
748 * alias.c (aliases_everything_p): Don't special-case QImode here.
749 * c-common.c (c_get_alias_set): Do it here.
750 Handle BIT_FIELD_REF by getting alias info for arg.
751 Use POINTER_TYPE_P.
752
753 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
754
755 * mklibgcc.in: Restore rule to create ${dir}.
756
757 Sat May 20 08:45:41 2000 H.J. Lu <hjl@gnu.org>
758
759 * Makefile.in (libgcc.mk): Depend on xgcc$(exeext) for
760 GCC_FOR_TARGET used by MULTILIBS.
761 * mklibgcc.in: Make sure each .o file depends on the
762 directory it will be in.
763 Make the multilib directory depends libgcc.
764
765 Sat May 20 08:29:28 2000 H.J. Lu <hjl@gnu.org>
766
767 * Makefile.in (bootstrap): Unset LANG_LIB2FUNCS for stage 1.
768
769 Sat May 20 07:27:35 2000 Alexandre Oliva <aoliva@cygnus.com>
770
771 * fold-const.c (make_range): Handle degenerated intervals.
772 Fixes c-torture/execute/991221-1.c
773
774 Fri May 19 18:16:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
775
776 * cse.c (cse_basic_block): Only call find_reg_note if REG_NOTES not 0.
777 * reload.c (find_equiv_reg): Likewise.
778 * alias.c (init_alias_analysis): Likewise.
779 Only call prologue_epilogue_contains on insns.
780 * basic-block.h (REG_SET_TO_HARD_REG_SET): Call new function.
781 * bb-reorder.c (hard-reg-set.h): Include earlier.
782 * haifa-sched.c (hard-reg-set.h): Likewise.
783 * ifcvt.c (hard-reg-set.h): Likewise.
784 * local-alloc.c (hard-reg-set.h): Likewise.
785 * loop.c (hard-reg-set.h): Likewise.
786 * predict.c (hard-reg-set.h): Likewise.
787 * regrename.c (hard-reg-set.h): Likewise.
788 * flow.c (hard-reg-set.h): Likewise.
789 (reg_set_to_hard_reg_set): New function.
790 * bitmap.c (regs.h, basic-block.h): No longer include.
791 (bitmap.h): Now include.
792 * conflict.c (hard-reg-set.h): Include.
793 * profile.c (hard-reg-set.h): Likewise.
794 * print-rtl.c (hard-reg-set.h): Likewise.
795 * sbitmap.c (hard-reg-set.h): Likewise.
796 * toplev.c (hard-reg-set.h): Likewise.
797 * unroll.c (hard-reg-set.h, basic-block.h): Likewise.
798 * hard-reg-set.h (reg_names): Now constant.
799 * regs.h (reg_names): Likewise.
800 * regclass.c (reg_names): Likewise.
801 * loop.h (basic-block.h): No longer include.
802 (bitmap.h): Now include.
803 * reload1.c (order_regs_for_reload): Avoid loop over reg sets.
804 * Makefile.in (LOOP_H, sbitmap.o, profile.o): Reflect above changes.
805 (toplev.o, print-rtl.o, conflict.o, unroll.o, bitmap.o): Likewise.
806
807 2000-05-19 Jan Hubicka <jh@suse.cz>
808 Richard Henderson <rth@cygnus.com>
809
810 * basic-block.h (struct edge_def): New field "count".
811 (struct basic_block_def): Likewise.
812 * flow.c (entry_exit_blocks): Add count fileds.
813 (split_edge): Keep count information up-to-date.
814 (dump_edge_info, dump_flow_info): Dump count fields.
815
816 * final.c (count_instrumented_edges): Rename to edge from arc.
817 (end_final): Update users.
818 * profile.c: Include expr.h, basic-block.h.
819 (struct adj_list, ARC_TARGET, ARC_SOURCE, ARC_COUNT): Kill.
820 (struct bb_info, label_to_bb, label_to_bb_size, bb_graph): Kill.
821 (ignore_next_note, return_label_execution_count): Kill.
822 (bbg_file_name, da_file_name): Kill.
823 (edge_info, bb_info): New structures.
824 (EDGE_INFO, BB_INFO, GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): New macros.
825 (count_instrumented_edges, total_num_edges): Rename to edge from arc.
826 (total_num_edges_instrumented): Likewise.
827 (init_arc, expand_spanning_tree): Kill.
828 (fill_spanning_tree, tablejump_entry_p): Kill.
829 (instrument_edges): Rewrite from instrument_arcs to use
830 commit_edge_insertions infrastructure.
831 (compute_branch_probabilities): Remove arguments; rewrite for
832 CFG infrastructure; use rtl_dump_file directly.
833 (branch_prob, find_spanning_tree): Likewise.
834 (union_groups, find_group): New.
835 (init_branch_prob): Make bbg_file_name and da_file_name local.
836 (end_branch_prob): Use rtl_dump_file directly.
837 (init_edge_profiler): Rename to edge from arc.
838 (output_arc_profiler): Kill.
839 (gen_edge_profiler): New.
840 (output_func_start_profiler): Turn off profiling. Make the
841 constructor static when we can.
842 * rtl.h (branch_prob, end_branch_prob): Update prototypes.
843
844 * toplev.c (DFI_flow): Remove.
845 (DFI_cfg, DFI_life): New.
846 (dump_file): Update accordingly.
847 (compile_file): Call end_branch_prob if profile_arc_flag too.
848 (rest_of_compilation): Move flow1 cfg creation to DFI_cfg. Do edge
849 profiling after the CFG is built. Move flow1 life analysis to
850 DFI_life. Always estimate remaining probabilities.
851
852 2000-05-19 Richard Henderson <rth@cygnus.com>
853
854 * ifcvt.c (find_if_case_2): Don't allow THEN to be EXIT.
855
856 * flow.c (make_edges): The sibling call edge to exit is abnormal.
857
858 2000-05-19 Richard Henderson <rth@cygnus.com>
859
860 * jump.c (redirect_jump): Add delete_unused argument. Don't
861 remove labels and code following when LABEL_NUSES goes to zero.
862 (invert_jump): Likewise.
863 (jump_optimize_1): Fix redirect/invert arguments.
864 (do_cross_jump, thread_jumps): Likewise.
865 * flow.c (split_edge): Likewise.
866 * reorg.c (optimize_skip): Likewise.
867 (reorg_redirect_jump, relax_delay_slots, dbr_schedule): Likewise.
868 * profile.c (instrument_arcs): Likewise.
869 * loop.c (find_and_verify_loops): Likewise. Fix indentation.
870 * rtl.h: Update prototypes.
871
872 Fri May 19 12:05:13 2000 Clinton Popetz <cpopetz@cygnus.com>
873
874 * ssa.c (convert_from_ssa): Tell life_analysis we need death
875 notes.
876 (make_regs_equivalent_over_bad_edges): Only look at abnormal
877 critical edges.
878
879 2000-05-19 Zack Weinberg <zack@wolery.cumb.org>
880
881 * cpphash.c (funlike_macroexpand): Make sure not to walk p1
882 past l1 when deleting whitespace and markers.
883
884 * cpplex.c (_cpp_scan_until): Clear AUX field of tokens.
885 * cpplib.c (do_unassert): Put the list to compare against on
886 the stack.
887
888 2000-05-19 Bruce Korb <bkorb@gnu.org>
889
890 * fixinc/README: cleaned up old documentation
891 * fixinc/check.diff: regenerated & verified on OSR5 on ix86
892 * fixinc/check.tpl: compute the list of needed directories
893 emit "#if defined(name)" because of conflict
894 omit machine name differences from output differences
895 * fixinc/inclhack.def( m88k_multi_incl ): Use `wrap' function
896 (machine_name): change test text to use `sed' markers
897 * fixinc/fixincl.x: regen
898
899 Fri May 19 06:49:35 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
900
901 * config/elfos.h (SELECT_SECTION): Don't access DECL_INITIAL of
902 a CONSTRUCTOR.
903
904 2000-05-18 Chris Demetriou <cgd@sibyte.com>
905
906 * gcc.texi (MULTILIB_EXCEPTIONS): Correct example and update
907 it to match the current practice.
908
909 2000-05-18 Mark Mitchell <mark@codesourcery.com>
910
911 * Makefile.in (STAGESTUFF): Fix typo in spelling of s-under.
912
913 2000-05-18 Richard Henderson <rth@cygnus.com>
914
915 * rtlanal.c (insn_dependant_p, insn_dependant_p_1): New.
916 * rtl.h (insn_dependant_p): Declare it.
917 * loop.c (strength_reduce): Use it.
918
919 2000-05-18 Alexandre Oliva <aoliva@cygnus.com>
920
921 * config/mn10300/mn10300.c (expand_prologue, expand_epilogue):
922 16-bit and 64-bit clean-up.
923
924 2000-05-18 Mark Elbrecht <snowball3@bigfoot.com>
925
926 * configure.in (*-pc-msdosdjgpp): Set float_format to none.
927 * configure: Rebuilt.
928
929 2000-05-18 Zack Weinberg <zack@wolery.cumb.org>
930
931 * genopinit.c: Use $ for escape sequences in optab patterns.
932 Remove backslashes from optab patterns. Change $A, $B, $C to
933 expand to (int) whatever instead of just whatever; remove
934 explicit (int) from all optab patterns.
935
936 * gensupport.c (xmalloc, xrealloc, xstrdup): Provide.
937 * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c,
938 genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c,
939 genrecog.c: Remove private copies of xmalloc, xrealloc, and
940 xstrdup.
941
942 2000-05-18 Richard Henderson <rth@cygnus.com>
943
944 * jump.c (jump_optimize_1): Base minimum insn count during
945 find_cross_jump on BRANCH_COST.
946
947 2000-05-18 Jakub Jelinek <jakub@redhat.com>
948
949 * print-rtl.c (print_rtx): Only print note line number as string
950 if between NOTE_INSN_BIAS and NOTE_INSN_MAX.
951 * final.c (final_scan_insn): Do nothing for note line number 0.
952
953 2000-05-18 Jakub Jelinek <jakub@redhat.com>
954
955 * gcc-common.c (ggc_mark_rtx_children): Mark NOTE_EXPECTED_VALUE
956 from NOTE_INSN_EXPECTED_VALUE notes and NOTE_SOURCE_FILE from
957 NOTE_INSN_DELETED_LABEL.
958
959 2000-05-18 Nick Clifton <nickc@cygnus.com>
960
961 * config/arm/unknown-elf.h (UNIQUE_SECTION): Place constant,
962 uninitialised data in .rodata not .bss, and do not interpret an
963 error in the initialisation value as meaning that the variable
964 should be placed in the .bss section.
965
966 Thu May 18 12:10:18 2000 Philippe De Muyter <phdm@macqel.be>
967
968 * configure.in (NO_MINUS_C_MINUS_O): Test `$ac_cv_prog_cc_${ac_cc}_c_o',
969 not `$ac_cv_prog_cc_cc_c_o'.
970 * configure: Regenerated.
971
972 2000-05-18 Chris Demetriou <cgd@sibyte.com>
973 Richard Henderson <rth@cygnus.com>
974
975 * c-common.h (enum c_tree_index): Add g77 type entries.
976 (g77_integer_type_node, g77_uinteger_type_node): New.
977 (g77_longint_type_node, g77_ulongint_type_node): New.
978 * c-decl.c (init_decl_processing): Initialize them.
979
980 2000-05-18 Richard Henderson <rth@cygnus.com>
981
982 * config/h8300/h8300.md (subs patterns): Use %G to negate.
983
984 * config/h8300/h8300.c (ok_for_bclr): Take a HOST_WIDE_INT.
985 (small_power_of_two): Likewise; use exact_log2.
986 (adds_subs_operand, one_insn_adds_subs_operand): Remove.
987 (output_adds_subs): Remove.
988 (two_insn_adds_subs_operand): New.
989 (split_adds_subs): New.
990 * config/h8300/h8300-protos.h: Update.
991 * config/h8300/h8300.h (CONST_OK_FOR_J): Cast to uns HOST_WIDE_INT.
992 (CONST_OK_FOR_L): Match strict adds operands.
993 (CONST_OK_FOR_N): Match struct subs operands.
994 * config/h8300/h8300.md (adds_subs insns): Remove.
995 (addhi patterns): Output adds/subs directly.
996 (addsi_h8300h): Likewise.
997 (addhi/addsi splitters): New. Decompose two_insn_adds_subs_operand.
998
999 2000-05-18 Zack Weinberg <zack@wolery.cumb.org>
1000
1001 * cppexp.c (parse_assertion): New.
1002 (lex): Call it for CPP_HASH. Remove CPP_ASSERTION case.
1003 (_cpp_parse_expr): Remove case '#'. Don't set
1004 parsing_if_directive.
1005 * cpphash.c (collect_objlike_expansion,
1006 collect_funlike_expansion, collect_params,
1007 _cpp_create_definition): The list no longer has a trailing
1008 VSPACE token.
1009 * cpphash.h (enum node_type): Add T_ASSERTION.
1010 (struct hashnode): Remove aschain, add pred.
1011 (struct predicate): New.
1012 Update prototypes.
1013
1014 * cpplex.c (expand_token_space): Handle both offset and
1015 nonoffset lists.
1016 (init_token_list, _cpp_free_token_list, _cpp_parse_assertion): Delete.
1017 (_cpp_init_toklist, _cpp_clear_toklist, _cpp_free_toklist,
1018 _cpp_slice_toklist, _cpp_squeeze_toklist, _cpp_equiv_tokens,
1019 _cpp_equiv_toklists): New.
1020 (_cpp_scan_line): Rename to _cpp_scan_until; add ability to
1021 stop at any single-character token, not just newline.
1022 (_cpp_lex_token): Remove special cases for #define and #if.
1023 (cpp_get_token): Expect # as a separate token type. Remove
1024 DIRECTIVE case.
1025 (_cpp_get_directive_token): Remove DIRECTIVE case.
1026 (_cpp_lex_line, _cpp_lex_file, _cpp_init_input_buffer): Update.
1027
1028 * cpplib.c (_cpp_check_directive): Set dirno and
1029 SYNTAX_INCLUDE bit of flags, not dir_handler and dir_flags.
1030 (_cpp_handle_directive): Run # <number> through the same logic
1031 as normal directives.
1032 (do_define): Don't set parsing_define_directive. Use
1033 _cpp_scan_until. The list does not have a VSPACE at the end.
1034 (do_if): Save, clear, and restore only_seen_white around
1035 _cpp_parse_expr.
1036 (skip_if_group): s/CPP_DIRECTIVE/CPP_HASH/
1037 (do_assert, do_unassert): Rewrite.
1038
1039 * cpplib.h (TTYPE_TABLE): Remove CPP_ASSERTION.
1040 (LIST_OFFSET): New flag.
1041 (struct cpp_toklist): Replace dir_handler and dir_flags with
1042 dirno and flags.
1043 (struct cpp_reader): Remove parsing_if_directive and
1044 parsing_define_directive.
1045
1046 2000-05-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1047
1048 * fixinc/inclhack.def (broken_cabs): Update fix to handle comments
1049 following the cabs decl which terminate on the following line.
1050 Add the corresponding test_text case.
1051
1052 2000-05-18 Neil Booth <NeilB@earthling.net>
1053
1054 * cppinit.c (cpp_reader_init): Initialise col_adjust and
1055 default tab stop size.
1056 (no_num, OPT_ftabstop): New.
1057 (handle_option): Handle "ftabstop=" command-line option.
1058 (print_help): Document it.
1059 * cpplex.c (COLUMN): Remove.
1060 (handle_newline): Reset col_adjust.
1061 (skip_whitespace): Update col_adjust as tabs encountered.
1062 (_cpp_lex_line): Update to use col_adjust. Call
1063 skip_whitespace for all whitespace.
1064 * cpplib.h (struct cpp_options): New member tabstop.
1065 (struct cpp_reader): New member col_adjust.
1066 (CPP_BUF_COL): Update.
1067 (CPP_BUF_COLUMN): New.
1068 * cpp.texi: Document "-ftabstop=" command line option.
1069
1070 Wed May 17 18:19:41 2000 Philippe De Muyter <phdm@macqel.be>
1071
1072 * configure.in (NO_MINUS_C_MINUS_O): Macro made availabe for AC_OUTPUT
1073 files.
1074 * configure: Rebuilt.
1075
1076 Wed May 17 18:06:12 2000 John David Anglin <dave@hiauly1.hia.nrc.ca>
1077
1078 * mklibgcc.in Add missing -DL$name when compiling modules in libgcc1.c.
1079
1080 * tree.c (build_common_tree_nodes): Do not build TI nodes unless
1081 HOST_BITS_PER_WIDE_INT is >= 64.
1082
1083 2000-05-17 Richard Henderson <rth@cygnus.com>
1084
1085 * jump.c (jump_optimize_1): Remove inactive but real insns
1086 in jump-to-next-insn optimization.
1087
1088 2000-05-17 Richard Henderson <rth@cygnus.com>
1089
1090 * toplev.c (rest_of_compilation): Don't call optimize_mode_switching
1091 unless OPTIMIZE_MODE_SWITCHING. Conditionally set no_new_pseudos.
1092 Don't call recompute_reg_usage if no_new_pseudos is true.
1093 * lcm.c (optimize_mode_switching): Move ifdefs outside function.
1094 Return true if we did work; update global life information.
1095 * basic-block.h (optimize_mode_switching): Update decl.
1096
1097 2000-05-17 Neil Booth <neilb@earthling.net>
1098
1099 * cpplex.c (expand_name_space): Don't use ptrdiff_t.
1100
1101 2000-05-17 Zack Weinberg <zack@wolery.cumb.org>
1102
1103 * cpplib.c: New feature, #pragma system_header.
1104 * cpp.texi: Document special treatment of system headers, and
1105 the various mechanisms to get a header that special treatment.
1106
1107 2000-05-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1108
1109 * system.h (offsetof): Define at the very end, to ensure we prefer
1110 the platform's definition if available.
1111
1112 2000-05-16 Bruce Korb <bkorb@gnu.org>
1113
1114 * fixinc/fixincl.c: improve the debug displays, ignore SIGPIPE
1115 * fixinc/server.c: likewise
1116 * fixinc/fixfixes.c( char_macro_def_fix ): fix regex
1117 + #ifdef debugging code + use #def constant for
1118 sub-pattern count
1119 * fixinc/inclhack.def( hpux11_fabsf ): Keep HP-UX 11 from stomping
1120 on C++ math namespace
1121
1122 2000-05-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1123
1124 * fixinc/fixfixes.c (char_macro_use_fix, char_macro_def_fix):
1125 Don't check the return value of sprintf. Use asprintf to avoid
1126 buffer overflows.
1127
1128 Wed May 17 17:27:44 2000 Andrew Cagney <cagney@b1.cygnus.com>
1129
1130 * flags.h (warn_unused_function, warn_unused_label,
1131 warn_unused_parameter, warn_unused_variable, warn_unused_value):
1132 Replace ``warn_unused''.
1133 (set_Wunused): Add declaration.
1134 * toplev.c (set_Wunused): New function.
1135 (warn_unused_function, warn_unused_label, warn_unused_parameter,
1136 warn_unused_variable, warn_unused_value): New variables.
1137 (W_options): Add -Wunused-function, -Wunused-function,
1138 -Wunused-label, -Wunused-parameter, -Wunused-variable and
1139 -Wunused-value. Delete -Wunused. Handled in decode_W_option.
1140
1141 * toplev.c (decode_W_option): Update -Wunused flags by calling
1142 set_Wunused.
1143 * c-decl.c (c_decode_option): Ditto for -Wall.
1144
1145 * stmt.c (expand_expr_stmt, expand_expr_stmt,
1146 warn_about_unused_variables): Replace warn_unused with more
1147 explicit warn_unused_value et.al.
1148 * function.c (expand_function_end): Ditto.
1149 * c-typeck.c (internal_build_compound_expr,
1150 internal_build_compound_expr): Ditto.
1151 * c-decl.c (poplevel, pop_label_level): Ditto.
1152 * toplev.c (check_global_declarations): Replace warn_unused with
1153 check for either warn_unused_function or warn_unused_variable.
1154
1155 * gcc.1, invoke.texi (Warning Options): Document
1156 -Wunused-function, -Wunused-function, -Wunused-label,
1157 -Wunused-parameter, -Wunused-variable and -Wunused-value options.
1158
1159 Wed May 17 10:28:12 2000 Philippe De Muyter <phdm@macqel.be>
1160
1161 * mklibgcc.in (building libgcc1) [Xlibgcc1.a]: Find libgcc1.c in
1162 $(srcdir), not in the current directory.
1163
1164 2000-05-16 Richard Henderson <rth@cygnus.com>
1165
1166 * config/ia64/crtbegin.asm (__dso_handle): Mark hidden if the
1167 assembler supports it.
1168 (.fini, .init): Use a gp-relative indirect call.
1169 (__do_global_dtors_aux): Preserve the gp; rebundle.
1170 (__do_frame_setup): Likewise.
1171 * config/ia64/crtend.asm (.IA_64.unwind): Don't terminate with -1.
1172 (.init): Use a gp-relative indirect call.
1173 (__do_global_ctors_aux): Preserve the gp.
1174
1175 2000-05-16 Richard Henderson <rth@cygnus.com>
1176
1177 * flow.c (commit_one_edge_insertion): Be prepared for a return
1178 insn to be inserted on the edge with a normal jump.
1179 * jump.c (jump_optimize_1): Don't look to create return isns.
1180
1181 * flow.c (flow_delete_insn): Don't adjust reference count of notes.
1182 * jump.c (jump_optimize_1): Likewise.
1183 (returnjump_p): Verify the argument is a JUMP_INSN.
1184 * rtl.def (NOTE): Add 5th element for NOTE_INSN_DELETED_LABEL.
1185
1186 2000-05-16 Nick Clifton <nickc@cygnus.com>
1187
1188 * config/m32r/m32r.c (small_insn_p): Use INSN_P() to replace
1189 GET_RTX_CLASS (GET_CODE ()) == 'i'.
1190 (large_insn_p): Ditto.
1191 (m32r_is_insn): New function: Return true if the insn contains
1192 an executable instruction.
1193 (m32r_adjust_insn): Use m32r_is_insn.
1194 (m32r_sched_reorder): Use m32r_is_insn.
1195 (m32r_sched_variable_issue): Use m32r_is_insn.
1196
1197 2000-05-16 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1198
1199 * rs6000/rs6000.c (rs6000_select_section): Treat CONSTRUCTOR like
1200 VAR_DECL.
1201
1202 * rs6000/sysv4.h (ASM_OUTPUT_DWARF_ADDR): Delete unused variable.
1203
1204 * rs6000/sysv4.h (CPP_OS_LINUX_SPEC): Define __unix and __linux
1205 according to given options.
1206
1207 Tue May 16 12:17:31 2000 Jeffrey A Law (law@cygnus.com)
1208
1209 * mn10200.h (PREFERRED_RELOAD_CLASS): Do not prefer DATA_REGS
1210 if X has VOIDmode either.
1211 (LIMIT_RELOAD_CLASS): Similarly.
1212
1213 * mn10200.md (indirect_jump, tablejump): Use "register_operand",
1214 not "general_operand" to match the processor's capabilities.
1215
1216 2000-05-16 Bruce Korb <bkorb@gnu.org>
1217
1218 * fixinc/README: corrected return address
1219 * fixinc/check.diff: regenerate, now that test works
1220 * fixinc/fixfixes.c(format_fix,format_write): reformatted
1221 (char_macro_def_fix,char_macro_use_fix): corrected and
1222 rewrote to use regex to parse the text
1223 * fixinc/inclhack.def: more testing
1224 * fixinc/fixincl.x: regenerated
1225
1226 * fixinc/inclhack.def: added several "test_text" attributes
1227 changed several fixes to use `c_fix = format'
1228 re-alphabetized the fixes
1229
1230 * fixinc/check.diff: regenerate
1231 * fixinc/fixincl.x: regenerate
1232 * fixinc/check.tpl: added `sparc' and `netinet' to the list
1233 of created dirs
1234
1235
1236 2000-05-16 Alexandre Oliva <aoliva@cygnus.com>
1237
1238 * config/mn10300/mn10300.h (ASM_OUTPUT_DWARF2_ADDR_CONST): Remove.
1239
1240 2000-05-15 Richard Henderson <rth@cygnus.com>
1241
1242 * toplev.c (rest_of_compilation): Run full jump pass before
1243 find_basic_blocks of flow2.
1244
1245 2000-05-15 Richard Henderson <rth@cygnus.com>
1246
1247 * jump.c: Fix typos and clarify commentary from last change.
1248 (any_condjump_p): Verify SET_SRC is an IF_THEN_ELSE.
1249 (safe_to_remove_jump_p): Remove.
1250 (condjump_label): Use pc_set.
1251
1252 2000-05-15 Richard Henderson <rth@cygnus.com>
1253
1254 * ifcvt.c (cond_exec_process_insns): Drop USE and CLOBBER insns
1255 that get in the way after reload.
1256 (cond_exec_process_if_block): Skip a label heading THEN block.
1257
1258 2000-05-15 Richard Henderson <rth@cygnus.com>
1259
1260 * varasm.c (output_constant_pool): Abort instead of converting
1261 (improperly) deleted labels to zero.
1262
1263 2000-05-16 Neil Booth <NeilB@earthling.net>
1264
1265 * cpplex.c (parse_string2): Update comment.
1266 (cpp_lex_line): No special assertion treatment for '('.
1267 * cpplib.c (DIRECTIVE_TABLE): Remove SYNTAX_ASSERT.
1268 * cpplib.h (SYNTAX_ASSERT): Remove.
1269
1270 Mon May 15 21:45:36 MET DST 2000 Jan Hubicka <jh@suse.cz>
1271
1272 * jump.c (condjump_p): Mark as depreached.
1273 (any_condump_p): New.
1274 (any_uncondump_p): New.
1275 (pc_set): New.
1276 (safe_to_remove_jump_p): New.
1277 * rtl.h (any_condump_p, any_uncondjump_p, pc_set
1278 safe_to_remove_jump_p): Declare.
1279
1280 Mon May 15 21:07:20 MET DST 2000 Jan Hubicka <jh@suse.cz>
1281
1282 * calls.c: Re-install both patches reverted by last patch.
1283 (struct arg_data): New field tail_call_reg.
1284 (initialize_argument_information): Initialize tail_call_reg
1285 (load_register_parameters): New argument flags, use
1286 tail_call_reg when emiting tail call sequence.
1287 (expand_call): Update call of load_register_parameters;
1288 copy unadjusted_args_size to adjusted_args_size.
1289
1290 Mon May 15 19:01:42 MET DST 2000 Jan Hubicka <jh@suse.cz>
1291
1292 * loop.c (scan_loop, strength_reduce, loop_optimize): Change unroll_p
1293 and bct_p parameters to flags.
1294 * loop.h (LOOP_UNROLL, LOOP_BCT): New constants.
1295 * rtl.h (loop_optimize): Update prototype.
1296 * toplev.c (rest_of_compilation): Update call of loop_optimize.
1297
1298 2000-05-15 Jakub Jelinek <jakub@redhat.com>
1299
1300 * calls.c (expand_call): Move expand_start_target_temps call after
1301 start_sequence().
1302
1303 2000-05-15 Neil Booth <NeilB@earthling.net>
1304
1305 * cpphash.c (trad_stringify, warn_trad_stringify,
1306 collect_params): Make some pointers pointers to const.
1307 * cpplex.c (auto_expand_name_space) Guaranteed to always
1308 expand by at least one character.
1309 (SPELL_CHAR, SPELL_NONE): Temporarily reverse order.
1310 (struct token_spelling): Use const U_CHAR * rather than PTR.
1311 (expand_name_space): Fix up token pointers if name space
1312 is moved when expanding.
1313 (INIT_NAME, cpp_scan_line, parse_name, parse_number,
1314 parse_string2, save_comment, spell_token, cpp_output_list):
1315 Update so the routines handle tokens with a direct pointer to
1316 their text, rather than an offset into the token's list's namebuf.
1317 (_cpp_lex_line): Rearrange for clarity.
1318
1319 * cpplib.c (_cpp_check_directive): Similarly.
1320 (do_define): Make SYM a pointer to const.
1321 * cpplib.h (struct cpp_name): Replace offset with direct pointer.
1322 (CPP_INT, CPP_FLOAT): Spelling type should be SPELL_IDENT.
1323 (TOK_OFFSET): Delete.
1324 (TOK_NAME): Update.
1325
1326 2000-05-14 Geoffrey Keating <geoffk@cygnus.com>
1327
1328 * config/rs6000/rs6000.h (RETURN_ADDRESS_OFFSET): Correct for
1329 64-bit ABI.
1330
1331 * config/rs6000/rs6000.c (logical_operand): Rewrite to take MODE
1332 into account.
1333 (logical_u_operand): Delete.
1334 (non_logical_cint_operand): Rewrite to take MODE into account.
1335 (non_logical_u_cint_operand): Delete.
1336 (boolean_operator): New function.
1337 (print_operand): Add new %q operand.
1338 * config/rs6000/rs6000.h (PREDICATE_CODES): Add boolean_operator,
1339 remove logical_u_operand and non_logical_u_cint_operand,
1340 update logical_operand and non_logical_cint_operand.
1341 * config/rs6000/rs6000.md: Rewrite the patterns for performing
1342 logical operations to use %q.
1343
1344 * config/rs6000/rs6000.md (movsi): Don't modify RTL in-place.
1345 (movdi): Make similar to movsi.
1346 * config/rs6000/rs6000.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): There
1347 is no such thing as a DImode CONST_DOUBLE.
1348 * config/rs6000/rs6000.c (output_toc): Likewise.
1349
1350 * config/rs6000/rs6000.c (output_cbranch): Don't output prediction
1351 codes when old mnemonics are in use. Print register names
1352 for cc registers when requested.
1353
1354 * optabs.c (expand_float): Don't allow mode widening that causes
1355 double rounding.
1356
1357 * invoke.texi (RS/6000 and PowerPC Options): Update -m64/-m32
1358 flags to their current names -maix64 and -maix32.
1359
1360 2000-05-14 Bruce Korb <bkorb@gnu.org>
1361
1362 * fixinc/fixfixes.c(wrap_fix): new fix - inserts text before
1363 and/or after current text of file
1364 * fixinc/fixlib.c(must_malloc):
1365 * fixinc/fixlib.h(must_malloc): + reformatting
1366 * fixinc/inclhack.def: replace the "1i" and "$a" sed commands
1367 with usages of ``c_fix = wrap;''
1368 Add several tests and use the ``c_fix = format'' fixer more.
1369 * fixinc/fixincl.x: regen
1370 * fixinc/check.diff: regen
1371 * fixinc/check.tpl: emit the associated header with the missing
1372 test message
1373
1374 Sun May 14 17:58:59 2000 Hans-Peter Nilsson <hp@axis.com>
1375
1376 * mklibgcc.in (building libgcc1) [Xlibgcc1.a]: Do not use unset
1377 variables $src and $dst.
1378
1379 2000-05-13 Gabriel Dos Reis <gdr@codesourcery.com>
1380
1381 * diagnostic.h (DIAGNOSTICS_SHOW_PREFIX_ONCE): New macro.
1382 (DIAGNOSTICS_SHOW_PREFIX_NEVER): Likewise.
1383 (DIAGNOSTICS_SHOW_PREFIX_EVERY_LINE): Likewise.
1384 (struct output_buffer: emitted_prefix_p, prefixing_rule): New
1385 fields.
1386 (set_message_prefixing_rule): Declare.
1387
1388 * diagnostic.c: (current_prefixing_rule): New variable.
1389 (set_message_prefixing_rule): Define.
1390 (output_set_prefix): Adjust buffer->emitted_prefix_p.
1391 (init_output_buffer): Adjust Initialization.
1392 (output_emit_prefix): Rewrite. Take prefixing rules into account.
1393
1394 Sat May 13 11:05:47 2000 Philippe De Muyter <phdm@macqel.be>
1395
1396 * ifcvt.c (if_convert): Do not free NULL.
1397
1398 2000-05-12 Nick Clifton <nickc@cygnus.com>
1399
1400 * config/fr30/fr30.c (fr30_move_double): New function: Emit code
1401 to move a double word value.
1402 (di_operand): New function: Return true if the operand is suitbale
1403 for a double word move operation.
1404 (nonimmediate_di_operand): New function: Return true if the
1405 operand is a DImode register or MEM.
1406
1407 * config/fr30/fr30.h (PREDICATE_CODES): Add di_operand and
1408 nonimmediate_di_operand.
1409
1410 * config/fr30/fr30-protos.h Add fr30_move_double, di_operand, and
1411 nonimmediate_di_operand.
1412
1413 * config/fr30/fr30.md (movdi): New pattern. Required because
1414 other patterns generate DImode results.
1415 (movdi_insn): New pattern.
1416
1417 2000-05-12 Richard Henderson <rth@cygnus.com>
1418
1419 * config/alpha/alpha.c (struct shadow_summary): Define
1420 bitfields as type unsigned int.
1421
1422 Sat May 13 00:09:59 2000 Denis Chertykov <denisc@overta.ru>
1423
1424 * config/avr/t-avr: Added definition of FLOAT while generates
1425 fp-bit.c
1426
1427 * config/avr/avr.md: `NEXT_INSN (insn)' substituted to `insn' in
1428 peepholes for tst+jump = sbrs/sbrc optimization.
1429
1430 Fry May 12 20:03:00 CEST 2000 Jan Hubicka <jh@suse.cz>
1431
1432 * expr.c (emit_push_insn): Do not adjust stack pointer when
1433 preallocating.
1434
1435 Fri May 12 19:03:58 2000 Philippe De Muyter <phdm@macqel.be>
1436
1437 * ggc-simple.c (offsetof): Macro fallback definition moved from here ..
1438 * system.h (offsetof): ... to here.
1439
1440 2000-05-12 Richard Henderson <rth@cygnus.com>
1441
1442 * Makefile.in (final.o): Depend on BASIC_BLOCK_H.
1443 * final.c (final_end_function): Use app_disable. Rearrange note
1444 handling into a switch. Emit deleted labels.
1445 (output_asm_label): Generate label strings for deleted labels.
1446 * flow.c (tail_recursion_label_list): New.
1447 (find_basic_blocks_1): Set label_value_list directly. Collect list
1448 of tail recursion labels from call_placeholders. Don't add deleted
1449 labels to the label value list.
1450 (cleanup_cfg): Use free_EXPR_LIST_list.
1451 (flow_delete_insn_chain): Turn non-removable labels into notes.
1452 (flow_delete_block): Don't disable deleting the block because of
1453 a non-removable label.
1454 (tail_recursion_label_p): New.
1455 (merge_blocks_move_predecessor_nojumps): Don't disable the merge
1456 because of a label.
1457 (merge_blocks_move_successor_nojumps): Likewise. Also move a
1458 jump table.
1459 (merge_blocks): Disable a merge because of tail recursion labels.
1460 * ifcvt.c (merge_if_block): Don't disable a merge because of a label.
1461 Use a more accurate measure of not merging the join block.
1462 (find_if_block): Don't disable conversion because of a label.
1463 (find_if_case_1, find_if_case_2): Likewise.
1464 * jump.c (duplicate_loop_exit_test): Preserve the kind of list
1465 element when copying.
1466 (squeeze_notes): Also leave EH notes.
1467 (mark_jump_label): Ignore deleted labels. Use an INSN_LIST for
1468 REG_LABEL notes.
1469 (delete_insn): Preserve LABEL_NAME in NOTE_SOURCE_FILE when
1470 deleting a label.
1471 * print-rtl.c (print_rtx): Print NOTE_SOURCE_FILE for
1472 NOTE_INSN_DELETED_LABEL. Print `[# deleted]' for a label_ref
1473 referring to a deleted label. Convert tail handling to a switch.
1474 * rtl.def (CODE_LABEL): Rearrange elements to be compatible with NOTE
1475 for NOTE_INSN_DELETED_LABEL.
1476 (NOTE): Fix commentary.
1477 * rtl.h (REG_LABEL): Update commentary wrt INSN_LIST.
1478 (REG_CC_SETTER, REG_CC_USER, REG_LIBCALL): Likewise.
1479 (CODE_LABEL_NUMBER, LABEL_NAME): Update index.
1480 (LABEL_NUSES, LABEL_REFS): Likewise.
1481 * unroll.c (copy_loop_body): Don't copy NOTE_INSN_DELETED_LABEL.
1482
1483 2000-05-12 Bruce Korb <bkorb@gnu.org>
1484
1485 * fixinc/fixfixes.c(format_write): buglet & relaxed rules
1486 * fixinc/check.diff: updated
1487 * fixinc/inclhack.def: corrected & added some test_text-s
1488 * fixinc/genfixes: removed unneeded options to autogen invocation
1489 * fixinc/fixincl.tpl: Specified the output file
1490 * fixinc/fixfixes.c: visual appearance
1491 * fixinc/fixincl.x: regenerate
1492
1493 2000-05-12 Zack Weinberg <zack@wolery.cumb.org>
1494
1495 * fixinc/fixfixes.c (IO_use_fix, IO_defn_fix, CTRL_use_fix,
1496 CTRL_defn_fix): Delete.
1497 (fix_char_macro_defines, fix_char_macro_uses): Rename to
1498 char_macro_def_fix and char_macro_use_fix, respectively. Put
1499 them into the FIXUP_TABLE. Get the string to search for from
1500 a c_fix_arg.
1501
1502 (format_write): New function.
1503 (format_fix): Use it.
1504
1505 (FIX_PROC_HEAD): Constify text parameter.
1506 (machine_name_fix): Constify all char *s.
1507 * fixtests.c (skip_quote): Remove double static.
1508
1509 * inclhack.def (io_def_quotes, io_use_quotes, ctrl_def_quotes,
1510 ctrl_use_quotes): Update for new scheme.
1511 * fixincl.x: Regenerate.
1512
1513 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
1514
1515 * config/mn10300/mn10300.h (PREFERRED_DEBUGGING_TYPE): Redefine as
1516 DWARF2_DEBUG.
1517 (DWARF2_ASM_LINE_DEBUG_INFO): Define.
1518 (ASM_OUTPUT_DWARF2_ADDR_CONST): Define.
1519
1520 2000-05-11 Robert Lipe <robertlipe@usa.net>
1521
1522 * fixinc/inclhack.def (hpux8_bogus_inlines): Delete bypass for SCO.
1523 * fixincl.x: Regenerate.
1524
1525 2000-05-11 Richard Henderson <rth@cygnus.com>
1526
1527 * calls.c: Revert both 05-09 patches.
1528
1529 2000-05-11 Alexandre Oliva <aoliva@cygnus.com>
1530
1531 * config/mn10300/mn10300.c (print_operand): Print FP constants in
1532 hexadecimal.
1533 * config/mn10300/mn10300.md (movsf, movdf): Use the `F' constraint
1534 for FP values.
1535
1536 * mklibgcc.in (EQ): Define it to an equal sign in the Makefile,
1537 and replace any occurrences of `=' in multilib dirs with `$(EQ)'.
1538
1539 2000-05-11 Jason Merrill <jason@casey.cygnus.com>
1540
1541 * fixinc/fixincl.c (run_compiles): Don't crash on null pz_machine.
1542
1543 2000-05-11 Zack Weinberg <zack@wolery.cumb.org>
1544
1545 * fixinc/fixfixes.c, fixinc/fixtests.c: Update commentary.
1546
1547 Thu May 11 22:28:05 2000 Denis Chertykov <denisc@overta.ru>
1548
1549 * config/avr/avr-protos.c (jump_over_one_insn_p): New declaration.
1550 * config/avr/avr.c (jump_over_one_insn_p): New function.
1551 * config/avr/avr.md: New peepholes added. Output test and
1552 conditional jump to "sbrc" or "sbrs" command.
1553
1554 2000-05-11 Mark Elbrecht <snowball3@bigfoot.com>
1555
1556 * cppmain.c (main): Use IS_DIR_SEPARATOR.
1557
1558 2000-05-11 Jakub Jelinek <jakub@redhat.com>
1559
1560 * except.c (find_exception_handler_labels_1): New function.
1561 (find_exception_handler_labels): Split into two functions, dive
1562 into CALL_PLACEHOLDERs when looking for exception handler labels.
1563
1564 2000-05-11 Stan Cox <scox@cygnus.com>
1565
1566 * regrename.c (replace_reg_in_block): Improve REG_DEAD handling.
1567 * timevar.def (TV_RENAME_REGISTERS): Move before TV_SCHED2.
1568 * toplev.c (rest_of_compilation): Call regrename_optimize before sched2.
1569
1570 2000-05-11 Bruce Korb <bkorb@gnu.org>
1571
1572 * fixinc/fixfixes.c (double_slash_fix): obsolete
1573 (else_endif_label_fix): obsolete
1574 (format_fix): new, unused as yet
1575 (main): obsolete
1576 * fixinc/fixlib.h: added fix description struct for use by format_fix
1577 * fixinc/fixincl.c: removed the struct & test for SIGIOT befure using
1578 * fixinc/Makefile.in: compile fixfixes.c and fixtests.c as separate
1579 modules. Removed the vestiges of the script version.
1580 Added support for "make check".
1581 * fixinc/check.diff: base diff file (needs work!!)
1582 * fixinc/check.tpl: quiet the fixup output
1583 * fixinc/fixtests.c (main): obsolete
1584 * fixinc/fixincl.sh: don't bother copying fixincl to ..
1585 * fixinc/fixincl.tpl: provide for arguments to c_fix routines
1586
1587 Thu May 11 11:57:02 MET DST 2000 Jan Hubicka <jh@suse.cz>
1588
1589 * toplev.c (rest_of_compilation): Remove dead code after
1590 combine.
1591
1592 2000-05-11 Zack Weinberg <zack@wolery.cumb.org>
1593
1594 * cpphash.c (collect_funlike_expansion): Make "# is not
1595 followed by a macro argument name" a pedwarn, not an error.
1596 Preserve the # in the output. Suppress the warning if lang_asm.
1597
1598 Thu May 11 01:19:31 2000 Jeffrey A Law (law@cygnus.com)
1599
1600 * configure.in (hppa*64*-*-hpux11*): New target for PA64 support.
1601 * configure: Rebuilt.
1602
1603 2000-05-10 Laurynas Biveinis <lauras@softhome.net>
1604
1605 * i386/xm-djgpp.h (XREF_FILE_NAME): Add mising brace.
1606
1607 2000-05-10 Kazu Hirata <kazu@hxi.com>
1608
1609 * combine.c (try_combine): Fix a typo.
1610
1611 Wed May 10 21:31:44 2000 Jim Wilson <wilson@cygnus.com>
1612
1613 * config/ia64/ia64.md (insv): Add comment.
1614
1615 2000-05-10 Richard Henderson <rth@cygnus.com>
1616
1617 * Makefile.in (libgcc.a, stmp-multilib): Depend on FPBIT and DPBIT.
1618 * mklibgcc.in: Rewrite to not use functions. Don't shortcut
1619 dependancies on FPBIT and DPBIT.
1620
1621 2000-05-10 Nick Clifton <nickc@redhat.com>
1622
1623 * flow.c (find_auto_inc): Do not bias REG_N_REFS by loop_depth
1624 when optimising for size.
1625 (mark_used_regs:) Ditto.
1626 (try_pre_increment_1): Ditto.
1627
1628 2000-05-10 Zack Weinberg <zack@wolery.cumb.org>
1629
1630 * cppexp.c (lex): Use %.*s to print non-NUL-terminated string.
1631 Make error message friendlier.
1632
1633 * cpphash.h (struct hashnode): Use struct hack for name
1634 member.
1635 * cpphash.c (struct hashdummy): New.
1636 (eq_HASHNODE): Second argument is a hashdummy, not a HASHNODE.
1637 (make_HASHNODE): No need to set ->name pointer. Correct
1638 setting of p.
1639 (cpp_lookup): Make 'dummy' a struct hashdummy. Tidy up a bit.
1640
1641 2000-05-10 Richard Henderson <rth@cygnus.com>
1642
1643 * flow.c (find_basic_blocks_1): Remove any spare bb_note
1644 after completion.
1645
1646 2000-05-10 Bruce Korb <bkorb@gnu.org>
1647
1648 * fixinc/gnu-regex.c: reg_syntax_t re_syntax_options must be static
1649
1650 2000-05-10 Eric Schweitz <schweitz@nortelnetworks.com>
1651
1652 * dwarfout.c (dwarfout_finish): Call retry_incomplete_types
1653 after we enter .debug.
1654
1655 2000-05-10 Jason Merrill <jason@casey.cygnus.com>
1656
1657 * dwarf2out.c (gen_subprogram_die): Fixup die_parent for the
1658 abstract instance of a nested inline function.
1659
1660 * stor-layout.c (finish_record_layout): finalize_type_size
1661 before laying out the pending_statics.
1662
1663 Wed 10 May 09:36:47 2000 Neil Booth <NeilB@earthling.net>
1664
1665 * cpplex.c (spell_token): New function.
1666 (spell_string, spell_comment, spell_name): fold into
1667 spell_token.
1668 (I, S): Add macros.
1669 (E, H): Remove macros.
1670 (save_comment): Save comment opening characters too.
1671 (_cpp_lex_file): Update to use spell_token. Tidy up comment
1672 handling.
1673 * cpplib.h (I, S): Add macros.
1674 (E, H): Remove macros.
1675 (TTYPE_TABLE): Update entries for new speller.
1676 (SYNTAX_ASSERT): Remove.
1677
1678 Wed 10 May 09:08:30 2000 Neil Booth <NeilB@earthling.net>
1679
1680 * cpplex.c (_cpp_lex_line): Maintain PREV_WHITESPACE flag
1681 when removing escaped newlines. Reverse sense of test for
1682 escaped newline.
1683
1684 2000-05-09 Richard Henderson <rth@cygnus.com>
1685
1686 * flow.c (find_basic_blocks_1): Do not delete the first
1687 bb_note we run across.
1688 (create_basic_block): Use reorder_insns to move an existing
1689 bb_note to the correct place.
1690
1691 2000-05-09 Richard Henderson <rth@cygnus.com>
1692
1693 * calls.c (expand_call): Increment currently_expanding_call
1694 before calling optimize_tail_recursion.
1695
1696 Tue May 9 18:54:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1697
1698 * reload1.c (reload_combine): Fix errors in last change.
1699
1700 2000-05-09 Zack Weinberg <zack@wolery.cumb.org>
1701
1702 * gcc.c (used_arg): Skip over a semicolon at the end of the
1703 split-up loop; don't break out of it.
1704
1705 * Makefile.in (WARN_CFLAGS): Add -Wwrite-strings.
1706 (tree.o): Depend on output.h.
1707
1708 * c-decl.c (pending_invalid_xref_file,
1709 current_function_prototype_file): Constify.
1710 (pushdecl): Constify a local char *.
1711 (define_label): Constify filename parameter.
1712 * c-lex.c (init_parse): Constify parameter and return value.
1713 * c-typeck.c (c_expand_asm_operands): Constify filename parameter.
1714 * c-tree.h: Update prototypes.
1715 * c-parse.in: Constify filename member of %union, and if_stmt_file.
1716 * c-parse.y, c-parse.c, c-parse.h, objc/objc-parse.y,
1717 objc/objc-parse.c: Regenerate.
1718
1719 * dwarfout.c (dwarfout_init): Constify main_input_filename parameter.
1720 * dwarfout.h: Update prototypes.
1721 * expr.c (expand_expr): Constify a local char *.
1722 * flags.h: Constify main_input_filename.
1723 * function.c (expand_function_end): Constify filename parameter.
1724 * genrecog.c (make_insn_sequence): Use a character array for
1725 c_test_pos.
1726 (main): Remove unused variables.
1727 * input.h: Constify input_filename, main_input_filename, and
1728 file_stack.name. Update prototypes.
1729 * output.h: Declare first_global_object_name and
1730 weak_global_object_name here, as const char *.
1731 * stmt.c (expand_asm_operands): Constify filename parameter.
1732 * toplev.c (compile_file, push_srcloc, debug_start_source_file):
1733 Constify filename parameter.
1734 (input_filename, main_input_filename): Constify.
1735 * toplev.h: Update prototypes.
1736 * tree.c: Include output.h. Don't declare
1737 first_global_object_name or weak_global_object_name. Clean up string
1738 bashing in get_file_function_name_long.
1739 * tree.h (struct tree_decl): Constify filename member.
1740 (input_filename): Constify.
1741 Update prototypes.
1742 * varasm.c (first_global_object_name, weak_global_object_name):
1743 Constify.
1744 (assemble_start_function, assemble_variable): Clean up string bashing.
1745
1746 * gcc.c: Constify all spec-related strings initialized,
1747 transitively, from string constants. Constify all strings
1748 and string variables related to multilibs.
1749 (set_spec, read_specs): Cast argument to free to PTR.
1750 (used_arg): Do not modify multilib_matches. Use strncmp plus
1751 length comparison to compare multilib switches.
1752 * genmultilib: Constify everything declared in multilib.h.
1753
1754 Tue May 9 22:28:03 2000 Denis Chertykov <denisc@overta.ru>
1755
1756 * flow.c (flow_delete_insn): Use INSN_DELETED_P for marking insn
1757 as deleted.
1758
1759 Tue May 9 20:52:43 2000 Denis Chertykov <denisc@overta.ru>
1760
1761 * config/avr/avr-protos.h (extra_constraint): change a type of
1762 second argument from char to int to avoid warnings.
1763 (asm_output_byte): Likewise.
1764
1765 * config/avr/avr.c (MAX_LD_OFFSET) New macro.
1766 (initial_elimination_offset): Handle elimination from
1767 FRAME_POINTER_REGNUM to STACK_POINTER_REGNUM.
1768 (legitimate_address_p): Use MAX_LD_OFFSET.
1769 (legitimize_address): Likewise.
1770 (out_movqi_r_mr): Likewise.
1771 (out_movhi_r_mr): Likewise, use `fatal_insn' instead of `fatal'.
1772 (out_movsi_r_mr): Use MAX_LD_OFFSET.
1773 (out_movsi_mr_r): Likewise.
1774 (out_movqi_mr_r): Likewise.
1775 (out_movhi_mr_r): Likewise.
1776 (notice_update_cc): Correct CC for the ashrqi3 with the shift
1777 count as CONST_INT != 6.
1778 (ashlqi3_out): Coding style modifications. Run `fatal_insn' if
1779 shift count is a CONSTANT_P, but not a CONST_INT.
1780 (ashlhi3_out): Coding style modifications.
1781 (ashlsi3_out): Likewise.
1782 (ashrhi3_out): Likewise.
1783 (ashrsi3_out): Likewise.
1784 (lshrhi3_out): Likewise.
1785 (lshrsi3_out): Likewise.
1786 (ashrqi3_out): Generate shift for any known constant count without
1787 scratch register. Run `fatal_insn' if shift count is a CONSTANT_P,
1788 but not a CONST_INT.
1789 (lshrqi3_out): Coding style modifications. Run `fatal_insn' if
1790 shift count is a CONSTANT_P, but not a CONST_INT.
1791 (extra_constraint): change a type of
1792 second argument from char to int to avoid warnings.
1793 (asm_output_byte): Likewise.
1794 (asm_file_end): Output size generated commands count as a hex
1795 number too.
1796
1797 * config/avr/avr.h (RETURN_ADDR_RTX): New macro.
1798
1799 * config/avr/avr.md (addhi3): Fragment commented by &&0 is
1800 removed.
1801 (ashlqi3): Values of "length" attribute changed. Shift count
1802 uses constraints 'n' instead of 'i'.
1803 (ashrqi3): Likewise. Values of "cc" attribute changed. Generate
1804 shifts without clobber register.
1805 (lshrqi3): Shift count uses constraints 'n' instead of 'i'.
1806 (call_insn): Correct test for which_alternative == 1 (was 0).
1807 (call_value_insn): Likewise.
1808
1809 * config/avr/t-avr: Remove definition of FLOAT while generates
1810 fp-bit.c
1811
1812 2000-05-09 Bruce Korb <bkorb@gnu.org>
1813
1814 * fixinc/check.tpl: Template for checking fixes
1815 * fixinc/inclhack.def: Added 'test_text' for many fixes
1816 disable hpux8_bogus_inlines on SCO
1817 * fixinc/fixinc.sco: Oh, yes, we don't need this any more.
1818
1819 Tue May 9 16:30:27 MET DST 2000 Jan Hubicka <jh@suse.cz>
1820
1821 * calls.c (expand_call): Reorganize somewhat in order
1822 to avoid unnecesary recalculation inside loop and make
1823 tail call failure code cleaner.
1824
1825 Tue May 9 06:30:20 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1826
1827 * alias.c (nonlocal_reference_p): Minor reformatting.
1828 * reload.c (find_equiv_reg): Simplify logic for
1829 CALL_INSN_FUNCTION_USAGE since can't have SUBREG or pseudos and
1830 some some reformatting.
1831 * reload1.c (reload_combine): Don't assume everything in
1832 CALL_INSN_FUNCTION_USAGE is a REG and clean up code a bit.
1833
1834 2000-05-08 Richard Henderson <rth@cygnus.com>
1835
1836 * final.c (current_insn_predicate): New.
1837 (final_scan_insn): Set it.
1838 * output.h (current_insn_predicate): Declare.
1839
1840 * ifcvt.c (cond_exec_process_insns): New argument prob_val.
1841 Attach it to call insns.
1842 (cond_exec_process_if_block): Track probability for true and
1843 false branches.
1844 (dead_or_predicable): Likewise.
1845
1846 * predict.c (PROB_NEVER, PROB_VERY_UNLIKELY): New.
1847 (PROB_UNLIKELY, PROB_EVEN, PROB_LIKELY): New.
1848 (PROB_VERY_LIKELY, PROB_ALWAYS): New.
1849 (estimate_probability, expected_value_to_br_prob): Use them.
1850
1851 * config/ia64/ia64-protos.h (ia64_expand_prediction): Declare.
1852 * config/ia64/ia64.c (ia64_print_operand_address): Handle 'j'.
1853 (ia64_expand_prediction): New.
1854 (emit_insn_group_barriers): Don't look at notes. Emit barriers
1855 as needed after calls.
1856 (ia64_epilogue_uses): Mark b0 used.
1857 * config/ia64/ia64.md (beq_true, beq_false): Remove.
1858 (bne_true, bne_false): Remove.
1859 (eq_return, eq_not_return, ne_return, ne_not_return): Remove.
1860 (br_true, br_false): New. Use predicate_operator and
1861 ia64_expand_prediction.
1862 (return_true, return_false): Likewise.
1863 (call_internal): Use ia64_expand_prediction. Don't emit stop bit.
1864 (call_internal1, call_value_internal): Likewise.
1865 (call_value_internal1, call_multiple_values_internal1): Likewise.
1866
1867 * config/ia64/ia64.c (ia64_direct_return): Require frame size zero.
1868
1869 * config/ia64/ia64.md (extendsfdf2): Split only after reload.
1870
1871 2000-05-08 Richard Henderson <rth@cygnus.com>
1872
1873 * rtlanal.c (may_trap_p): Consider old-style and volatile
1874 asms to trap.
1875
1876 Mon May 8 17:16:48 2000 Jim Wilson <wilson@cygnus.com>
1877
1878 * config/ia64/ia64.h (RETURN_ADDR_RTX): Use COUNT not count.
1879
1880 2000-05-08 Richard Henderson <rth@cygnus.com>
1881
1882 * config/ia64/ia64.h (predicate_operator): Declare.
1883
1884 * config/ia64/ia64.md (extendsfdf2): Split the nop case out
1885 of existance.
1886
1887 * gensupport.c (process_rtx): Copy and post-process each member
1888 of the define_insn rtvec individually.
1889
1890 Mon 8 May 22:17:35 2000 Neil Booth <NeilB@earthling.net>
1891
1892 * cpplex.c (spell_token): New function.
1893 (TOKEN_LEN): Add 1 for whitespace.
1894 (_cpp_lex_file): Update to use spell_token.
1895 * cpplib.h (E): Remove.
1896 (TTYPE_TABLE): Update CPP_VSPACE entry.
1897
1898 2000-05-08 Richard Henderson <rth@cygnus.com>
1899
1900 * flow.c (init_propagate_block_info): Watch out for conditional
1901 branch to next instruction, and thus one outgoing edge.
1902
1903 * config/ia64/ia64.c (ia64_encode_section_info): Exit early
1904 for global register variables; don't special case __[CD]TOR_LIST__;
1905 mind ggc_p for string allocation.
1906
1907 2000-05-08 Nick Clifton <nickc@cygnus.com>
1908
1909 * config/i386/i386.h (ELIMINABLE_REGS): Fix comment.
1910
1911 2000-05-08 Bruce Korb <bkorb@gnu.org>
1912
1913 * fixinc/mkfixinc.sh: fixinc.sco is no longer used
1914 i?86-*-msdosdjgpp* no longer uses fixincludes
1915 * fixinc/genfixes: inclhack.sh and fixincl.sh are no longer generated
1916 * fixinc/inclhack.sh: deleted
1917 * fixinc/hackshell.tpl: deleted
1918 * fixinc/inclhack.tpl: deleted
1919 * fixinc/Makefile.in: Remove dependencies on above
1920 * fixinc/fixincl.sh: "DO NOT EDIT" text modified
1921
1922 2000-05-08 Andreas Jaeger <aj@suse.de>
1923
1924 * config/mips/linux.h: Remove undefines which disabled .ctor/.dtor
1925 support.
1926
1927 2000-05-07 Zack Weinberg <zack@wolery.cumb.org>
1928
1929 * Makefile.in (LOOSE_CFLAGS): Add /g modifiers to both sed
1930 substitutions.
1931
1932 Sun 7 May 08:43:53 2000 Neil Booth <NeilB@earthling.net>
1933
1934 * cpplex.c: Move new lexer definitions and prototypes
1935 to top. Conditional include these and the code if
1936 NEW_LEXER is defined. Rename functions whose names
1937 clash if this code included.
1938
1939 Sun May 7 00:54:57 EDT 2000 John Wehle (john@feith.com)
1940
1941 * rtl.def (COND_EXEC): Clarify.
1942
1943 * i386.md (extendsidi2): Clobber (reg:CC 17) in the
1944 same fashion as zero_extendsidi2.
1945
1946 2000-05-06 Richard Henderson <rth@cygnus.com>
1947
1948 * config/ia64/ia64.c (predicate_operator): New.
1949 (ia64_print_operand): Handle 'J'.
1950 (rtx_needs_barrier): Handle COND_EXEC.
1951 * config/ia64/ia64.h (BRANCH_COST): Define.
1952 (PREDICATE_CODES): Update.
1953 * config/ia64/ia64.md: Docuement used unspec values.
1954 (attr predicable): New.
1955 (movxf, movxf_internal): New.
1956 (extendsfdf2): Don't comment out nop.
1957 (floatdidf2): Remove.
1958 (truncxfsf2, truncxfdf2, floatdixf2): New.
1959 (abssi2, absdi2): Put the neg in the "true" slot.
1960 (conditional branch instructions): Mark not predicable.
1961 (cmov*_internal): Use predicate_operator. Split to cond_exec.
1962 (abs*_internal): Likewise.
1963 (alloc, set_bsp): Mark not predicable.
1964 (barrier, insn_group_barrier, flush_cache): Likewise.
1965 (define_cond_exec): New.
1966
1967 2000-05-06 Richard Henderson <rth@cygnus.com>
1968
1969 * c-decl.c: Include "tm_p.h".
1970
1971 * config/ia64/ia64-protos.h: Rearrange decls to reduce ifdef madness.
1972 (fetchadd_operand, ia64_expand_fetch_and_op): Declare.
1973 (ia64_expand_op_and_fetch): Declare.
1974 * config/ia64/ia64.c: Include "toplev.h". Kill trailing whitespace.
1975 (setjmp_operand): Constify variables for XSTR.
1976 (ia64_encode_section_info): Likewise.
1977 (ia64_print_operand): Use %d for exact_log2; cast 32-bit printed
1978 values to int.
1979 (ia64_asm_output_external): Constify name.
1980 (process_set): Use HOST_WIDE_INT_PRINT_DEC for frame size.
1981 (process_for_unwind_directive): Provide switch default.
1982 (ia64_expand_compare_and_swap): Remove unused variables.
1983 (ia64_expand_builtin): Likewise.
1984 * config/ia64/ia64.h (ASM_OUTPUT_BYTE): Mask and cast value to int
1985 for printing.
1986
1987 * config/ia64/ia64.c (sdata_symbolic_operand): Mark unused args.
1988 (symbolic_operand, function_operand, setjmp_operand): Likewise.
1989 (shift_count_operand, shift_32bit_count_operand): Likewise.
1990 (shladd_operand, fetchadd_operand, ia64_function_prologue): Likewise.
1991 (ia64_function_epilogue, ia64_setup_incoming_varargs): Likewise.
1992 (ia64_function_arg_partial_nregs, ia64_function_value): Likewise.
1993 (ia64_print_operand_address, ia64_secondary_reload_class): Likewise.
1994 (ia64_expand_builtin): Likewise.
1995 (call_multiple_values_operation): Make dest_regno unsigned.
1996
1997 2000-05-06 Richard Henderson <rth@cygnus.com>
1998
1999 * rtl.def (DEFINE_COND_EXEC): New.
2000 * md.texi: Document it.
2001
2002 * gensupport.c (input_file): Remove.
2003 (struct queue_elem): Add lineno.
2004 (rtx_ready_queue): Remove.
2005 (errors): New.
2006 (predicable_default): New.
2007 (predicable_true, predicable_false): New.
2008 (define_attr_queue, define_attr_tail): New.
2009 (define_insn_queue, define_insn_tail): New.
2010 (define_cond_exec_queue, define_cond_exec_tail): New.
2011 (other_queue, other_tail): New.
2012 (queue_pattern): New.
2013 (process_rtx): Add patterns to the appropriate queues.
2014 (is_predicable, identify_predicable_attribute): New.
2015 (n_alternatives, collect_insn_data): New.
2016 (alter_predicate_for_insn, alter_test_for_insn): New.
2017 (shift_output_template, alter_output_for_insn): New.
2018 (process_one_cond_exec, process_define_cond_exec): New.
2019 (init_md_reader): Read the entire file. Process define_cond_exec.
2020 (read_md_rtx): Return elements from the queues.
2021
2022 2000-05-06 Richard Henderson <rth@cygnus.com>
2023
2024 * flow.c (mark_set_1): Don't update conditional life info
2025 if the register is not_dead.
2026
2027 2000-05-06 Zack Weinberg <zack@wolery.cumb.org>
2028
2029 * Makefile.in (STAGESTUFF): Add genrtl.c and genrtl.h.
2030 (mostlyclean): Also delete fixincl, fixinc.sh, and
2031 specs.ready, and make clean in the fixinc subdir.
2032
2033 2000-05-06 Richard Henderson <rth@cygnus.com>
2034
2035 * Makefile.in (gensupport.o): Compile for the host.
2036 (host-prefix gensuuprt.o): Remove.
2037 (genflags.o): Depend on gensupport.h and OBSTACK_H.
2038 (genattrtab.o): Likewise.
2039 (gencodes.o): Depend on gensupport.h.
2040 (genemit.o, genopinit.o, genrecog.o, genextract.o): Likewise.
2041 (genpeep.o, genattr.o, genoutput.o): Likewise.
2042
2043 * gensupport.c (obstack, rtl_obstack): New.
2044 (init_md_reader): Initialize rtl_obstack.
2045 * gensupport.h (rtl_obstack): Declare.
2046 (message_with_line): Declare.
2047
2048 * genattr.c: Remove all traces of obstack manipulation.
2049 * gencodes.c, genconfig.c, genemit.c, genextract.c: Likewise.
2050 * genopinit.c, genoutput.c, genpeep.c, genrecog.c: Likewise.
2051
2052 * genattrtab.c (obstack, rtl_obstack): Remove.
2053 (main): Don't init rtl_obstack.
2054 * genflags.c: Likewise.
2055
2056 * genrecog.c (message_with_line): Move ...
2057 * gensupport.c: ... here.
2058
2059 2000-05-06 Richard Henderson <rth@cygnus.com>
2060
2061 * c-typeck.c (build_c_cast): Remove dead code.
2062
2063 2000-05-06 Richard Henderson <rth@cygnus.com>
2064
2065 * flow.c (split_edge): Don't allocate global_live_at_start for
2066 the new block unless the old blocks had them as well.
2067
2068 * flow.c (mark_set_1): Respect not_dead when updating reg_live.
2069
2070 * ifcvt.c (noce_process_if_block): Don't use an insn_b from
2071 test_bb if a or b uses x.
2072
2073 2000-05-06 Zack Weinberg <zack@wolery.cumb.org>
2074
2075 * cpphash.h: Remove conditional #define of __extension__.
2076 * rtl.h: Add __extension__ to RTL_CHECK1, RTL_CHECK2,
2077 RTL_CHECKC1, RTL_CHECKC2, and RTVEC_ELT macros
2078 (ENABLE_RTL_CHECKING only).
2079 * tree.h: Add __extension__ to TREE_CHECK, TREE_CLASS_CHECK,
2080 CST_OR_CONSTRUCTOR_CHECK, and EXPR_CHECK macros
2081 (ENABLE_TREE_CHECKING only).
2082 * varray.h: Add __extension__ to VARRAY_CHECK macro
2083 (ENABLE_CHECKING only).
2084
2085 2000-05-06 Richard Earnshaw (reanrsha@arm.com)
2086
2087 Use new tail-calling mechanism on ARM.
2088 * arm.md (sibcall, sibcall_value): New expands.
2089 (sibcall_insn, sibcall_value_insn, sibcall_epilogue): New insns.
2090 (tailcalling peepholes): Delete.
2091 (push_multi): Simplify.
2092 * arm.c (lr_save_eliminated): Delete definition.
2093 (pattern_really_clobbers_lr, function_really_clobbers_lr): Delete.
2094 (output_return_instruction): Remove checks on lr_save_eliminated.
2095 (output_arm_prologue): Remove old tail-calling code.
2096 (arm_output_epilogue): New parameter, really_return. All callers
2097 changed. Handle tail-calling epilogues.
2098 * arm.h (lr_save_eliminated): Delete declaration.
2099 (frame_pointer_needed): Delete declaration.
2100 * arm-protos.h (arm_output_epilogue): Adjust prototype.
2101
2102 * arm.md (is_thumb): Examine symbol thumb_code, not expression
2103 TARGET_ARM.
2104 * arm.c (thumb_code): Define it.
2105 (arm_override_options): Set it.
2106 * arm.h (thumb_code): Declare it.
2107
2108 2000-05-06 Richard Earnshaw (reanrsha@arm.com)
2109
2110 * arm-protos.h (arm_dllexport_name_p, arm_dllimport_name_p): Constify.
2111
2112 2000-05-06 Richard Earnshaw (reanrsha@arm.com)
2113
2114 * arm.c (arm_gen_load_multiple, arm_gen_store_mulitple): Don't add
2115 bogus clobber to insns.
2116 (load_multiple_operation, store_mulitple_operation): Don't check
2117 for it.
2118 * arm.md (ldmsi_postinc, stmsi_postinc): Adjust accordingly.
2119
2120 * arm.md (and_scc, ior_scc): Add missing mode.
2121
2122 * arm.md (call_value_symbol): Remove predicate from op2.
2123
2124 * arm.h (SPECIAL_MODE_PREDICATES): Define.
2125
2126 Sat May 6 06:25:56 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2127
2128 * expr.c (get_subtarget): New function.
2129 (force_operand, expand_expr, do_store_flag): Use it.
2130
2131 * toplev.c (compile_file): Don't take strlen of NAME if null.
2132
2133 2000-05-06 David Edelsohn <edelsohn@gnu.org>
2134
2135 * xcoffout.c (xcoff_current_include_file,
2136 xcoff_current_function_file, xcoff_lastfile): Constify char *.
2137 (xcoffout_source_file, xcoffout_source_line): Make filename 'const
2138 char *'.
2139 (xcoffout_declare_function): Make name 'const char *'.
2140 (xcoffout_end_epilogue): Make fname 'const char *'
2141 * xcoffout.h (xcoff_current_include_file, xcoff_lastfile,
2142 xcoffout_declare_function, xcoffout_source_line): Match above.
2143
2144 * aix43.h (SUBTARGET_OVERRIDE_OPTIONS): -mpowerpc64 without
2145 -maix64 is error.
2146 * rs6000.c (print_operand): Fix lossage typo.
2147 (output_cbranch): Remove "cr" decoration for now.
2148 * rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Make alias 'const char *'.
2149
2150 Sat May 6 06:55:32 2000 Denis Chertykov <denisc@overta.ru>
2151
2152 * config/avr/avr.c (out_shift_with_cnt): Bugfix for shift by
2153 constant count.
2154
2155 2000-05-05 Bruce Korb <bkorb@gnu.org>
2156
2157 * fixinc/genfixes: Improve the matching for make target names
2158
2159 2000-05-05 Catherine Moore <clm@cygnus.com>
2160
2161 * c-common.c (decl_attributes): For TYPE_DECLs attach the
2162 attribute to the decl.
2163 * c-decl.c (pushdecl): Propagate the USED attribute to the
2164 type copy.
2165
2166 2000-05-05 Richard Henderson <rth@cygnus.com>
2167
2168 * rtlanal.c (reg_overlap_mentioned_p): Treat parallels in the
2169 same way emit_group_load does.
2170
2171 2000-05-05 Mark Elbrecht <snowball3@bigfoot.com>
2172
2173 * gcc.c (set_input) [HAVE_DOS_STYLE_FILE_SYSTEM]: Skip drive name.
2174
2175 * toplev.c (output_file_directive): Use IS_DIR_SEPARATOR.
2176 (main): Likewise.
2177
2178 2000-05-05 Rodney Brown <RodneyBrown@mynd.com>
2179
2180 * pa.h (FUNCTION_ARG_ADVANCE): Warning removal.
2181
2182 Fri May 5 10:29:21 2000 Marc Espie <espie@cvs.openbsd.org>
2183
2184 * config/openbsd.h (LINK_SPEC): pass correct flags to ld
2185 to support -shared, on platforms with dynamic libraries.
2186
2187 Fri May 5 10:27:06 2000 Philippe De Muyter <phdm@macqel.be>
2188
2189 * system.h (S_ISBLK): Provide fallback definition.
2190
2191 2000-05-05 Geoff Berry <geoffb@bops.com>
2192
2193 * extend.texi (Extended Asm): Document inability to give asm
2194 statements access to condition codes.
2195
2196 2000-05-05 Marek Michalkiewicz <marekm@linux.org.pl>
2197
2198 * varasm.c (asm_emit_uninitialised): Use 0, not NULL
2199 as arg 2 of UNIQUE_SECTION.
2200
2201 Fri May 5 10:11:41 2000 Jeffrey A Law (law@cygnus.com)
2202
2203 * predict.c: Remove May 4 change.
2204 * bb-reorder.c (make_reorder_chain): Do not perform block movement
2205 if we have predicted the branch at 50-50 probability.
2206
2207 2000-05-05 Richard Henderson <rth@cygnus.com>
2208
2209 * flow.c (init_propagate_block_info): Fix merge error
2210 in HAVE_conditional_execution code.
2211
2212 Fri May 5 07:43:50 2000 Denis Chertykov <denisc@overta.ru>
2213
2214 * config/avr/avr.c (out_shift_with_cnt): Genetare a more optimal
2215 shift cycle for unknown shift count. Also generates dec + brpl.
2216 (ashlqi3_out): Don't generate dec + brpl which now generates by
2217 `out_shift_with_cnt'.
2218 (ashlhi3_out): Likewise.
2219 (ashlsi3_out): Likewise.
2220 (ashrqi3_out): Likewise.
2221 (ashrhi3_out): Likewise.
2222 (ashrsi3_out): Likewise.
2223 (lshrqi3_out): Likewise.
2224 (lshrhi3_out): Likewise.
2225 (lshrsi3_out): Likewise.
2226
2227 2000-05-04 Mark Elbrecht <snowball3@bigfoot.com>
2228
2229 * gcc.c (free_split_directories): Correct typo in explanation
2230 of make_relative_prefix.
2231
2232 2000-05-04 Geoff Keating <geoffk@cygnus.com>
2233
2234 * config/rs6000/rs6000.h (PREDICATE_CODES): Add floating-point
2235 comparison codes to branch_comparison_operator.
2236
2237 2000-05-04 Richard Henderson <rth@cygnus.com>
2238
2239 * ifcvt.c (noce_process_if_block): Always reset X in the A == B case.
2240
2241 2000-05-04 Richard Henderson <rth@cygnus.com>
2242
2243 * Makefile.in (FPBIT_FUNCS): Remove _df_to_usi.
2244 (DPBIT_FUNCS): Remove _sf_to_usi.
2245 (stmp-multilib): Pass LIB1ASMSRC to libgcc.mk.
2246
2247 * ifcvt.c (noce_process_if_block): Fail if A or B modified
2248 between condition and jump.
2249
2250 * libgcc2.c (near eh_context_specific): Comment #endif string.
2251 * longlong.h: Don't use strings with embedded newlines.
2252
2253 2000-05-04 Geoff Keating <geoffk@cygnus.com>
2254
2255 * config/rs6000/rs6000-protos.h: Add output_cbranch.
2256 * config/rs6000/rs6000.c (ccr_bit_negated_p): Delete.
2257 (print_operand): Delete %t and %T codes.
2258 (output_cbranch): New function. Support branch prediction.
2259 * config/rs6000/rs6000.md: Use output_cbranch for
2260 conditional branches and returns.
2261
2262 2000-05-04 Jason Merrill <jason@casey.cygnus.com>
2263
2264 * simplify-rtx.c (simplify_ternary_operation): Cast to unsigned.
2265 * stor-layout.c (place_field): Likewise.
2266 * integrate.h (struct inline_remap): Make regno_pointer_align unsigned.
2267 * expr.c (store_expr): Make align unsigned.
2268 * explow.c (plus_constant_wide): Make low words unsigned.
2269 * expmed.c (choose_multiplier): Likewise.
2270 * fold-const.c (fold): Likewise.
2271 * tree.h (build_int_2): Likewise.
2272 * tree.c (build_int_2_wide, tree_int_cst_msb): Likewise.
2273 * emit-rtl.c (gen_reg_rtx): Add cast to unsigned char*.
2274 (init_emit): Change cast to unsigned char*.
2275 * varasm.c (compare_constant_1): Add cast to char*.
2276 * gcse.c (delete_null_pointer_checks): Change cast to unsigned int*.
2277 * reload1.c (reload): Likewise.
2278
2279 * rtl.h (MEM_SET_IN_STRUCT_P): Use do { } while (0).
2280
2281 Thu May 4 14:37:23 2000 Jeffrey A Law (law@cygnus.com)
2282
2283 * predict.c (estimate_probability): If no prediction was found, then
2284 predict the successor that is the next physical block (if such a
2285 successor exists).
2286
2287 2000-05-04 Richard Henderson <rth@cygnus.com>
2288
2289 * config/alpha/t-alpha (LIB2FUNCS_EXTRA): Use qrrnd.asm in place.
2290
2291 2000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2292
2293 * system.h: Don't wrap <sys/types.h> with HAVE_SYS_TYPES_H.
2294
2295 2000-05-04 Mumit Khan <khan@xraylith.wisc.edu>
2296
2297 * i386/cygwin.h (CPP_PREDEFINES): Don't define __STDC__. Move
2298 attribute macros from here ...
2299 (CPP_SPEC): to here.
2300 * i386/mingw32.h (CPP_PREDEFINES): Likewise.
2301 (CPP_SPEC): Likewise.
2302 * i386/crtdll.h (CPP_PREDEFINES): Delete attribute macros.
2303
2304 * Makefile.in ($(HOST_PREFIX_1)gensupport.o): Add build rule.
2305 (libgcc.a): Pass LIB1ASMSRC to libgcc.mk.
2306
2307 2000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2308
2309 * bb-reorder.c (get_next_bb_note, get_prev_bb_note): Prototype.
2310
2311 * diagnostic (vbuild_message_string, build_message_string,
2312 build_location_prefix, output_get_prefix, init_output_buffer,
2313 output_notice, vline_wrapper_message_with_location,
2314 v_message_with_decl, default_print_error_function): De-constify.
2315 (set_real_maximum_length): Prototype.
2316
2317 * diagnostic.h (struct output_buffer, init_output_buffer,
2318 output_get_prefix, output_set_prefix): De-constify.
2319
2320 * function.c (init_function_start): Constify.
2321
2322 * gensupport.c (remove_constraints, process_rtx): Prototype.
2323
2324 * gthr-posix.h: Indent uses of #pragma.
2325
2326 * objc/objc-act.c (ggc_mark_imp_list, ggc_mark_hash_table):
2327 Prototype.
2328
2329 * predict.c (find_expected_value): Delete prototype.
2330 (expected_value_to_br_prob): Initialize variable `ev_reg'.
2331
2332 * sbitmap.h (debug_sbitmap): Prototype.
2333
2334 * ssa.c (compute_coalesced_reg_partition): Prototype.
2335
2336 * stor-layout.c (debug_rli): Prototype.
2337
2338 * tree.h (round_down): Prototype.
2339 (init_function_start): Constify.
2340
2341 2000-05-04 Zack Weinberg <zack@wolery.cumb.org>
2342
2343 * cpphash.h: #define __extension__ away if GCC_VERSION < 2095
2344 (overly conservative). Change extern inline wrappers to
2345 static inline, define them always, use PARAMS properly.
2346 * cpplex.c (_cpp_get_directive_token): Don't issue pedantic
2347 whitespace warnings for \f and \v at the beginning of a line.
2348
2349 Thu May 4 10:03:50 2000 Jeffrey A Law (law@cygnus.com)
2350
2351 * haifa-sched.c (schedule_insns): Free the flow edge list when it
2352 is no longer needed
2353
2354 2000-05-04 Bruce Korb <bkorb@gnu.org>
2355
2356 * fixincl/inclhack.def: added broken_cabs -
2357 Remove `extern double cabs' declarations from math.h
2358 * fixincl/inclhack.sh: regen
2359 * fixincl/fixincl.x: regen
2360 * fixincl/fixincl.c: Remove BOGOSITY code
2361 * fixincl/mkfixinc.sh: Remove code for installing "shell" version
2362
2363 Thu May 4 09:45:12 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2364
2365 * rtl.h (MEM_COPY_ATTRIBUTES): Also copy RTX_UNCHANGING_P and
2366 MEM_ALIAS_SET.
2367 * alias.c (canon_rtx): Don't copy RTX_UNCHANGING_P or MEM_ALIAS_SET
2368 when calling MEM_COPY_ATTRIBUTES.
2369 * emit-rtl.c (operand_subword, change_address): Likewise.
2370 * explow.c (stabilize): Likewise.
2371 * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
2372 * integrate.c (copy_rtx_and_substitute): Likewise.
2373 * combine.c (combine_simplify_rtx): Don't copy RTX_UNCHANGING_P
2374 when calling MEM_COPY_ATTRIBUTES.
2375 (make_extraction, simplify_shift_const, gen_lowpart_for_combine):
2376 Likewise.
2377 * cse.c (gen_lowpart_if_possible): Likewise.
2378 * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
2379 * optabs.c (gen_move_insn): Likewise.
2380 * recog.c (validate_replace_rtx_1): Likewise.
2381 * simplify-rtx.c (add_mem_for_addr): Likewise.
2382 * stmt.c (expand_anon_union_decl): Likewise.
2383 * config/arm/arm.md: Likewise.
2384 * config/h8300/h7300.c (fix_bit_operand): Likewise.
2385 * config/m88k/m88k.c (legitimize_address, block_move_loop): Likewise.
2386 (block_move_no_loop, block_move_sequence): Likewise.
2387 * config/rs6000/rs6000.c (expand_block_move_mem): Likewise.
2388 * config/alpha/alpha.c (get_aligned_mem): Likewise.
2389 Clear MEM_ALIAS_SET.
2390 * final.c (alter_subreg): Don't copy MEM_ALIAS_SET when calling
2391 MEM_COPY_ATTRIBUTES.
2392
2393 2000-05-03 Robert Lipe <robertlipe@usa.net>
2394
2395 * configure.in (i[34567]86-*-isc*) [tmake_file]: Add t-i386bare
2396 to suppress libgcc1.
2397 (i[34567]86-*-sco3.2v5*) Likewise.
2398 (i[34567]86-*-sco3.2v4*) Likewise.
2399 (i[34567]86-*-sco) Likewise.
2400 (i[34567]86-*-solaris2) Likewise.
2401 (i[34567]86-*-sysv5*) Likewise.
2402 (i[34567]86-*-sysv4*) Likewise.
2403 (i[34567]86-*-udk*) Likewise.
2404 (i[34567]86-*-sysv*) Likewise.
2405
2406 2000-05-03 Zack Weinberg <zack@wolery.cumb.org>
2407
2408 * cpphash.h (U): New define, to correct type of string constants.
2409 (ustrcmp, ustrncmp, ustrlen, uxstrdup, ustrchr): New wrapper
2410 routines, to do casts when passing unsigned strings to libc.
2411 * cppexp.c, cppfiles.c, cpphash.c, cppinit.c, cpplib.c: Use them.
2412
2413 * cppfiles.c (_cpp_execute_include): Make filename an U_CHAR *.
2414 * cpphash.c (_cpp_quote_string): Make string an U_CHAR *.
2415 * cppinit.c (dump_special_to_buffer): Make macro name an U_CHAR *.
2416 * cpplex.c (parse_ifdef, parse_include, validate_else): Make
2417 second argument an U_CHAR *.
2418
2419 * cppinit.c (builtin_array): Make name and value U_CHAR *, add
2420 length field, clean up initializer.
2421 (ISTABLE): Add __extension__ to designated-
2422 initializers version.
2423 * cpplex.c (CHARTAB): Likewise.
2424
2425 * mbchar.c: Add dummy external declaration to the !MULTIBYTE_CHARS
2426 case so the file won't be empty.
2427
2428 Wed May 3 21:01:46 2000 Jason Eckhardt <jle@cygnus.com>
2429
2430 * bb-reorder.c (struct reorder_block_def): Member succ removed.
2431 (REORDER_BLOCK_SUCC): Removed.
2432 (enum reorder_skip_type): Removed.
2433 (skip_insns_between_block): Renamed to skip_insns_after_block.
2434 Removed second argument. Removed dead code and cleaned up.
2435 (make_reorder_chain): Removed use of REORDER_BLOCK_SUCC.
2436 (reorder_basic_blocks): Remove use of REORDER_SKIP_AFTER. Removed
2437 second parameter to skip_insns_after_block.
2438
2439 Wed May 3 13:29:54 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2440
2441 * tree.c (staticp, case LABEL_DECL): New case.
2442
2443 2000-05-03 Richard Henderson <rth@cygnus.com>
2444
2445 * Makefile.in (start.encap): Do not depend on LIBGCC1.
2446
2447 * mklibgcc1.in: Fix typo last change.
2448
2449 2000-05-03 Jason Merrill <jason@casey.cygnus.com>
2450
2451 * Makefile.in (WARN_CFLAGS): Add -pedantic -Wno-long-long.
2452 (LOOSE_CFLAGS): New: CFLAGS without -pedantic and -Wtraditional.
2453 (GCC_CFLAGS): Use it.
2454 (LANG_FLAGS_TO_PASS): New: SUBDIR_FLAGS_TO_PASS with LOOSE_CFLAGS.
2455 * cp/Make-lang.in, java/Make-lang.in, f/Make-lang.in, ch/Make-lang.in,
2456 objc/Make-lang.in: Use it.
2457
2458 2000-05-03 Jason R Thorpe <thorpej@zembu.com>
2459
2460 * config/i386/i386.md (lshrqi2_cmpno): Use q not r in constraint.
2461
2462 2000-05-03 Richard Henderson <rth@cygnus.com>
2463
2464 * mklibgcc.in: Restrict OLDCC=GCC test to native. Equate
2465 LIBGCC1 empty with libgcc1.null.
2466
2467 Wed May 3 12:55:46 2000 Jim Wilson <wilson@cygnus.com>
2468
2469 * fold-const.c (extract_muldiv, case MAX_EXPR): Don't allow signedness
2470 change.
2471
2472 2000-05-03 Greg McGary <gkm@gnu.org>
2473
2474 * tree.h (tree_common): Add bounded_flag member. Remove
2475 inaccurate comment about number of remaining bits.
2476 (BOUNDED_INDIRECT_TYPE_P, BOUNDED_POINTER_TYPE_P,
2477 BOUNDED_REFERENCE_TYPE_P, MAYBE_BOUNDED_INDIRECT_TYPE_P,
2478 MAYBE_BOUNDED_POINTER_TYPE_P, MAYBE_BOUNDED_REFERENCE_TYPE_P,
2479 TREE_BOUNDED, TYPE_MAIN_VARIANTS_PHYSICALLY_EQUAL_P,
2480 TYPE_MAIN_PHYSICAL_VARIANT, TYPE_BOUNDED): New macros.
2481 (TYPE_QUAL_BOUNDED): New constant.
2482 (TYPE_QUALS): Handle bounded qualifier.
2483 (TREE_EXPR_QUALS, TREE_FUNC_QUALS): New macros.
2484 (TYPE_BOUNDED_VALUE, TYPE_BOUNDED_BASE, TYPE_BOUNDED_EXTENT,
2485 TYPE_BOUNDED_SUBTYPE, TYPE_UNBOUNDED_VARIANT, TYPE_POINTER_DEPTH,
2486 TYPE_AMBIENT_BOUNDEDNESS): New macros.
2487 (MAX_POINTER_DEPTH, VA_LIST_POINTER_DEPTH): New constants.
2488 (tree_type): Add pointer_depth member. Remove
2489 inaccurate comment about number of remaining bits.
2490 (DECL_POINTER_DEPTH): Add macro.
2491 (tree_decl): Add pointer_depth member.
2492
2493 Wed May 3 22:52:53 2000 Denis Chertykov <denisc@overta.ru>
2494
2495 * config/avr/avr-protos.h (test_hard_reg_class): Declared.
2496 * config/avr/avr.c (ashrhi3_out): optimized shift by 15.
2497 (lshrhi3_out): Likewise.
2498 (ashrsi3_out): bugfix in shift by 8.
2499 (test_hard_reg_class): New function.
2500 * config/avr/avr.md: Bugfix inside conditions in peepholes.
2501 (ashlhi3): removed define_expand of this pattern.
2502 (*ashlhi3_insn): renamed to ashlhi3.
2503 (ashlsi3): removed define_expand of this pattern.
2504 (*ashlsi3_insn): renamed to ashlsi3.
2505 (ashrqi3): removed define_expand of this pattern.
2506 (*ashrqi3_insn): renamed to ashrqi3.
2507 (ashrhi3): removed define_expand of this pattern.
2508 (*ashrhi3_insn): renamed to ashrhi3.
2509 (ashrsi3): removed define_expand of this pattern.
2510 (*ashrsi3_insn): renamed to ashrsi3.
2511 (lshrhi3): removed define_expand of this pattern.
2512 (*lshrhi3_insn): renamed to lshrhi3.
2513 (lshrsi3): removed define_expand of this pattern.
2514 (*lshrsi3_insn): renamed to lshrsi3.
2515
2516 2000-05-03 Rodney Brown <RodneyBrown@pmsc.com>
2517
2518 * config/mcore/mcore.c: Replacing inclusion of "stdio,h" with
2519 inclusion of "system.h".
2520
2521 Wed May 3 11:43:53 2000 Jim Wilson <wilson@cygnus.com>
2522
2523 * config/ia64/ia64.c (ia64_encode_section_info): Add check for
2524 TREE_ASM_WRITTEN.
2525
2526 2000-05-03 David Mosberger <davidm@hpl.hp.com>
2527
2528 * config/ia64/ia64.c (ia64_override_options): Force -mconstant-gp
2529 if -mauto-pic is on.
2530 (ia64_epilogue_uses): Mark "gp" (r1) as used by the epilogue if
2531 -mconstant-gp is in effect and function-descriptors are being used
2532 to make indirect calls.
2533 * config/ia64/ia64.h (MASK_CONST_GP): New macro.
2534 (MASK_AUTO_PIC): Ditto.
2535 (TARGET_CONST_GP): Ditto.
2536 (TARGET_AUTO_PIC): Ditto.
2537 (TARGET_SWITCHES): Add -mconstant-gp and -mauto-pic options.
2538 (ASM_OUTPUT_DOUBLE_INT): Don't generate @fptr() if -mauto-pic or
2539 -mno-pic is in effect.
2540 (ASM_OUTPUT_XDATA_DOUBLE_INT): Ditto.
2541 * config/ia64/ia64.md (movdi): Use gen_load_gprel64() if
2542 -mauto-pic is in effect.
2543 (gprel64_offset): New pattern.
2544 (load_gprel64): Ditto.
2545 (call): Handle -mauto-pic like -mno-pic (don't use fptr). If
2546 -mconstant-gp is in effect, no need to preserve gp around direct
2547 calls.
2548 (call_value): Ditto.
2549 * config/ia64/linux.h (PROFILE_BEFORE_PROLOGUE): Define.
2550 (FUNCTION_PROFILER): Define.
2551 * config/ia64/sysv4.h (ASM_OUTPUT_CONSTRUCTOR): Don't generate
2552 @fptr() directive when -mno-pic or -mauto-pic is in effect.
2553 (ASM_OUTPUT_DESTRUCTOR): Ditto.
2554
2555 2000-05-03 Richard Henderson <rth@cygnus.com>
2556
2557 * Makefile.in (STAGESTUFF): Add libgcc libgcc.mk.
2558 (libgcc1.null, libgcc1.cross, libgcc1.a): Remove targets.
2559 (libgcc1-asm.a, libgcc1.S, libgcc2.a): Remove targets.
2560 (mklibgcc, libgcc.mk): New targets.
2561 (libgcc.a): Use libgcc.mk.
2562 (stmp-multilib): Likewise.
2563 (stmp-multilib-sub): Remove.
2564 (mostlyclean): Don't delete libgcc2 temp files.
2565 * configure.in (AC_PROG_CC_C_O): Add.
2566 (NO_MINUS_C_MINUS_O): Substitute it.
2567 (all_outputs): Add mklibgcc.
2568 * mklibgcc.in: New file.
2569
2570 2000-05-03 Jason Merrill <jason@casey.cygnus.com>
2571
2572 * cppexp.c (op_t): Make an int.
2573
2574 * rtlanal.c (dead_or_set_regno_p): Remove unused variable.
2575
2576 * varasm.c (initializer_constant_valid_p): Fix parenthesis.
2577
2578 * gensupport.c (process_rtx): Fix macros used.
2579
2580 2000-05-03 Richard Henderson <rth@cygnus.com>
2581
2582 * flow.c (propagate_one_insn): Also don't PROP_REG_INFO for
2583 call-clobbered registers of a call.
2584
2585 Wed May 3 12:40:53 2000 Clinton Popetz <cpopetz@cygnus.com>
2586
2587 * gensupport.c: New file.
2588 * gensupport.h: New file.
2589 * Makefile.in (HOST_RTL): Depend on gensupport.
2590 (gensupport.o) New rule.
2591 * genattr.c: Use gensupport for reading .md files.
2592 * genattrtab.c: Ditto.
2593 * gencodes.c: Ditto.
2594 * genconfig.c: Ditto.
2595 * genemit.c: Ditto.
2596 * genextract.c: Ditto.
2597 * genflags.c: Ditto.
2598 * genopinit.c: Ditto.
2599 * genoutput.c: Ditto.
2600 * genpeep.c: Ditto.
2601 * genrecog.c: Ditto.
2602 * rtl.def (define_insn_and_split): New DEF_RTL_EXPR.
2603 * md.texi (Insn Splitting): Document define_insn_and_split.
2604
2605 Tue May 2 00:20:30 2000 Jason Eckhardt <jle@cygnus.com>
2606
2607 * flow.c (verify_flow_info): Added two more sanity checks. The
2608 first checks that the blocks are numbered consecutively. The second
2609 checks that n_basic_blocks is actually equal to the number of
2610 basic blocks in the insn chain.
2611
2612 2000-05-03 Zack Weinberg <zack@wolery.cumb.org>
2613
2614 * cpplib.h: Add accessor macros for token lists.
2615 * cpplib.c, cpphash.c, cpplex.c: Use them.
2616
2617 Wed May 3 09:29:17 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2618
2619 * expr.c (expand_expr, case COMPONENT_REF): Don't check for checking
2620 memory usage if not in a function.
2621 * varasm.c (initializer_constant_valid_p, case ADDR_EXPR): Only
2622 return address if static.
2623
2624 Wed May 3 13:14:49 MET DST 2000 Jan Hubicka <jh@suse.cz>
2625
2626 * ifcvt.c (noce_try_cmove_arith): Use may_trap_p to thest
2627 whether address may trap.
2628
2629 Tue May 2 23:38:37 2000 Jason Eckhardt <jle@cygnus.com>
2630
2631 * bb-reorder (chain_reorder_blocks): Changed code to test for
2632 EDGE_FALLTHRU rather than making erroneous assumption that the
2633 first outgoing edge is the fall-through edge.
2634
2635 Tue May 2 18:20:31 2000 Donald Lindsay <dlindsay@hound.cygnus.com>
2636
2637 * config/mips/mips.c (mips_build_va_list,mips_va_start,mips_va_arg): new
2638 ABI for varargs, across all MIPS. This is incompatible because the
2639 va_list (__builtin_va_list) structure is different, so a compilation
2640 unit passing a va_list and a compilation unit being passed one, should
2641 both be compiled with the same ABI. (The old structure had two
2642 pointers, now it has three.)
2643
2644 Tue May 2 19:18:43 2000 Jason Eckhardt <jle@cygnus.com>
2645
2646 * bb-reorder.c (struct reorder_block_def): Remove members end,
2647 block_begin, and block_end.
2648 (REORDER_BLOCK_OLD_END): Delete.
2649 (REORDER_BLOCK_BEGIN): Delete.
2650 (REORDER_BLOCK_END): Delete.
2651 (chain_reorder_blocks): Remove dead code.
2652
2653 Tue May 2 17:06:53 2000 Jason Eckhardt <jle@cygnus.com>
2654
2655 * bb-reorder.c (remove_scope_notes): Check for both types of scope
2656 notes as the end of a basic block before deleting.
2657
2658 2000-05-02 Mumit Khan <khan@xraylith.wisc.edu>
2659
2660 * final.c (final_start_function): Fix spelling of "necessary".
2661
2662 2000-05-02 Jason Merrill <jason@casey.cygnus.com>
2663
2664 * toplev.c (debug_ignore_block): Return int.
2665 * dwarf2out.c (dwarf2out_ignore_block): Likewise.
2666 * toplev.h, dwarf2out.h: Adjust.
2667 * emit-rtl.c (remove_unnecessary_notes): Test return value.
2668
2669 * emit-rtl.c (remove_unnecessary_notes): Fix spelling of "necessary".
2670 * toplev.c, final.c, rtl.h: Adjust.
2671
2672 2000-05-02 Zack Weinberg <zack@wolery.cumb.org>
2673
2674 * aclocal.m4 (gcc_AC_CHECK_PROG_VER): New macro.
2675 * configure.in: Look for makeinfo in the unified tree, then
2676 for a system makeinfo which is sufficiently new.
2677 * Makefile.in: If configure says makeinfo is too old, don't
2678 build or install Info documentation.
2679
2680 2000-05-02 Zack Weinberg <zack@wolery.cumb.org>
2681
2682 * cpphash.c (collect_params): Fix off-by-one error.
2683 (dump_hash_helper): Dump all four macro nodetypes.
2684
2685 2000-05-02 Jakub Jelinek <jakub@redhat.com>
2686
2687 * cpphash.c (trad_stringify): Adjust p after stringification as
2688 well.
2689
2690 2000-05-02 Zack Weinberg <zack@wolery.cumb.org>
2691
2692 * cpplib.h (CPP_POP, parse_cleanup_t): Delete.
2693 (cpp_buffer): Remove cleanup, seen_eof, manual_pop members.
2694
2695 * cppfiles.c (file_cleanup): Delete.
2696 * cpphash.c (macro_cleanup): Delete.
2697 (collect_objlike_expansion, collect_funlike_expansion,
2698 macarg, scan_arguments): Remove CPP_POP case.
2699
2700 * cpplex.c (null_cleanup): Delete.
2701 (cpp_pop_buffer): Do the work that was done in the cleanups
2702 here. Call _cpp_unwind_if_stack from here.
2703 (_cpp_expand_to_buffer, cpp_scan_buffer_nooutput,
2704 cpp_scan_buffer): Run until we see CPP_EOF and the top of
2705 stack is the buffer _below_ the one we stacked.
2706 (cpp_get_token): Always pop an exhausted buffer. Return
2707 CPP_EOF unless it's a macro buffer. Don't call _cpp_handle_eof.
2708 * cpplib.c (skip_if_group): Don't call cpp_get_token to
2709 increment the line number.
2710 (_cpp_handle_eof): Rename to _cpp_unwind_if_stack.
2711
2712 * fix-header.c (read_scan_file) [parsing getchar()]: Run until
2713 we see CPP_EOF and the top of stack is the buffer _below_ the
2714 one we stacked.
2715 * scan-decls.c: Likewise.
2716
2717 2000-05-02 Andrew Haley <aph@cygnus.com>
2718
2719 * config/ia64/ia64.c (ia64_encode_section_info): Handle the case
2720 where this function is called for the second time on a decl that
2721 has had its section info changed in such a way as to move it out
2722 of small data/bss.
2723 * config/ia64/ia64.h (REDO_SECTION_INFO_P): New definition.
2724
2725 2000-05-01 Richard Henderson <rth@cygnus.com>
2726
2727 * ifcvt.c (dead_or_predicable): Set merge_bb->end to the insn before
2728 the sequence we're moving, not to merge_bb->head.
2729
2730 2000-05-01 Richard Henderson <rth@cygnus.com>
2731
2732 * configure.in (alpha*-*-linux-gnulibc1*) [tmake_file]: Remove
2733 reference to alpha/t-linux.
2734 (alpha*-*-linux-gnu*): Likewise.
2735 * configure: Rebuild.
2736
2737 * calls.c (expand_call): Don't emit reg notes for a sibcall.
2738
2739 * flow.c (calculate_global_regs_live): Skip for_each_successor_phi
2740 if not in SSA form.
2741
2742 * ifcvt.c (if_convert): Only verify_flow_info if ENABLE_CHECKING.
2743
2744 2000-05-01 Jason Merrill <jason@casey.cygnus.com>
2745
2746 * integrate.c (copy_decl_for_inlining): Copy TREE_READONLY and
2747 TREE_THIS_VOLATILE.
2748
2749 2000-05-01 Richard Henderson <rth@cygnus.com>
2750
2751 * ifcvt.c (noce_emit_cmove): Conditionally compile call to
2752 emit_conditional_move.
2753
2754 2000-05-01 Jakub Jelinek <jakub@redhat.com>
2755
2756 * config/ia64/linux.h (LINK_SPEC): Use /lib/ld-linux-ia64.so.1
2757 as the dynamic linker.
2758
2759 2000-05-01 Zack Weinberg <zack@wolery.cumb.org>
2760
2761 * cppfiles.c (open_include_file): Open file in blocking mode.
2762 (read_include_file): Don't fcntl(fd, F_SETFL, 0) anymore.
2763 Only exclude block devices and directories.
2764
2765 * cpphash.c (_cpp_make_hashnode): Rename make_HASHNODE, now
2766 static. Allocate the hashnode and its string in the same
2767 block of memory.
2768 (del_HASHNODE): Don't free h->name.
2769 (_cpp_lookup): If there is no entry for this string, create
2770 one, of type T_VOID.
2771 (_cpp_lookup_slot): Delete.
2772 * cpphash.h: Update prototypes.
2773
2774 * cpplex.c (maybe_macroexpand): Check for hp->type == T_VOID,
2775 not hp == NULL.
2776 * cpplib.c (do_define, do_undef, do_pragma_poison, do_assert,
2777 do_unassert, cpp_defined): Use _cpp_lookup. Don't create a
2778 node here, just fill in the value field properly. "Delete"
2779 entries by setting the value field to T_VOID. Check for
2780 hp->type == T_VOID, not hp == NULL.
2781
2782 * Makefile.in (cpplib.o): Don't depend on $(HASHTAB_H).
2783 * cpperror.c, cppexp.c, cpplex.c, cpplib.c: Don't include
2784 hashtab.h.
2785
2786 2000-05-01 Alexandre Oliva <aoliva@cygnus.com>
2787
2788 * config/mn10300/mn10300.c (print_operand_address): Do not add
2789 zero to SP.
2790
2791 * config/mn10300/mn10300.c (expand_epilogue): If SP is to be
2792 adjusted by less than 256 bytes, use ret regardless of having any
2793 callee-saved register to restore.
2794
2795 2000-05-01 Laurynas Biveinis <lauras@softhome.net>
2796
2797 * tm.texi (TARGET_HAS_F_SETFLKW): Fix typo.
2798
2799 2000-05-01 Mark Elbrecht <snowball3@bigfoot.com>
2800
2801 * config/i386/djgpp.h (INT_ASM_OP): Define.
2802 (CPP_PREDEFINES): Rename MSDOS to __MSDOS__.
2803 (ASM_WEAKEN_LABEL): Define.
2804 (MASK_BNU210): Define.
2805 (SUBTARGET_SWITCHES): Define.
2806 (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY): Define.
2807 (MAKE_DECL_ONE_ONLY): Define.
2808 (UNIQUE_SECTION_P, UNIQUE_SECTION): Define.
2809
2810 2000-05-01 Mumit Khan <khan@xraylith.wisc.edu>
2811
2812 * i386/cygwin.h (INT_ASM_OP): Define.
2813
2814 Mon May 1 18:20:06 2000 Denis Chertykov <denisc@overta.ru>
2815
2816 * config/avr/avr.c (address_cost): renamed to avr_address_cost.
2817 * config/avr/avr.h (ADDRESS_COST): use avr_address_cost.
2818
2819 Mon May 1 17:50:44 2000 Denis Chertykov <denisc@overta.ru>
2820
2821 * config/avr/avr.c (asm_file_start): output 0 as r0 and 1 as r1 in
2822 __tmp_reg__ and __zero_reg__ initialization.
2823
2824 2000-04-30 Richard Henderson <rth@cygnus.com>
2825
2826 * flow.c (propagate_one_insn): Mark sets even when the insn is dead.
2827
2828 * ifcvt.c (noce_process_if_block): Fail the conversion if X is
2829 referenced bewteen the condition and the jump. Don't delete
2830 anything but the jump.
2831
2832 Sun Apr 30 22:48:24 2000 Jason Eckhardt <jle@cygnus.com>
2833
2834 * bb-reorder.c (scope_def): New struct.
2835 (scope_forest_info): New struct.
2836 (struct reorder_block_def): New member "scope".
2837 (REORDER_BLOCK_SCOPE): New macro.
2838 (relate_bbs_with_scopes): New function and prototype.
2839 (make_new_scope): Likewise.
2840 (build_scope_forest): Likewise.
2841 (remove_scope_notes): Likewise.
2842 (insert_intra_1): Likewise.
2843 (insert_intra_bb_scope_notes): Likewise.
2844 (insert_inter_bb_scope_notes): Likewise.
2845 (rebuild_scope_notes): Likewise.
2846 (free_scope_forest_1): Likewise.
2847 (free_scope_forest): Likewise.
2848 (dump_scope_forest): Likewise.
2849 (dump_scope_forest_1): Likewise.
2850 (chain_reorder_blocks): Set REORDER_BLOCK_SCOPE for new block.
2851 Update REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END for new
2852 block.
2853 (reorder_basic_blocks): Added calls to build_scope_scope_forest
2854 and remove_scope_notes before reordering is done. Added calls to
2855 rebuild_scope_notes, free_scope_forest, and reorder_blocks after
2856 after reordering is done.
2857
2858 2000-40-30 Bruce Korb <bkorb@gnu.org>
2859
2860 * fixinc/inclhack.def: Added definitions needed by OSR5,
2861 removed two stale entries (defined away with OLD_CPP).
2862 * fixinc/inclhack.sh: regen
2863 * fixinc/fixincl.x: regen
2864
2865 2000-04-30 Richard Henderson <rth@cygnus.com>
2866
2867 * ifcvt.c (dead_or_predicable): Manually squeeze non-movable notes
2868 from the last insn in the sequence.
2869
2870 2000-04-30 Zack Weinberg <zack@wolery.cumb.org>
2871
2872 * cpplex.c (cpp_idcmp): New function.
2873 * cpplib.h: Prototype it.
2874 * scan_decls.c (scan_decls): Use it to inspect token names.
2875 * fix-header.c (read_scan_file): Likewise. Set system_header_p on
2876 the file being run through the preprocessor.
2877 (check_macro_names): Provide length of token to cpp_defined.
2878
2879 * Makefile.in: Remove stale warning message.
2880
2881 * cppfiles.c (redundant_include_p): Provide length of token to
2882 cpp_defined.
2883 * cpphash.c (_cpp_make_hashnode, _cpp_lookup_slot): Hash
2884 values are unsigned int.
2885 (_cpp_lookup, _cpp_lookup_slot): Do not calculate the length.
2886 (_cpp_lookup_slot): Do not calculate the hash, either.
2887 * cpphash.h: Update prototypes.
2888 * cpplib.c (do_define, do_undef, do_pragma_poison, do_assert):
2889 Hashes are unsigned int. Calculate hash here, pass by value
2890 to _cpp_lookup_slot.
2891
2892 2000-04-30 Bernd Schmidt <bernds@cygnus.co.uk>
2893
2894 * simplify-rtx.c (check_value_useless): Delete function.
2895 (discard_useless_locs): Don't call it; manage N_USELES_VALUES counter
2896 by hand.
2897 (cselib_invalidate_regno): Likewise.
2898 (cselib_invalidate_mem_1): Likewise.
2899 (references_value_p): Recognize useless values by the fact that they
2900 have no locations.
2901 (discard_useless_values): Likewise.
2902 (cselib_record_set): This may turn a useless value
2903 into a useful one.
2904
2905 2000-04-30 Richard Henderson <rth@cygnus.com>
2906
2907 * config/d30v: New port.
2908
2909 * configure.in (d30v-*): Set fp format.
2910 * configure: Rebuild.
2911
2912 2000-04-30 Richard Henderson <rth@cygnus.com>
2913
2914 * ifcvt.c: New file.
2915 * Makefile.in (OBJS): Add it.
2916 (ifcvt.o): New target.
2917 * jump.c (jump_optimize_1): Remove all code related to if-conversion,
2918 and conditional arithmetic.
2919 (find_insert_position): Remove.
2920 * timevar.def (TV_IFCVT, TV_IFCVT2): New.
2921 * toplev.c (DFI_ce, DFI_ce2): New.
2922 (dump_file): Add ce and ce2 dumps.
2923 (rest_of_compilation): Run if_convert a couple o times. Set
2924 cse_not_expected after cse2. Don't set no_new_pseudos until
2925 after sched1 or recompute_reg_usage.
2926
2927 2000-04-30 Richard Henderson <rth@cygnus.com>
2928
2929 * config/alpha/t-crtbe (crtbegin.o): Add "-I.".
2930 (crtend.o, crtbeginS.o, crtendS.o): Likewise.
2931
2932 2000-04-30 Richard Henderson <rth@cygnus.com>
2933
2934 * flow.c (struct reg_cond_life_info): New.
2935 (struct propagate_block_info): Add reg_cond_dead and reg_cond_reg.
2936 (init_propagate_block_info): Initialize them.
2937 (free_propagate_block_info): Destruct them.
2938 (mark_set_1): Consider conditional life before killing a register.
2939 (mark_regno_cond_dead): New.
2940 (free_reg_cond_life_info): New.
2941 (flush_reg_cond_reg_1, flush_reg_cond_reg): New.
2942 (ior_reg_cond, not_reg_cond, nand_reg_cond): New.
2943 (mark_used_reg): Record conditional life.
2944
2945 * haifa-sched.c (schedule_insns): Disable death counting
2946 sanity check for HAVE_conditional_execution.
2947
2948 2000-04-30 Richard Henderson <rth@cygnus.com>
2949
2950 * Makefile.in (TIMEVAR_H): New.
2951 (ggc-simple.o, ggc-page.o, toplev.o, timevar.o): Use it.
2952 (timevar.h): Remove rule.
2953
2954 2000-04-29 Richard Henderson <rth@cygnus.com>
2955
2956 * config/alpha/crtend.asm: Use C comments instead of #.
2957 * config/alpha/crtbegin.asm: Likewise. Mark __dso_handle hidden.
2958
2959 * config/alpha/elf.h (SELECT_SECTION): Treat CONSTRUCTOR like VAR_DECL.
2960
2961 2000-04-29 Zack Weinberg <zack@wolery.cumb.org>
2962
2963 * cpphash.h (enum node_type: Take out T_MCONST.
2964 (union hashval): Move into struct hashnode.
2965 (struct hashnode): Pack tighter. Remove file, line, col
2966 members.
2967 * cpphash.c: Constify most of the macro-definition structures.
2968 (struct definition): Replace by struct object_defn
2969 and struct funct_defn. Put file, line, column information
2970 here. All users updated to match.
2971 (_cpp_create_definition, _cpp_macroexpand): Remove special
2972 case for #define WORD OTHERWORD.
2973 * cpplib.c (do_undef): Remove T_MCONST case.
2974
2975 * cpphash.h: Move struct reflist, struct definition, and the
2976 DEFINITION typedef to cpphash.c. Use 'struct definition *' in
2977 union hashval. _cpp_free_definition takes a HASHNODE pointer.
2978 * cpphash.c (_cpp_free_definition): Free data pointed to by
2979 MCONST, XCONST, MACRO, and FMACRO nodes properly.
2980 (_cpp_create_definition, del_HASHNODE): Just call
2981 _cpp_free_definition to clear out a hashnode.
2982 * cpplib.c (do_pragma_poison): Likewise.
2983
2984 Sat Apr 29 12:25:17 2000 Alexandre Oliva <aoliva@cygnus.com>
2985
2986 * config/mn10300/mn10300.h (FIRST_DATA_REGNUM,
2987 LAST_DATA_REGNUM, FIRST_ADDRESS_REGNUM, LAST_ADDRESS_REGNUM,
2988 FIRST_EXTENDED_REGNUM, LAST_EXTENDED_REGNUM): New macros.
2989 (REGNO_SP_P): Redefine in terms of STACK_POINTER_REGNUM.
2990 (REGNO_DATA_P, REGNO_ADDRESS_P, REGNO_EXTENDED_P,
2991 REGNO_AM33_P): Redefine in terms of the new macros.
2992 (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
2993 (FUNCTION_VALUE, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P,
2994 STRUCT_VALUE): Likewise.
2995 (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM,
2996 ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Likewise. Moved.
2997
2998 Sat Apr 29 01:18:45 MET DST 2000 Jan Hubicka <jh@suse.cz>
2999
3000 * regmove.c (struct record_stack_memrefs_data): New.
3001 (record_stack_memrefs): New function.
3002 (combine_stack_adjustments_for_block): Use it.
3003
3004 Sat Apr 29 01:15:27 MET DST 2000 Jan Hubicka <jh@suse.cz>
3005
3006 * calls.c (calls_function_1): Propertly handle TREE_LIST expressions;
3007 use special_function_p to detect alloca.
3008
3009 Fri Apr 28 16:30:33 2000 Marc Espie <espie@cvs.openbsd.org>
3010
3011 * gcc.texi: Fixes for makeinfo 4.0 --html.
3012
3013 2000-04-28 Zack Weinberg <zack@wolery.cumb.org>
3014
3015 * pcp.h: Delete file.
3016
3017 2000-04-28 Kazu Hirata <kazu@hxi.com>
3018
3019 * h8300.c (function_epilogue): Clean up flags when the last insn
3020 in a function is a barrier.
3021
3022 2000-04-28 Chris Demetriou <cgd@sibyte.com>
3023
3024 * configure.in (sparc-hal-solaris2*): protect [] glob from
3025 my expansion.
3026 (mips*-*-ecoff*, mips*-*-elf*, mips*-*-*): use MASK_ defines
3027 rather than hard-coded constants in target_cpu_default2.
3028 * configure: Regenerate.
3029
3030 2000-04-28 Jason Merrill <jason@casey.cygnus.com>
3031
3032 * tree.c (get_callee_fndecl): Extract the initial value from
3033 a readonly decl.
3034
3035 2000-04-28 Richard Henderson <rth@cygnus.com>
3036
3037 * varasm.c (record_constant_1): Record the CODE_LABEL when
3038 taking the address of a LABEL_REF.
3039
3040 2000-04-28 Richard Henderson <rth@cygnus.com>
3041 Jan Hubicka <jh@suse.cz>
3042
3043 * calls.c (combine_pending_stack_adjustment_and_call): Return the
3044 adjustment; don't do the stack adjust.
3045 (expand_call): Call compute_argument_block_size right before
3046 allocating the block; update comment; don't do alignment sanity
3047 checking for sibling call; use args_size instead of
3048 unadjusted_args_size before args_size is adjusted. Use
3049 combine_pending_stack_adjustment_and_call to compute stack adjust
3050 for must_preallocate case.
3051
3052 * expr.c (push_block): Remove shadow `temp' in inner scope.
3053
3054 2000-04-28 Jason Merrill <jason@casey.cygnus.com>
3055
3056 * toplev.c (rest_of_compilation): Call
3057 note_deferral_of_defined_inline_function even if the function
3058 can't be inlined.
3059
3060 2000-04-28 Scott Bambrough <scottb@netwinder.org>
3061
3062 * cpplex.c (_cpp_scan_line): Fix buffer overwrite.
3063
3064 2000-04-28 Richard Henderson <rth@cygnus.com>
3065
3066 * toplev.c (rest_of_type_compilation): Fix sdb TIMEVAR typo.
3067
3068 2000-04-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3069
3070 * timevar.c (init_timevar): DeANSIfy function definition.
3071
3072 2000-04-27 Alex Samuel <samuel@codesourcery.com>
3073
3074 * Makefile.in (timevar.o): Depend on flags.h.
3075 * timevar.c (unused_stack_instances): New variable.
3076 (timevar_push): Take a timevar_stack_def from
3077 unused_stack_instances if available.
3078 (timevar_pop): Push the popped timevar_stack_def onto
3079 unused_stack_instances.
3080 (TIMEVAR_ENABLE): New macro.
3081 (timevar_def): Make standalone a 1-bit field. Add field used.
3082 (get_time): Rename parameter to now. Return after clearing it if
3083 not TIMEVAR_ENABLE.
3084 (init_timevar): Do nothing if not TIMEVAR_ENABLE.
3085 (timevar_pop): Likewise.
3086 (timevar_stop): Likewise.
3087 (timevar_push): Likewise. Mark the timing variable as used.
3088 (timevar_start): Likewise.
3089 (timevar_print): Do nothing if not TIMEVAR_ENABLE. Don't print
3090 timevars that were never used.
3091
3092 2000-04-27 Mark Mitchell <mark@codesourcery.com>
3093
3094 * c-common.c (c_apply_type_quals_to_decl): REFERENCE_TYPES are
3095 always TREE_READONLY.
3096
3097 2000-04-27 Ulrich Drepper <drepper@cygnus.com>
3098
3099 * i386.h (FUNCTION_BLOCK_PROFILER_EXIT): Generate mem reference
3100 for call instruction with mode QImode.
3101
3102 2000-04-27 Alex Samuel <samuel@codesourcery.com>
3103
3104 * Makefile.in (OBJS): Add timevar.o.
3105 (toplev.o): Depend on timevar.h.
3106 (ggc-simple.o): Likewise.
3107 (ggc-page.o): Likewise.
3108 (timevar.o): New rule.
3109 (timevar.h): New rule.
3110
3111 * timevar.h: New file.
3112 * timevar.c: Likewise.
3113 * timevar.def: Likewise.
3114
3115 * toplev.h (gc_time, parse_time, varconst_time): Remove.
3116 * toplev.c: Use timevar_push and timevar_pop instead of TIMEVAR
3117 throughout.
3118 (TIMEVAR): Remove macro.
3119 (gc_time, parse_time, varconst_time, integration_time, jump_time,
3120 cse_time, gcse_time, loop_time, cse2_time, branch_prob_time,
3121 flow_time, combine_time, regmove_time, sched_time,
3122 local_alloc_time, global_alloc_time, flow2_time, peephole2_time,
3123 sched2_time, dbr_sched_time, reorder_blocks_time,
3124 rename_registers_time, shorten_branch_time, stack_reg_time,
3125 to_ssa_time, from_ssa_time, final_time, symout_time, dump_time,
3126 all_time): Remove.
3127 (compile_file): Don't initialize time variables. Call
3128 init_timevar and start TV_TOTAL timer. Call timevar_print instead
3129 of many calls to print_time.
3130 (rest_of_compilation): Add timing for reload_cse_regs.
3131 (get_run_time): Removed to timevar.c.
3132 (print_time): Likewise.
3133 (get_run_time): Implement using TV_TOTAL time variable.
3134 (print_time): Get total run time from get_run_time.
3135 * ggc-page.c (ggc_collect): Push and pop TV_GC instead of
3136 computing elapsed time explicitly.
3137 * ggc-simple.c (ggc_collect): Likewise.
3138 (gc_time): Remove declaration.
3139
3140 2000-04-27 Mark Mitchell <mark@codesourcery.com>
3141
3142 * calls.c (combine_pending_stack_adjustment_and_call): New function.
3143 (expand_call): Use it.
3144
3145 2000-04-27 Jan Hubicka <jh@suse.cz>
3146
3147 * flow.c (mark_set_1): Handle MEMs in ZERO_EXTRACT/SIGN_EXTRACT
3148 fields.
3149
3150 Thu Apr 27 12:47:00 2000 Alexandre Oliva <aoliva@cygnus.com>
3151
3152 * config/mn10300/mn10300.md (movhi): Simplify. Prefer data
3153 registers.
3154
3155 Thu Apr 27 17:33:05 MET DST 2000 Jan Hubicka <jh@suse.cz>
3156
3157 * function.c (epilogue_done): Pass whole insn to record_insns.
3158
3159 Thu Apr 27 16:55:28 MET DST 2000 Jan Hubicka <jh@suse.cz>
3160
3161 * cse.c (CSE_ADDRESS_COST): Remove.
3162 (find_best_addr): Add new parameter "MODE", use address_cost instead
3163 of CSE_ADDRESS_COST
3164 (address_cost): New.
3165 (fold_rtx): Update call of find_best_addr.
3166 * rtl.h (address_cost): Declare.
3167 * loop.c (general_induction_var): Add new parameter "MODE", use
3168 address_cost instead of ADDRESS_COST
3169 (init_loop): Use address_cost instead of ADDRESS_COST.
3170 (check_insn_for_givs): Update call of general_induction_var.
3171 (find_mem_givs): Likewise.
3172 (consec_sets_giv): Likewise.
3173 * config/i386/i386.h (ADDRESS_COST): Call ix86_address_cost.
3174 * i386.c (ix86_address_cost): New.
3175 * i386-protos.h (ix86_address_cost): Declare.
3176
3177 Thu Apr 27 11:45:16 2000 Alexandre Oliva <aoliva@cygnus.com>
3178
3179 * config/mn10300/mn10300.md (movqi): Simplify. Prefer data
3180 registers.
3181
3182 Thu Apr 27 16:11:00 MET DST 2000 Jan Hubicka <jh@suse.cz>
3183
3184 * expr.c (store_expr): Use clear_storage instead of direct memset
3185 libcall.
3186
3187 Thu Apr 27 10:36:51 2000 Alexandre Oliva <aoliva@cygnus.com>
3188
3189 * config/mn10300/mn10300.c (mn10300_address_cost): Test
3190 ASHIFT, AND and LABEL_REF.
3191
3192 Thu Apr 27 15:08:46 MET DST 2000 Jan Hubicka <jh@suse.cz>
3193
3194 * invoke.texi (-foptimize-sibling-calls): Fix.
3195
3196 Thu Apr 27 14:54:22 MET DST 2000 Jan Hubicka <jh@suse.cz>
3197
3198 * loop.c (load_mems) Don't use hard registers for the hoisting.
3199
3200 * unroll.c (unroll_loop): Avoid overflow in the n_iterations
3201 calculation; rename const_equiv array in the preconditioning code
3202 from loop_unroll to loop_unroll_precondition
3203
3204 2000-04-27 Richard Henderson <rth@cygnus.com>
3205
3206 * flow.c (struct propagate_block_info): Remove new_dead, new_live;
3207 add new_set.
3208 (propagate_one_insn): Clear it. Don't update reg_live here.
3209 (init_propagate_block_info): Update for pbi member changes.
3210 (free_propagate_block_info): Likewise.
3211 (mark_set_1): Know that zero_extract, sign_extract, and
3212 strict_low_part don't kill their argument. Alter hard subregs.
3213 Update new_set for non-CLOBBER sets. Update reg_live.
3214 (find_auto_inc): Update reg_live, not new_dead.
3215 (mark_used_reg): Update reg_live, not new_live. Examine new_set
3216 to determine if the reg in question was set this insn. Only update
3217 reg info with PROP_REG_INFO.
3218
3219 2000-04-26 Richard Henderson <rth@cygnus.com>
3220
3221 * flow.c (allocate_reg_life_data): Set max_regno here ...
3222 (life_analysis): ... not here.
3223
3224 * flow.c (calculate_global_regs_live): Force stack pointer
3225 live at end.
3226
3227 2000-04-26 Richard Henderson <rth@cygnus.com>
3228
3229 * jump.c (redirect_exp_1): Rework from old redirect_exp. Never
3230 commit change group changes.
3231 (invert_exp_1): Similarly.
3232 (redirect_exp, invert_exp): Use them.
3233 (redirect_jump_1): New.
3234 (invert_jump_1): New.
3235 (jump_optimize_1): Remove code subsumed by condexec.c.
3236 * rtl.h (invert_jump_1, redirect_jump_1): Declare.
3237
3238 2000-04-26 Richard Henderson <rth@cygnus.com>
3239
3240 * rtlanal.c (dead_or_set_regno_p): Use find_regno_note.
3241
3242 * genconfig.c (main): Set all HAVE_foo to 1.
3243
3244 * graph.c (node_data): Use GET_NOTE_INSN_NAME instead of local array.
3245
3246 2000-04-26 Alex Samuel <samuel@codesourcery.com>
3247
3248 * invoke.texi: Document -fssa flag.
3249
3250 2000-04-26 Richard Henderson <rth@cygnus.com>
3251
3252 * flow.c (count_reg_sets_1): Remove.
3253 (count_reg_sets, count_reg_references): Remove.
3254 (recompute_reg_usage): Implement with update_life_info.
3255 Reallocate life data.
3256
3257 2000-04-26 Richard Henderson <rth@cygnus.com>
3258
3259 * flow.c (update_life_info): Consider blocks null to mean the
3260 universal set.
3261 (calculate_global_regs_live): Likewise.
3262 (life_analysis): Do that instead of collecting all_blocks.
3263
3264 2000-04-26 Richard Henderson <rth@cygnus.com>
3265
3266 * flow.c (tidy_fallthru_edge): Don't delete the jump when it's
3267 a still-valid conditional jump.
3268
3269 2000-04-26 Richard Henderson <rth@cygnus.com>
3270
3271 * jump.c (invert_jump): Always invert REG_BR_PROB. Do it correctly.
3272
3273 * bb-reorder.c (reorder_basic_blocks): Don't run estimate_probability.
3274 * flow.c (calculate_loop_depth): Remove.
3275 * output.h (calculate_loop_depth): Don't declare.
3276 * toplev.c (rest_of_compilation): Expand calculate_loop_depth
3277 inline; run estimate_probability at the same time.
3278
3279 2000-04-26 Neil Booth <NeilB@earthling.net>
3280
3281 * cpplib.h: "~=" is not a single pp-token.
3282 * cpplex.c: Correct commentary.
3283
3284 2000-04-26 Richard Henderson <rth@cygnus.com>
3285
3286 * flow.c (mark_set_1): New arguments code and flags; update all
3287 callers. Track regno_first and regno_last; do HARD_REGNO_NREGS
3288 test in one place. Tidy flags tests. Don't bias REG_N_REFS by
3289 loop_depth when optimizing for size. Do new_dead update after
3290 emitting REG_UNUSED notes. Merge mark_set_reg code.
3291 (mark_set_reg): Remove.
3292 (propagate_one_insn): Use mark_set_1 for call-clobbered registers;
3293 arrange to not emit REG_UNUSED notes.
3294
3295 2000-04-26 Richard Henderson <rth@cygnus.com>
3296
3297 * flow.c (find_auto_inc): Use pbi->bb instead of BLOCK_FOR_INSN.
3298 * ssa.c (convert_from_ssa): Don't run compute_bb_for_insn.
3299
3300 2000-04-26 Richard Henderson <rth@cygnus.com>
3301
3302 * flow.c (propagate_one_insn): Break out from propagate_block.
3303 (init_propagate_block_info): Likewise.
3304 (free_propagate_block_info): Likewise.
3305 (propagate_block): Use them. Export.
3306 * basic-block.h: Declare them all.
3307
3308 2000-04-26 Richard Henderson <rth@cygnus.com>
3309
3310 * basic-block.h (life_analysis): Declare here ...
3311 * output.h: ... not here.
3312 * flow.c (life_analysis): Remove nregs parameter; replace
3313 remove_dead_code with flags. Remove ssa dead code check.
3314 Only init alias analysis if we'll use it.
3315 * reg-stack.c (reg_to_stack): Update life_analysis arguments.
3316 * ssa.c (convert_to_ssa): Likewise.
3317 (convert_from_ssa): Likewise.
3318 * toplev.c (rest_of_compilation): Likewise.
3319
3320 2000-04-26 Richard Henderson <rth@cygnus.com>
3321
3322 * flow.c (flow_delete_block): Rename from delete_block. Export.
3323 * basic-block.h (flow_delete_block): Declare.
3324
3325 2000-04-26 David S. Miller <davem@redhat.com>
3326
3327 * optabs.c (emit_libcall_block): Verify insns with INSN_P before
3328 taking a PATTERN of it.
3329
3330 2000-04-26 <NeilB@earthling.net>
3331
3332 * cpplex.c (spell_other, spell_char): Remove.
3333 (SPELL_CHAR): New.
3334 (token_spelling, trigraph_map): Use unsigned chars.
3335 (_cpp_lex_line): Tidy up the switch statement.
3336 * cpplib.h: Implement spell_char with spell_string.
3337 (C): New.
3338
3339 2000-04-26 <RodneyBrown@pmsc.com>
3340
3341 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Warning removal.
3342 * pa/pa64-regs.h (HARD_REGNO_MODE_OK): Warning removal.
3343
3344 2000-04-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3345
3346 * dwarf2out.c (dw_cfi_oprnd_struct, dw_fde_struct, add_fde_cfi,
3347 reg_save, dwarf2out_frame_debug_expr, dwarf2out_def_cfa,
3348 dwarf2out_window_save, dwarf2out_args_size, dwarf2out_reg_save,
3349 dwarf2out_return_save, dwarf2out_return_reg,
3350 dwarf2out_stack_adjust, dwarf2out_frame_debug, primary_filename,
3351 add_AT_lbl_id, add_AT_lbl_offset, type_tag, decl_start_label,
3352 gen_compile_unit_die, dwarf2out_init): Constify a char*.
3353
3354 * dwarf2out.h (dwarf2out_init): Likewise.
3355
3356 * dwarfout.c (filename_entry, primary_filename, last_filename,
3357 type_tag, output_compile_unit_die, dwarfout_init): Likewise.
3358
3359 * tree.h (dwarf2out_def_cfa, dwarf2out_window_save,
3360 dwarf2out_args_size, dwarf2out_reg_save, dwarf2out_return_save,
3361 dwarf2out_return_reg): Likewise.
3362
3363 2000-04-26 Andreas Jaeger <aj@suse.de>
3364
3365 * extend.texi (Function Attributes): Fix description of pure
3366 attribute.
3367
3368 2000-04-26 Jason Merrill <jason@casey.cygnus.com>
3369
3370 * integrate.c (output_inline_function): Do clear DECL_DEFER_OUTPUT
3371 before calling rest_of_compilation.
3372
3373 2000-04-26 Andreas Jaeger <aj@suse.de>
3374
3375 * config/mips/linux.h: Remove erroneous commit of #if 0/#endif in
3376 last patch.
3377
3378 2000-04-25 Richard Henderson <rth@cygnus.com>
3379
3380 * cse.c (cse_insn): Emit barrier after unconditional jump.
3381
3382 * calls.c (expand_call): Disable tail call generation once
3383 rtx_equal_function_value_matters is false.
3384
3385 * reg-stack.c (convert_regs_1): Treat EDGE_ABNORMAL_CALL edges
3386 like EDGE_EH edges.
3387
3388 2000-04-25 Jason Merrill <jason@casey.cygnus.com>
3389
3390 * dwarf2out.c (add_bound_info): Don't crash on an unexpanded SAVE_EXPR.
3391
3392 * dwarfout.c (output_decl): Ignore NAMESPACE_DECLs.
3393
3394 * dwarf2out.c (gen_subprogram_die): The class-scope declaration DIE
3395 is the primary DIE for a member function.
3396 (gen_decl_die): Call set_decl_origin_self here.
3397 * dwarfout.c (output_decl): And here.
3398 * integrate.c (output_inline_function): Not here.
3399 Don't clear DECL_INLINE until after calling rest_of_compilation.
3400 (set_decl_origin_self): No longer static.
3401 * tree.h: Add prototype.
3402 * toplev.c (note_deferral_of_defined_inline_function): Only write
3403 out abstract instance for actual inlines.
3404
3405 2000-04-25 Alexandre Oliva <aoliva@cygnus.com>
3406
3407 * config/mn10300/mn10300.h (REG_CLASS_FROM_LETTER): Return
3408 EXTENDED_REGS only if TARGET_AM33.
3409 * config/mn10300/mn10300.md (movsi, addsi): Avoid exposing
3410 SP_REGS to register allocation and reloading unless absolutely
3411 necessary.
3412 (movsi3): Remove special-case of adding non-constants to SP.
3413
3414 2000-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3415
3416 * aclocal.m4 (gcc_AC_NEED_DECLARATION): This macro now requires
3417 INCLUDES to search and does not provide any of its own. Also it
3418 now accepts optional ACTION-IF-NEEDED and ACTION-IF-NOT-NEEDED
3419 parameters. Also it does not call AC_DEFINE.
3420 (gcc_AC_NEED_DECLARATIONS): Likewise. Also this macro now calls
3421 AC_DEFINE and provides for automatic entries for autoheader.
3422 (gcc_AC_FUNC_PRINTF_PTR): Cleanup C code in test.
3423
3424 * configure.in (gcc_AC_NEED_DECLARATIONS): Save and restore CFLAGS
3425 so we can pass -I flags and include gansidecl.h/system.h in this
3426 test.
3427
3428 * acconfig.h: Delete all NEED_DECLARATION_* entries.
3429
3430 2000-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3431
3432 * acconfig.h (ENABLE_STD_NAMESPACE, ENABLE_CHECKING,
3433 ENABLE_TREE_CHECKING, ENABLE_RTL_CHECKING, ENABLE_GC_CHECKING,
3434 ENABLE_GC_ALWAYS_COLLECT): Delete entries.
3435
3436 * configure.in (ENABLE_STD_NAMESPACE, ENABLE_CHECKING,
3437 ENABLE_TREE_CHECKING, ENABLE_RTL_CHECKING, ENABLE_GC_CHECKING,
3438 ENABLE_GC_ALWAYS_COLLECT): Use three argument form of AC_DEFINE
3439 for these macros. Clean up spacing and linewraps.
3440
3441 2000-04-26 Jason Merrill <jason@casey.cygnus.com>
3442
3443 * calls.c (expand_call): Use get_callee_fndecl.
3444
3445 * print-tree.c (print_node): Print the chain of an _EXPR.
3446
3447 Tue Apr 25 16:16:04 2000 Andrew MacLeod <amacleod@cygnus.com>
3448 Jim Wilson <wilson@cygnus.com>
3449 Andrew Haley <aph@cygnus.com>
3450
3451 * config/ia64/crtbegin.asm: Add IA-64 unwind support. Correct alloc
3452 and gp save/restore problems.
3453 * config/ia64/crtend.asm: Add IA-64 unwind support.
3454 * config/ia64/ia64.c (ia64_compute_frame_size): Don't include pr_size
3455 in fr_pad_size calculation.
3456 (save_restore_insns): Move PR save area. Correct uses of
3457 RTX_FRAME_RELATED_P.
3458 (ia64_expand_prologue): Mark alloc with RTX_FRAME_RELATED_P.
3459 (ia64_expand_epilogue): Add eh_epilogue support.
3460 (ia64_function_prologue): Emit .prologue directive.
3461 (ia64_init_machine_status, ia64_mark_machine_status): New functions.
3462 (ia64_override_options): Set init_machine_status and
3463 mark_machine_status.
3464 (rtx_needs_barrier): Handle bsp reads and writes.
3465 (spill_offset, sp_offset, spill_offset_emitted, tmp_reg, tmp_saved):
3466 New static variables.
3467 (process_set, process_for_unwind_directive): New functions.
3468 * config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR, ASM_OUTPUT_XDATA_SHORT,
3469 ASM_OUTPUT_XDATA_INT, ASM_OUTPUT_XDATA_DOUBLE_INT, ASM_OUTPUT_EH_CHAR,
3470 ASM_OUTPUT_EH_SHORT, ASM_OUTPUT_EH_INT, ASM_OUTPUT_EH_DOUBLE_INT): New
3471 macros.
3472 (EH_FRAME_SECTION_ASM_OP): Define to IA_64.unwind section.
3473 (IA64_UNWIND_INFO, HANDLER_SECTION, IA64_UNWIND_EMIT): Define.
3474 (struct machine_function): Define.
3475 * config/ia64/ia64.md (bsp_value, set_bsp, eh_epilogue): New patterns.
3476
3477 2000-04-25 Bruce Korb <bkorb@gnu.org>
3478
3479 * fixinc/Makefile.in: make the removal of old programs more
3480 robust
3481 * fixinc/mkfixinc.sh: use the two new targets in the Makefile:
3482 install-bin and install-sh
3483
3484 2000-04-25 Nick Clifton <nickc@cygnus.com>
3485
3486 * integrate.c (FUNCTION_ATTRIBUTE_INLINABLE_P): If not
3487 defined, define to return zero.
3488 (function_cannot_inline_p): If a function has any target
3489 specific attributes, then use the macro
3490 FUNCTION_ATTRIBUTE_INLINABLE_P to allow the target to decide
3491 whether it can be inlined. If it cannot, issue a suitable
3492 explanation.
3493
3494 * tm.texi: Add a new node 'Inlining' to document the new macro
3495 FUNCTION_ATTRIBUTE_INLINABLE_P.
3496
3497 2000-04-25 Zack Weinberg <zack@wolery.cumb.org>
3498
3499 * cpplib.h (struct cpp_buffer): Add 'mapped' flag; fix
3500 commentary.
3501
3502 2000-04-25 Neil Booth <NeilB@earthling.net>
3503
3504 Restore previous patch, plus the following fixes:
3505
3506 * cpphash.c (_cpp_create_definition): Test PREV_WHITESPACE in
3507 flags, not CPP_OPEN_PAREN.
3508 * cpplex.c (expand_token_space, init_token_list,
3509 cpp_free_token_list): Put the dummy token at list->tokens[-1].
3510 (_cpp_lex_line, _cpp_lex_file): token list is 0-based.
3511
3512 Tue Apr 25 14:06:40 2000 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3513
3514 * config/i386/freebsd.h (INT_ASM_OP): Define.
3515
3516 Tue Apr 25 14:51:07 MET DST 2000 Jan Hubicka <jh@suse.cz>
3517
3518 * loop.c (strength_reduce): Fix typo in the last checkin.
3519
3520 Tue Apr 25 07:33:12 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3521
3522 * stor-layout.c (finalize_record_size): Simplify to use existing
3523 functions.
3524 (compute_record_mode): No longer static.
3525 * tree.h (compute_record_mode): New declaration.
3526
3527 2000-04-25 Neil Booth <NeilB@earthling.net>
3528
3529 * Revert my patch below until cause of build failures
3530 determined.
3531
3532 2000-04-25 Richard Henderson <rth@cygnus.com>
3533
3534 * combine.c (combine_instructions): Add missing argument
3535 to try_combine.
3536
3537 * toplev.c (rest_of_compilation): Delay sibcall optimization
3538 until after emit_eh_context.
3539
3540 2000-04-24 Nick Clifton <nickc@redhat.com>
3541
3542 * combine.c (combine_instructions): Do not try to combine a
3543 sequence of insns when the second insn has been replaced by a
3544 note.
3545
3546 Mon Apr 24 17:34:18 2000 Mumit Khan <khan@xraylith.wisc.edu>
3547
3548 * gcc.c (load_specs): New static function.
3549 (read_specs): Use it.
3550
3551 * gcc.c (lookup_compiler): Make multiple passes for case
3552 insensitive filesystems.
3553
3554 2000-04-24 Neil Booth <NeilB@earthling.net>
3555
3556 * cpphash.c: replace HSPACE_BEFORE with PREV_WHITESPACE.
3557 * cpphash.h (_cpp_check_directive): new.
3558 * cpplex.c (handle_newline, cpp_free_token_list,
3559 init_trigraph_map, trigraph_ok, trigraph_replace,
3560 backslash_start, skip_block_comment, skip_line_comment,
3561 skip_whitespace, parse_name, parse_number, parse_string,
3562 copy_comment, _cpp_lex_line, spell_char, spell_string,
3563 spell_comment, spell_name, spell_other, _cpp_lex_file,
3564 _cpp_output_list): new.
3565 (expand_name_space): take length argument.
3566 (init_token_list): add comment list initialisation.
3567 (cpp_scan_line): use auto_expand_name_space. PREV_WHITESPACE
3568 instead of HSPACE_BEFORE.
3569
3570 * cpplib.c (_cpp_check_directive): new
3571 * cpplib.h (cpp_name, PREV_WHITESPACE, PREV_COMMENT,
3572 DIGRAPH, UNSIGNED_INT, TOK_NAME): new.
3573 (HSPACE_BEFORE): delete.
3574 (TTYPE_TABLE): rearrange.
3575 (struct cpp_toklist): update.
3576
3577 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3578
3579 * aclocal.m4 (gcc_AC_HEADER_STRING, gcc_AC_FUNC_PRINTF_PTR,
3580 gcc_AC_C_VOLATILE, gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG): Use the three
3581 argument form of AC_DEFINE.
3582
3583 * configure.in (DEFAULT_LINKER, DEFAULT_ASSEMBLER,
3584 HAVE_INTTYPES_H, PACKAGE, VERSION, ENABLE_WIN32_REGISTRY,
3585 WIN32_REGISTRY_KEY, HAVE_GAS_SUBSECTION_ORDERING, HAVE_GAS_WEAK,
3586 HAVE_GAS_HIDDEN, HAVE_AS_REGISTER_PSEUDO_OP, AS_SPARC64_FLAG,
3587 HAVE_AS_OFFSETABLE_LO10, ENABLE_NEW_GXX_ABI): Likewise.
3588
3589 * acconfig.h: Delete stubs made redundant by 3-arg AC_DEFINE.
3590
3591 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3592
3593 * Makefile.in (GCC_FOR_TARGET, GCC_CFLAGS, LIBGCC2_INCLUDES,
3594 deduced.h): Use -isystem, not -I, for including system headers.
3595
3596 2000-04-24 Nick Clifton <nickc@cygnus.com>
3597
3598 * config/fr30/fr30.md (addsi3): Do not use small add instruction if
3599 the source register is the frame pointer or arg pointer.
3600 (addsi3_small_int): Disallow if source register is the frame
3601 pointer or arg pointer.
3602
3603 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3604
3605 * configure.in (ENUM_BITFIELDS_ARE_UNSIGNED): Delete redundant
3606 call to AC_MSG_RESULT.
3607
3608 2000-04-24 Martin v. Löwis <loewis@informatik.hu-berlin.de>
3609
3610 * invoke.texi: Correct grammatical errors, document
3611 -fno-gnu-keywords as identical to -fno-asm for C++.
3612
3613 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3614
3615 * aclocal.m4: (GCC_HEADER_STRING, GCC_NEED_DECLARATION,
3616 GCC_NEED_DECLARATIONS, GCC_FUNC_VFPRINTF_DOPRNT,
3617 GCC_FUNC_PRINTF_PTR, GCC_PROG_LN_S, GCC_PROG_LN, GCC_C_VOLATILE,
3618 AC_GCC_C_LONG_DOUBLE, GCC_FUNC_MKDIR_TAKES_ONE_ARG,
3619 EGCS_PROG_INSTALL): Rename autoconf macros with prefix gcc_AC_.
3620
3621 * configure.in (AC_GCC_C_LONG_DOUBLE, GCC_PROG_LN, GCC_PROG_LN_S,
3622 GCC_C_VOLATILE, EGCS_PROG_INSTALL, GCC_HEADER_STRING,
3623 GCC_FUNC_VFPRINTF_DOPRNT, GCC_FUNC_PRINTF_PTR,
3624 GCC_NEED_DECLARATIONS, GCC_FUNC_MKDIR_TAKES_ONE_ARG): Invoke with
3625 new macros names.
3626
3627 2000-04-24 Mumit Khan <khan@xraylith.wisc.edu>
3628
3629 * c-pragma.c (push_alignment): Use BITS_PER_UNIT macro.
3630 (pop_alignment): Likewise.
3631 (handle_pragma_token): Likewise.
3632
3633 2000-04-24 Robert Lipe <robertlipe@usa.net>
3634
3635 * tree.h (tree_decl): Member `mode' now ENUM_BITFIELD.
3636
3637 2000-04-24 Hiroyuki Machida <machida@sm.sony.co.jp>
3638
3639 * combine.c (try_combine): Update reg_nonzero_bits of
3640 newi2pat before newpat.
3641
3642 Mon Apr 24 10:19:48 MET DST 2000 Jan Hubicka <jh@suse.cz>
3643
3644 * loop.c (strength_reduce): Simplify test to INSN_P.
3645 (record_giv): Attempt to simplify the add value, use CONSTANT_P
3646 expressions instead of CONST_INT.
3647 (express_from_1): Likewise.
3648
3649 2000-04-24 Mark Mitchell <mark@codesourcery.com>
3650
3651 * regs.h (reg_n_max): Don't declare.
3652 * flow.c (reg_n_max): Don't define.
3653 * regclass.c (renumber): Don't initialize to zero.
3654 (regno_allocated): Likewise.
3655 (reg_n_max): Define.
3656 (allocate_reg_info): Don't initialize unnecessarily.
3657
3658 Mon Apr 24 00:21:36 2000 Jeffrey A Law (law@cygnus.com)
3659
3660 * genattrtab.c (find_attr): Initialize unsigned_p, func_units_p
3661 and blockage_p in the newly allocated attribute.
3662
3663 Sun Apr 23 20:16:49 2000 Alexandre Oliva <aoliva@cygnus.com>
3664
3665 * config/mn10300/mn10300.md (addsi): `inc4' on address
3666 registers does not modify cc, but `inc' on an extended
3667 register does.
3668
3669 Sun Apr 23 16:24:35 2000 Denis Chertykov <denisc@overta.ru>
3670
3671 * reload.c (find_equiv_reg): Checks all valueno regs
3672 as a reload_reg_p regs.
3673
3674 2000-04-23 Zack Weinberg <zack@wolery.cumb.org>
3675
3676 * cpphash.c (collect_objlike_expansion): Add sanity check.
3677 (special_symbol): Remove case T_CONST, T_XCONST, T_MCONST. If
3678 the buffer is the empty string, return. Mark __DATE__ and
3679 __TIME__ as XCONST nodes, not MCONST.
3680 (_cpp_macroexpand): Avoid pushing an empty buffer.
3681 (funlike_macroexpand): Don't pop token_buffer here.
3682
3683 Sun Apr 23 18:37:53 2000 Alexandre Oliva <aoliva@cygnus.com>
3684
3685 * config/mn10300/mn10300.h (REGNO_IN_RANGE_P): New macro.
3686 (REGNO_DATA_P, REGNO_ADDRESS_P, REGNO_SP_P): New macros.
3687 (REGNO_EXTENDED_P, REGNO_AM33_P): New macros.
3688 (REGNO_OK_FOR_BASE_P): Define in terms of them.
3689 (REGNO_OK_FOR_BIT_BASE_P, REGNO_OK_FOR_INDEX_P): Likewise.
3690 (REG_OK_FOR_BASE_P): Define in terms of the REGNO macro.
3691 (REG_OK_FOR_BIT_BASE_P, REG_OK_FOR_INDEX_P): Likewise.
3692
3693 Sun Apr 23 22:23:08 MET DST 2000 Jan Hubicka <jh@suse.cz>
3694
3695 * loop.c (simplify_giv_expr): Be more agressive on simplifying
3696 constant MULT givs.
3697
3698 2000-04-23 Zack Weinberg <zack@wolery.cumb.org>
3699
3700 * cpphash.h (struct definition): Move file, line, col members...
3701 (struct hashnode): ... here. Also add 'disabled' flag.
3702 (enum node_type): Add T_VOID, T_XCONST, T_FMACRO, and
3703 T_IDENTITY. Remove T_DISABLED.
3704 Update prototypes.
3705
3706 * cpphash.c (_cpp_dump_definition): Split out dump_DEFINITION.
3707 (collect_expansion): Split into collect_objlike_expansion and
3708 collect_funlike_expansion.
3709 (_cpp_macroexpand): Split out scan_arguments, stringify, and
3710 funlike_macroexpand.
3711 (_cpp_compare_defs): Rename compare_defs, make static.
3712 (_cpp_make_hashnode): Initialize hp->disabled.
3713 (macro_cleanup): Adjust for new token types. Clear
3714 m->disabled.
3715 (_cpp_create_definition): Move code here to determine what
3716 sort of macro it is, and code to check for redefinitions, from
3717 do_define. Implement a few simple cases without creating a
3718 full DEFINITION.
3719 (_cpp_macroexpand, special_symbol, _cpp_dump_definition):
3720 Handle the simple cases.
3721 (push_macro_expansion): Set buf->has_escapes and hp->disabled
3722 here.
3723
3724 * cppinit.c (builtin_array): Change MCONST to XCONST
3725 everywhere.
3726 * cpplex.c (maybe_macroexpand): Handle IDENTITY macros here;
3727 fix check for disabled and function-like macros.
3728 * cpplib.c (do_define): Move most logic to
3729 _cpp_create_definition.
3730 (do_undef): Handle new special token types.
3731
3732 Sun Apr 23 14:27:44 MET DST 2000 Jan Hubicka <jh@suse.cz>
3733
3734 * loop.c (maybe_eliminate_biv_1): Use GET_CODE (x) == CONST_INT instead
3735 of CONSTANT_P for mult_val; always use validate_change to update insn.
3736
3737 2000-04-22 Zack Weinberg <zack@wolery.cumb.org>
3738
3739 * cpphash.c (trad_stringify, add_pat): New functions.
3740 (collect_expansion): Restore support for -traditional syntax.
3741 Use trad_stringify and add_pat.
3742 (_cpp_macroexpand): Restore support for -traditional semantics.
3743 * cpplex.c (_cpp_scan_line): Don't change space_before if we
3744 get a COMMENT token.
3745 (_cpp_lex_token): Provide COMMENT tokens to caller if
3746 traditional and parsing_define_directive.
3747 (skip_comment): Warn about // comments if -Wtraditional.
3748 * cpplib.c (do_define): Fix typo. Create EMPTY nodes with
3749 proper node type.
3750 (do_undef): Don't warn about undefining EMPTY nodes.
3751
3752 Sat Apr 22 22:35:38 MET DST 2000 Jan Hubicka <jh@suse.cz>
3753
3754 * loop.c (strength_reduce): Fix biv removal code.
3755
3756 2000-04-22 Richard Henderson <rth@cygnus.com>
3757
3758 * predict.c (estimate_probability): Examine both sides of
3759 a branch for no exits. Use 90% not 50% for predict taken.
3760 Reorg for one copy of note generation code.
3761
3762 2000-04-22 Richard Henderson <rth@cygnus.com>
3763
3764 * flow.c (mark_used_reg): Hack around rs6000 eliminable pic reg.
3765
3766 2000-04-22 Richard Henderson <rth@cygnus.com>
3767
3768 * diagnostic.c (init_output_buffer): Don't initialize format_args.
3769 (output_clear): Likewise.
3770 (output_printf): Use va_copy.
3771 (vline_wrapper_message_with_location): Likewise.
3772 (v_message_with_decl): Likewise.
3773 (line_wrapper_printf): VA_START infor buffer.format_args directly.
3774 * system.h (va_copy): Provide default implementation.
3775
3776 2000-04-22 Richard Henderson <rth@cygnus.com>
3777
3778 * predict.c (expected_value_to_br_prob): Don't bomb if op1 of
3779 the collected condition is not a constant.
3780
3781 2000-04-22 Gabriel Dos Reis <gdr@codesourcery.com>
3782
3783 * diagnostic.h: New file.
3784
3785 * Makefile.in (diagnostic.o): Depends on diagnostic.h
3786
3787 * diagnostic.c: Tweak. Rationalize the output logic. Adjust
3788 various function prototypes.
3789 (diagnostic.h): #include.
3790 (struct output_buffer): Move into diagnostic.h.
3791 (get_output_prefix): Rename to output_get_prefix. Export.
3792 (init_output_buffer): Export. Break out. Ajust intialization.
3793 (output_space_left, output_append): Export.
3794 (output_newline): Rename to output_add_newline. Export.
3795 (output_clear): Nullify additional output_buffer fields.
3796 (output_puts): Rename to output_add_string. Export.
3797 (dump_output): Rename to output_flush_on. Export.
3798 (build_location_prefix): Constify return-type.
3799 (emit_output_prefix): Rename to output_emit_prefix. Export.
3800 (set_real_maximum_length): New function.
3801 (output_set_maximum_length): Ditto
3802 (output_clear): Ditto.
3803 (output_add_character): Ditto.
3804 (output_add_integer): Ditto.
3805 (output_add_space): Ditto.
3806 (output_format): Ditto.
3807 (output_printf): Adjust buffer initialization.
3808 (vline_wrapper_message_with_location): Ditto.
3809 (v_message_with_decl): Ditto. Adjust call to output_puts
3810 and get_output_prefix.
3811 (default_print_error_function): Adjust buffer intialization.
3812
3813 Sat Apr 22 06:45:04 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3814
3815 * expr.c (preexpand_calls, case CALL_EXPR): Don't look at TYPE_SIZE
3816 of VOID_TYPE.
3817
3818 Fri Apr 21 18:33:09 2000 Alexandre Oliva <aoliva@cygnus.com>
3819
3820 * config/mn10300/mn10300.h (REGNO_REG_CLASS): Use NO_REGS instead
3821 of explicit 0.
3822
3823 Fri Apr 21 18:30:00 2000 Alexandre Oliva <aoliva@cygnus.com>
3824
3825 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Provide more
3826 accurate data about SP moves.
3827
3828 Fri Apr 21 18:28:28 2000 Alexandre Oliva <aoliva@cygnus.com>
3829
3830 * config/mn10300/mn10300.h (ADDITIONAL_REGISTER_NAMES): Added
3831 aliases to AM33 registers.
3832
3833 Fri Apr 21 18:26:17 2000 Alexandre Oliva <aoliva@cygnus.com>
3834
3835 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Added register 16
3836 to all EXTENDED bitmaps.
3837
3838 Fri Apr 21 18:17:12 2000 Alexandre Oliva <aoliva@cygnus.com>
3839
3840 * config/mn10300/mn10300-protos.h (mn10300_address_cost): Declare.
3841 * config/mn10300/mn10300.h (ADDRESS_COST): New macro.
3842 * config/mn10300/mn10300.c (mn10300_address_cost): New function.
3843
3844 Fri Apr 21 18:11:56 2000 Alexandre Oliva <aoliva@cygnus.com>
3845
3846 * config/mn10300/mn10300.md (movdi, movdf): Do not use `movu' when
3847 the operand is not constant.
3848
3849 Fri Apr 21 14:58:29 2000 Denis Chertykov <denisc@overta.ru>
3850
3851 * reload.c (find_equiv_reg): Checks all valueno and regno regs
3852 as a call-clobbered regs.
3853
3854 Fri Apr 21 13:30:26 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3855
3856 * rtl.c: Use NOTE_INSN_REPEATED_LINE_NUMBER and NOTE_INSN_RANGE_BEG.
3857 * rtl.h: Likewise.
3858 * rtl.def: Update comment.
3859 * function.c (expand_function): Use NOTE_INSN_REPEATED_LINE_NUMBER.
3860 * integrate.c (expand_inline_function): Likewise.
3861 * profile.c (branch_prob): Likewise.
3862 * ggc-common.c (ggc_mark_rtx_children): Use NOTE_INSN_RANGE_BEG.
3863 * print-rtl.c (print_rtx): Likewise.
3864 * haifa-sched.c (sched_analyze, unlink_other_notes): Likewise.
3865 (reemit_notes): Likewise; also use enum insn_note.
3866
3867 * stor-layout.c (layout_decl): Only set DECL_MODE if not already set.
3868 (place_field): Properly compute know and actual alignment.
3869
3870 * gengenrtl.c (gencode): Write obstack_alloc_rtx function start
3871 in proper format.
3872
3873 * cse.c (cse_insn): In (set REG0 REG1) case, remove a REG_EQUAL
3874 note for REG1.
3875
3876 2000-04-21 Zack Weinberg <zack@wolery.cumb.org>
3877
3878 * cpphash.c (struct arg, struct arglist): Const-ify strings.
3879 (warn_trad_stringify, duplicate_arg_p): New helper functions.
3880 (collect_expansion): Rewrite to scan over a token list.
3881 Remove -traditional support.
3882 (collect_formal_parameters): Rename to collect_params; rewrite
3883 to scan over a token list.
3884 (_cpp_create_definition): Adjust to scan a token list.
3885 (_cpp_macroexpand): Remove -traditional support.
3886 (_cpp_compare_defs): Whitespace is now canonicalized.
3887 (comp_def_part): Delete function.
3888
3889 * cpphash.h: Update prototypes.
3890 * cpplex.c (init_token_list): Don't set lineno if there is no
3891 buffer.
3892 (pedantic_whitespace): New function.
3893 (_cpp_scan_line): Mark tokens that had hspace before. Don't
3894 consume a newline. Use pedantic_whitespace.
3895 (_cpp_lex_token): Remove support for -traditional macros.
3896 (_cpp_get_define_token): Delete.
3897 (_cpp_get_directive_token): Do the real work here. Use
3898 pedantic_whitespace.
3899 (_cpp_init_input_buffer): Initialize pfile->directbuf.
3900
3901 * cpplib.c (get_macro_name): Delete.
3902 (do_define): Read the entire line into pfile->directbuf, then
3903 feed the token list to _cpp_create_definition.
3904 * cpplib.h (HSPACE_BEFORE): new define.
3905 (struct cpp_reader): Add a toklist member, "directbuf".
3906
3907 * predict.c (estimate_probability): New heuristic: if a jump
3908 branches around a block with no successors, predict it taken.
3909 Disentangle control flow.
3910
3911 2000-04-20 Richard Henderson <rth@cygnus.com>
3912
3913 * loop.c (emit_iv_add_mult): Revert last change.
3914
3915 2000-04-20 Zack Weinberg <zack@wolery.cumb.org>
3916
3917 * cpplib.h (enum cpp_ttype): Add token types for all
3918 punctuators. Distinguish pp-numbers from valid C numbers.
3919 Give some tokens better names. Initialize from macro.
3920 (struct cpp_name, cpp_token, cpp_toklist): New data
3921 structures.
3922 Update prototypes.
3923 * cpplex.c (bump_column, expand_name_space,
3924 expand_token_space, init_token_list, cpp_output_list,
3925 _cpp_scan_line): New functions.
3926 (output_line_command): Add third argument, new line number.
3927 * cpphash.h: Update prototypes.
3928 * cppexp.c, cpphash.c, cpplib.c, scan-decls.c: Update for new
3929 token names.
3930
3931 2000-04-20 Richard Henderson <rth@cygnus.com>
3932
3933 * config/alpha/alpha.c (alpha_emit_floatuns): Emit missing barrier.
3934
3935 2000-04-20 Zack Weinberg <zack@wolery.cumb.org>
3936
3937 * c-common.c (decl_attributes) [A_ALIAS]: Set TREE_USED on the
3938 object pointed to.
3939
3940 Thu Apr 20 14:19:18 MET DST 2000 Jan Hubicka <jh@suse.cz>
3941
3942 * loop.c (emit_iv_add_mult): Simplify it's input and emit
3943 REG_EQUAL note explaining the calculated value.
3944
3945 * calls.c (expand_call): Avoid unnecesary precalculation
3946 and outgoing parameters space guarding for sibling calls.
3947 (store_one_arg): Likewise.
3948
3949 Thu Apr 20 08:01:07 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3950
3951 * toplev.c (enum dump_file_index, dump_file): Add DFI_sibling.
3952 (rest_of_compilation): Write sibling dump file and account
3953 for time as jump time.
3954 * invoke.texi: Update documentation on dump flags.
3955
3956 2000-04-19 Marek Michalkiewicz <marekm@linux.org.pl>
3957
3958 * avr.c: #include "system.h" instead of <stdio.h> and <stdlib.h>.
3959
3960 2000-04-19 Zack Weinberg <zack@wolery.cumb.org>
3961
3962 * cpphash.c (special_symbol): Represent an empty macro with
3963 "\r \r " not just "\r ".
3964 (_cpp_macroexpand): Correct condition for the foo ( ) special
3965 case.
3966 (unsafe_chars): Handle EOF as second argument.
3967 (push_macro_expansion): Simplify test for removing escape at
3968 end. Do not trim both escapes if there is no text in between.
3969
3970 2000-04-19 Jim Blandy <jimb@redhat.com>
3971
3972 * dwarf2out.c (DWARF2_ADDR_SIZE): New macro. Use it instead
3973 of PTR_SIZE, when appropriate.
3974
3975 2000-04-19 Mark Mitchell <mark@codesourcery.com>
3976
3977 * system.h (ONLY_INT_FIELDS): Make sure it is defined.
3978 (USE_ENUM_BITFIELDS): Fix typo.
3979
3980 Wed Apr 19 12:14:55 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3981
3982 * stor-layout.c (place_field): Set rli->offset_align properly.
3983
3984 2000-04-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3985
3986 * mips.h (BITS_PER_WORD, UNITS_PER_WORD, UNITS_PER_FPREG,
3987 INT_TYPE_SIZE, LONG_TYPE_SIZE, POINTER_SIZE, POINTER_BOUNDARY,
3988 PARM_BOUNDARY): Remove unnecessary casts.
3989
3990 Wed Apr 19 12:02:37 MET DST 2000 Jan Hubicka <jh@suse.cz>
3991
3992 * calls.c (precompute_arguments): Remove must_preallocate and
3993 args_size calls.
3994 (expand_call): Update call of precompute_arguments.
3995
3996 * loop.c (check_insn_for_bivs, for_every_insn_in_loop,
3997 check_insn_for_givs): Break out from ...
3998 (strength_reduce) ... here; use for_every_insn_in_loop to call
3999 check_insn_for_givs.
4000 * loop.h (for_every_insn_in_loop): Declare.
4001 (loop_insn_callback): New type.
4002
4003 2000-04-18 Zack Weinberg <zack@wolery.cumb.org>
4004
4005 * cpplib.c (do_pragma_poison): Strings in the token buffer are
4006 not nul-terminated.
4007
4008 Tue Apr 18 16:04:12 2000 Jim Wilson <wilson@cygnus.com>
4009
4010 * config/ia64/sysv4.h (SELECT_SECTION): Use data_section if
4011 flag_pic and RELOC.
4012
4013 2000-04-18 Zack Weinberg <zack@wolery.cumb.org>
4014
4015 * cccp.c, cexp.y, cexp.c, cccp.1: Removed.
4016
4017 * configure.in: Delete --disable-cpplib option and all
4018 references to cpp_main.
4019 * configure: Regenerate.
4020 * Makefile.in: Remove all references to CCCP, CCCP_OBJS,
4021 @cpp_main@, cccp.c, cexp.c, cexp.y, cexp.output, cexp.o,
4022 cccp.o, cccp, or cppmain. Link cppmain.o straight to
4023 cpp$(exeext). Add --no-headers to makeinfo command line when
4024 generating INSTALL. Install and uninstall cpp.1 manpage, not
4025 cccp.1.
4026 * install.texi: Delete all references to cexp.y/cexp.c.
4027 Delete ancient instructions for compiling GCC on 3b1.
4028 * INSTALL: Regenerate.
4029
4030 * cppfiles.c, cpplib.h, jump.c, protoize.c, c-lex.c, mips/t-ecoff,
4031 mips/t-elf, mips/t-r3900: Remove references to cccp.c.
4032 * convex.h, fx80.h, m68k.h, pdp11.h: Remove references to
4033 cexp.c/cexp.y.
4034 * xm-linux.h, xm-os2.h, romp.h: Remove definition of BSTRING,
4035 which is no longer tested anywhere.
4036
4037 * cppinit.c (handle_option): Don't run error message through
4038 gettext twice.
4039
4040 Tue Apr 18 14:16:47 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4041
4042 * conflict.c (conflict_graph_add): Pass enum type to htab_find_slot.
4043 * cpperror.c (hashtab.h): Now include.
4044 * cppexp.c (hashtab.h): Likewise.
4045 * cpplex.c (hashtab.h): Likewise.
4046 * cppfiles.c (hashtab.h): Likewise.
4047 (find_include_file, _cpp_calc_hash, cpp_read_file): Pass enum type
4048 to htab_find_slot_with_hash.
4049 * cpphash.c (hashtab.h): Now include.
4050 (_cpp_lookup_slot): INSERT is now enum insert_option.
4051 * cpphash.h (_cpp_lookup_slot): Likewise.
4052 * cppinit.c (hashtab.h): Include earlier.
4053 (initialize_builtins): Pass enum to htab_find_slot.
4054 * cpplib.c (hashtab.h): Now include.
4055 (do_define, do_undef): Pass enum type to _cpp_lookup_slot.
4056 (do_pragma_poison, do_assert): Likewise.
4057 * emit-rtl.c (gen_rtx_CONST_INT): Pass enum to
4058 htab_find_slot_with_hash.
4059 * simplify-rtx.c (cselib_lookup_mem, cselib_lookup): Likewise.
4060 * tree.c (type_hash_add): Likewise.
4061 (build1): Minor cleanup.
4062
4063 * ggc-common.c: Add missing blanks.
4064 * print-tree.c (print_node): Print DECL_OFFSET_ALIGN.
4065 * tree.h (DECL_OFFSET_ALIGN): Fix typo in comment.
4066
4067 * stmt.c (mark_case_node): New function.
4068 (mark_case_nesting): Call it.
4069
4070 * expmed.c (emit_store_flag): If comparing two-word integer
4071 with zero, can optimize NE, EQ, GE, and LT.
4072
4073 * c-decl.c (mark_binding_level): Use 'for' instead of `while'.
4074 * conflict.c: Minor cleanups.
4075 * optabs.c: Add blank line
4076 * simplify-rtx.c: Minor cleanups.
4077
4078 2000-04-18 Stan Cox <scox@cygnus.com>
4079
4080 * gengenrtl.c (genlegend): Fix misspelling.
4081
4082 2000-04-18 Robert Lipe <robertlipe@usa.net>
4083
4084 * configure.in (ENUM_BITFIELDS_ARE_UNSIGNED): Added. Check that
4085 bitfields of the host compiler are not signed quantities.
4086 * config.in: Regenerate.
4087 * configure: Regenerate.
4088 * system.h (USE_ENUM_BITFIELDS): Added.
4089 (ENUM_BITFIELDS): Added.
4090 * rtl.h (rtx_def): Members `code', `mode', now ENUM_BITFIELD.
4091 (SHORT_ENUM_BUG): Deleted.
4092 * tree.h (tree_common): Members `code', `mode', `built_in_class',
4093 now ENUM_BITFIELD.
4094 * config/i386/xm-sco.h (ONLY_INT_FIELDS): Deleted.
4095 (CODE_FIELD_BUG): Likewise.
4096 * config/m68k/x-apollo68 (CC): Deleted SHORT_ENUM_BUG.
4097 (OLD_CC): Likewise.
4098 * config/m68k/x-ccur (X_CFLAGS): Likewise.
4099
4100 2000-04-18 Mark Mitchell <mark@codesourcery.com>
4101
4102 * cpplex.c (_cpp_lex_token): Don't call CPP_BUMP_LINE when the
4103 mark is active.
4104
4105 2000-04-17 Zack Weinberg <zack@wolery.cumb.org>
4106
4107 * cppexp.c (lex): Don't assume tokens are NUL terminated.
4108 * cpplib.c (do_include, do_import, do_include_next,
4109 read_line_number, detect_if_not_defined): Likewise.
4110 * cpphash.c (collect_expansion): Likewise.
4111 (special_symbol, _cpp_macroexpand): Check return from
4112 cpp_file_buffer.
4113 * cpphash.h (CPP_NUL_TERMINATE, CPP_NUL_TERMINATE_Q): Delete
4114 macros. Delete all uses.
4115
4116 * gcc.dg/cpp-mi.c: Add two more test cases.
4117 * gcc.dg/cpp-mind.h, gcc.dg/cpp-mindp.h: New files.
4118
4119 2000-04-17 Richard Henderson <rth@cygnus.com>
4120
4121 * bb-reorder.c (fixup_reorder_chain): Don't look up new block again.
4122 (reorder_basic_blocks): If no epilogue in rtl, force last block last.
4123
4124 2000-04-17 Mark Mitchell <mark@codesourcery.com>
4125
4126 * function.c (expand_function_start): Use hard_function_value to
4127 compute the RTL to use for DECL_RESULT.
4128
4129 Mon Apr 17 23:35:29 MET DST 2000 Jan Hubicka <jh@suse.cz>
4130
4131 * i386.c (athlon_cost): Fix lea, divide and XFmode move costs.
4132 (x86_integer_DFmode_moves, x86_partial_reg_dependency,
4133 x86_memory_mismatch_stall): New global variables.
4134 (ix86_adjust_cost): Handle MEMORY_BOTH on places MEMORY_STORE was only
4135 alloved; fix load penalties for Athlon.
4136 * i386.h (x86_integer_DFmode_moves, x86_partial_reg_dependency,
4137 x86_memory_mismatch_stall): Declare.
4138 (TARGET_INTEGER_DFMODE_MOVES, TARGET_PARTIAL_REG_DEPENDENCY,
4139 TARGET_MEMORY_MISMATCH_STALL): New.
4140 * i386.md (athlon scheduling parameters): Fix latencies according to
4141 Athlon Optimization Manual.
4142 (sahf, xchg, fldcw, leave instruction patterns): Set athlon_decode to
4143 vector.
4144 (fsqrt instruction patterns): Set athlon_decode to direct.
4145 (movhi_1): Promote for TARGET_PARTIAL_REG_DEPENDENCY and for
4146 PARTIAL_REGISTER_STALL with !TARGET_HIMODE_MATH machines.
4147 (movqi_1): Handle promoting correctly for TARGET_PARTIAL_REG_DEPENDENCY
4148 and TARGET_PARTIAL_REGISTER_STALL machines.
4149 (pushdf_nointeger): New pattern.
4150 (pushdf_integer): Rename from pushdf.
4151 (movdf_nointger): Enable for !TARGET_INTEGER_DFMODE_MOVES machines.
4152 (movdf_intger): Disable for !TARGET_INTEGER_DFMODE_MOVES machines.
4153
4154 2000-04-17 Richard Henderson <rth@cygnus.com>
4155
4156 * loop.c (canonicalize_condition): Add WANT_REG argument.
4157 Stop the search if we match it.
4158 * expr.h (canonicalize_condition): Update decl.
4159 * predict.c (expected_value_to_br_prob): Use it. Track last
4160 expected value note.
4161 (find_expected_value): Remove.
4162
4163 * reorg.c (mostly_true_jump): Always use BR_PROB if present.
4164
4165 2000-04-17 Zack Weinberg <zack@wolery.cumb.org>
4166
4167 * aclocal.m4 (AM_GNU_GETTEXT): Don't AC_REQUIRE([AC_FUNC_MMAP]).
4168 (AC_FUNC_MMAP_FILE): New macro, tests read-only private map of
4169 a plain file.
4170 * configure.in: Call AC_FUNC_MMAP_FILE.
4171 * configure: Regenerate.
4172 * config.in: Regenerate.
4173
4174 * intl/loadmsgcat.c: Test HAVE_MMAP_FILE not HAVE_MMAP.
4175 * fixinc/fixincl.c: Likewise.
4176
4177 2000-04-17 Richard Henderson <rth@cygnus.com>
4178
4179 * builtins.c (expand_builtin_expect): New.
4180 (expand_builtin): Call it.
4181 * builtins.def (BUILT_IN_EXPECT): New.
4182 * c-common.c (c_common_nodes_and_builtins): Declare __builtin_expect.
4183 * extend.texi: Document it.
4184
4185 * predict.c (expected_value_to_br_prob): New.
4186 (find_expected_value): New.
4187 * basic-block.h (expected_value_to_br_prob): Declare.
4188 * toplev.c (rest_of_compilation): Invoke it.
4189
4190 * rtl.h (NOTE_EXPECTED_VALUE): New.
4191 (NOTE_INSN_EXPECTED_VALUE): New.
4192 * rtl.c (note_insn_name): Update.
4193 * print-rtl.c (print_rtx): Reorg NOTE_LINE_NUMBER special
4194 cases; handle NOTE_INSN_EXPECTED_VALUE.
4195
4196 2000-04-17 Jakub Jelinek <jakub@redhat.com>
4197
4198 * config/sparc/sparc.c (eligible_for_sibcall_delay): Cannot use
4199 leaf sibcall delay slot if flag_pic.
4200 (output_sibcall): Always emit call for leaf sibcall if flag_pic.
4201
4202 2000-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4203
4204 * Makefile.in (stmp-fixproto): Acknowledge errors in fixproto.
4205
4206 * fixproto: If fix-header fails, exit with an error.
4207
4208 Mon Apr 17 14:59:36 MET DST 2000 Jan Hubicka <jh@suse.cz>
4209
4210 * cse.c (struct check_depdendence_data): New.
4211 (check_dependence): New function.
4212 (invalidate): Use check_depdenence.
4213
4214 2000-04-16 Mark Mitchell <mark@codesourcery.com>
4215
4216 * dwarf2out.c (DWARF_CIE_DATA_ALIGNMENT): Adjust, now that
4217 UNITS_PER_WORD is unsigned.
4218
4219 * tree.h (struct tree_common): Remove misleading comment.
4220
4221 2000-04-16 Dave Pitts <dpitts@cozx.com>
4222
4223 * Makefile.in ($(srcdir)/c-parse.y: c-parse.in): Enclose the whole
4224 message in quotes. Otherwise, IBM's make program treats the '#' as the
4225 start of a comment and ignores the remainder of the line.
4226
4227 * c-lex.c (yylex): Change for EBCDIC, lower case characters preceed
4228 upper case.
4229 * cccp.c (initialize_char_syntax): Allow for holes in EBCDIC.
4230 * cexp.y (initialize_random_junk): Likewise.
4231 * cppfiles.c (find_include_file): Cast alloca return value.
4232 * cppinit.c (initialize_standard_includes): Likewise.
4233 * cpplib.c (cpp_define, cpp_undef): Likewise.
4234 * defaults.h (ASM_OUTPUT_ASCII): Use ISPRINT.
4235 * final.c (output_asm_insn): Allow for holes in EBCDIC.
4236 * fold-const.c (CHARMASK): New.
4237 (real_hex_to_f): Use it.
4238 * real.c (CHARMASK): New.
4239 (etoasc, asctoeg): Use it.
4240 (asctoeg): EBCDIC lower case characters preceed upper case.
4241
4242 * i370.c (mvs_add_label): Change spacing for coding conventions.
4243 * i370.h (ASM_OUTPUT_CASE_LABEL): Change to the data CSECT for the
4244 outputing case vectors.
4245 (ASM_OUTPUT_CASE_END): New, put assembler back into code CSECT.
4246 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove page check,
4247 since vector in in the data CSECT.
4248 (ASM_OUTPUT_REG_POP, ASM_OUTPUT_REG_PUSH): Restore to correct operation.
4249 * i370.md (Many patterns): Put the length in the XL directives.
4250 (movdi): Put back STM and MVC in definition.
4251 (floatsidf2): Correct TARGET_ELF_ABI pattern and add back the LE370
4252 pattern using the TCA.
4253 * oe.h (CPP_SPEC): Added to allow trigraphs.
4254 * xm-oe.h (HOST_BITS_PER_LONGLONG): Change to 32. IBM's compiler does
4255 not support the "long long" type.
4256
4257 2000-04-16 Mark Mitchell <mark@codesourcery.com>
4258
4259 * config/mips/mips-protos.h (mips_legitimate_address_p): New
4260 function.
4261 (mips_reg_mode_ok_for_base_p): Likewise.
4262 * config/mips/mips.h (REG_OK_STRICT_P): Don't define.
4263 (REG_OK_FOR_INDEX_P): Define unconditionally.
4264 (REG_MODE_OK_FOR_BASE_P): Use mips_reg_mode_ok_for_base_p.
4265 (GO_IF_LEGITIMATE_ADDRESS): Use mips_legitimate_address_p.
4266 * config/mips/mips.c (mips16_simple_memory_operand): Adjust now
4267 that GET_MODE_SIZE is unsigned.
4268 (mips_reg_mode_ok_for_base_p): Define.
4269 (mips_legitimate_address_p): Likewise. Adjust now
4270 that GET_MODE_SIZE is unsigned.
4271 (block_move_loop): Make the number of bytes unsigned.
4272 (expand_block_move): Likewise.
4273 (function_arg): Make the loop counter unsigned to match the
4274 boundary condition.
4275
4276 2000-04-16 Richard Henderson <rth@cygnus.com>
4277
4278 * rtl.h (enum insn_note): New enumeration. Subsume
4279 NOTE_INSN_DELETED and friends.
4280 (GET_NOTE_INSN_NAME): Adjust index by NOTE_INSN_BIAS.
4281 * rtl.c (note_insn_name): Tweak string order.
4282
4283 2000-04-15 Zack Weinberg <zack@wolery.cumb.org>
4284
4285 * cpplex.c (_cpp_read_and_prescan): Enlarge len by setting it
4286 to offset * 2.
4287
4288 * cpplex.c (output_line_command): Remove debugging prints.
4289 (cpp_output_tokens): Don't write out a zero-length buffer or
4290 try to see if it has a newline in it.
4291 (_cpp_expand_to_buffer): Copy the source buffer before pushing.
4292 (_cpp_read_and_prescan): Move shift-down of pushback bytes to
4293 the end of the loop. Use memmove. Don't read past the end of
4294 the buffer. Remove trailing newlines from error messages.
4295
4296 2004-04-16 Neil Booth <NeilB@earthling.net>
4297
4298 * cpphash.h (SYNTAX_INCLUDE, SYNTAX_ASSERT, directive_handler): new.
4299 * cpplib.c: Add new syntax flags to directive table, and
4300 supporting macros.
4301
4302 2000-04-15 Ulrich Drepper <drepper@redhat.com>
4303
4304 * i386.c (ix86_expand_epilogue): Yes, the x86 can pop 64k at once
4305 using ret $N.
4306
4307 2000-04-15 David Edelsohn <edelsohn@gnu.org>
4308
4309 * toplev.c (display_help): Prefix "f" to "sched-verbose=".
4310 * haifa-sched.c: Update -fsched-verbose comments to use "=".
4311
4312 Sat Apr 15 10:59:19 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4313
4314 * Makefile.in (ggc-page.o): Now includes toplev.h.
4315 * ggc-page.c (toplev.h): Now included.
4316 (gc_time): Remove declaration.
4317 (ggc_collect): TIME now long.
4318 * toplev.c (parse_time, varasm_time, gc_time): Still global; all
4319 others static.
4320 * toplev.h (gc_time, parse_time, gc_time): New declarations.
4321
4322 * toplev.c: Make *_time variable long to reduce chance of overflow.
4323 (TIMEVAR): Likewise for `otime'.
4324 (print_time): Arg is now long; compute percentage in FP and round.
4325 * toplev.h (print_time): Arg is long.
4326
4327 * tree.c: Minor whitespace changes.
4328
4329 * configure.in (alpha*-*-*): Add config/alpha/t-alpha.
4330 * configure: Rebuilt.
4331 * libgcc2.c (__fixunstfDI): Renamed from __fixunstfdi.
4332 (__fixunsxfDI): Renamed from __fixunsxfdi.
4333 (__fixunsdfDI): Renamed from __fixunsdfdi.
4334 (__fixunssfDI): Renamed from __fixunssfdi.
4335 (__floatdisf): Use proper type in REP_BIT macro.
4336 (__fixunsxfSI): Renamed from __fixunsxfsi.
4337 (__fixunsdfSI): Renamed from __fixunsdfsi.
4338 (__fixunssfSI): Renamed from __fixunssfsi.
4339 * libgcc2.h: Add cases for MIN_UNITS_PER_WORD > 4.
4340 Change location of macros and upper-case some names as above.
4341 * longlong.h ([alpha]): Use PARAMS, not __P in decl of __udiv__qrnnd.
4342 * config/alpha/t-alpha, config/alpha/qrnnd.asm: New files.
4343
4344 * varasm.c (assemble_variable): Add cast to remove warning.
4345 (immed_real_const_1): Only use CONST[01]_RTX if not in nested function.
4346
4347 * flow.c (count_basic_blocks, find_basic_blocks_1): Remove last change.
4348 * optabs.c (emit_libcall_block): If have REG_EH_REGION, update
4349 region number to -1.
4350
4351 2000-04-15 Richard Earnshaw (rearnsah@arm.com)
4352
4353 * emit-rtl.c (unshare_all_rtl_again): Unmark everything, then
4354 call unshare_all_rtl.
4355
4356 * arm.md (movhi): REGNO_POINTER_ALIGN is now bits.
4357
4358 Fri Apr 14 16:58:45 2000 Jim Wilson <wilson@cygnus.com>
4359
4360 * config/ia64/lib1funcs.asm (__divdi3, __moddi3, __udivdi3, __umoddi3):
4361 Use .s1 not .s0 for all FP instructions.
4362
4363 2000-04-14 Zack Weinberg <zack@wolery.cumb.org>
4364
4365 * cpplex.c (cpp_output_tokens, cpp_scan_buffer_nooutput): New public
4366 interfaces.
4367 (safe_fwrite, output_line_command): New static functions.
4368 (cpp_expand_to_buffer): Now private to cpplib.
4369 (cpp_scan_buffer): Take a printer.
4370
4371 * cpphash.h: Update prototypes.
4372 * cpplib.h: Update prototypes.
4373 (cpp_printer): New.
4374 (cpp_buffer): Remove last_nominal_fname.
4375 (cpp_reader): Remove lineno.
4376
4377 * cppmain.c: Use a cpp_printer.
4378 * fix-header.c: No need to inhibit line commands. Call
4379 cpp_start_read with no printer.
4380
4381 * cpperror.c (cpp_notice_from_errno): Provide default name.
4382 * cppfiles.c (make_IHASH, _cpp_fake_ihash): New functions.
4383 (find_include_file, cpp_read_file): Use make_IHASH.
4384 (file_cleanup): Set control_macro and clear
4385 input_stack_listing_current here.
4386 (_cpp_execute_include): Don't output entering-file marker.
4387 * cpphash.c (special_symbol): Look for the line number in the
4388 buffer, not the reader.
4389 (_cpp_macroexpand): No need to disable line commands.
4390 (_cpp_dump_definition): No need to generate line commands.
4391 (dump_hash_helper): Remove excess newline from output.
4392 * cppinit.c (dump_special_to_buffer): No need to generate line
4393 commands.
4394 (cpp_printer_init): New.
4395 (cpp_start_read): Take a printer, and start it up if it's not
4396 NULL. No need to generate line commands.
4397 (cpp_finish): Expect no buffers stacked at all. Take a
4398 printer argument, and flush the output buffer if it's not
4399 NULL.
4400 * cpplex.c (_cpp_lex_token): Return EOF if there's no buffer.
4401 Don't put two hashes at the beginning of an assertion.
4402 (cpp_get_token): Don't increment pfile->lineno or emit line
4403 commands here. Return EOF if there's no buffer when we get
4404 EOF.
4405 * cpplib.c (do_define, skip_if_group):
4406 No need to disable line commands.
4407 (_cpp_output_line_command): Delete function.
4408 (do_line): Don't emit line commands here, but set things up so
4409 they will be emitted if necessary. Use _cpp_fake_ihash to
4410 make unique nominal_fnames if necessary.
4411 (do_elif, do_else, _cpp_handle_eof): Call cpp_error_with_line
4412 with 0 for column, not -1.
4413 (_cpp_handle_eof): Don't set the control macro here. Don't
4414 clear input_stack_listing_current here. Don't emit line
4415 commands.
4416
4417 2000-04-14 Geoff Keating <geoffk@cygnus.com>
4418
4419 * config/rs6000/sysv4.h (LINK_START_SOLARIS_SPEC): Define to empty
4420 always, use the default SVR4 start address.
4421
4422 * config/rs6000/linux.h (LINK_SPEC): Don't define.
4423 (LINK_SHLIB_SPEC): Define.
4424 (LINK_START_DEFAULT_SPEC): Define.
4425 (LINK_OS_DEFAULT_SPEC): Define.
4426
4427 * config/rs6000/sysv4.h (ENDFILE_SPEC): Use the %(endfile_*) macros.
4428
4429 * config/rs6000/eabi.asm (__eabi): Call __init rather than
4430 __do_global_ctors to handle constructors.
4431 * config/rs6000/sysv4.h (STARTFILE_ADS_SPEC): Use crtbegin.
4432 (STARTFILE_YELLOWKNIFE_SPEC): Likewise.
4433 (STARTFILE_MVME_SPEC): Likewise.
4434 (STARTFILE_SIM_SPEC): Likewise.
4435 (ENDFILE_ADS_SPEC): Use crtend.
4436 (ENDFILE_YELLOWKNIFE_SPEC): Likewise.
4437 (ENDFILE_MVME_SPEC): Likewise.
4438 (ENDFILE_SIM_SPEC): Likewise.
4439 (STARTFILE_SOLARIS_SPEC): Use crtbegin/crtbeginS.
4440 (ENDFILE_SOLARIS_SPEC): Use crtend/crtendS.
4441 (STARTFILE_LINUX_SPEC): Use crtbeginS for shared objects.
4442 (ENDFILE_LINUX_SPEC): Use crtendS for shared objects.
4443 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Don't build eabi-ctors.o.
4444 (EXTRA_MULTILIB_PARTS): Build crtbeginS/crtendS.
4445 (CRTSTUFF_T_CFLAGS_S): Define.
4446 * config/rs6000/eabi-ctors.c: Delete.
4447
4448 * config/rs6000/eabi-ci.asm (__init): Align stack to 16-byte
4449 boundary.
4450 (__fini): Likewise.
4451 * config/rs6000/eabi-cn.asm (__init): Allow for 16-byte stack frame.
4452 boundary.
4453 (__fini): Likewise.
4454
4455 Fri Apr 14 16:09:02 2000 Jim Wilson <wilson@cygnus.com>
4456
4457 * combine.c (force_to_mode, case LSHIFTRT): Check that shift shift
4458 plus mask size is smaller or equal to the mode size.
4459
4460 Fri Apr 14 18:07:30 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4461
4462 * print-rtl.c (print_rtx, case NOTE): Don't blow up if NOTE_BASIC_BLOCK
4463 not yet set.
4464
4465 * expr.c (reload.h): Now included.
4466 (emit_block_move): Set volatile_ok when checking for movstr.
4467 (emit_move_1): Check for replacements in addresses in multi-word case.
4468 * Makefile.in (expr.o): Now includes reload.h.
4469
4470 * flow.c (count_basic_blocks): Remove unused var PREV_CALL.
4471 Never have a LIBCALL end a basic block.
4472 (find_basic_blocks_1): Likewise.
4473 Reorganize CALL_INSN cases.
4474
4475 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Revert last change.
4476
4477 Fri Apr 14 10:54:22 2000 Jim Wilson <wilson@cygnus.com>
4478
4479 * config/ia64/lib1funcs.asm (__ia64_nonlocal_goto): Drop obsolete
4480 completers from mov.ret instruction.
4481
4482 2000-04-14 Richard Henderson <rth@cygnus.com>
4483
4484 * fold-const.c (extract_muldiv): Don't distribute and widen
4485 multiply across plus for non-sizetype unsigned types.
4486
4487 2000-04-14 Richard Henderson <rth@cygnus.com>
4488
4489 * flow.c (find_auto_inc): Don't autoinc eliminable registers.
4490 If the original source is dead in the incr insn, it's dead now.
4491
4492 Fri Apr 14 07:40:32 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4493
4494 * stor-layout.c (layout_decl): Properly compare KNOWN_ALIGN to
4495 see if DECL_BIT_FIELD needs to still be set.
4496
4497 * tree.h (struct tree_type): Make PRECISION 9 bits and MODE 7.
4498
4499 * dbxout.c (dbxout_type, case INTEGER_TYPE): Don't call
4500 print_int_cst_octal with something that's not an INTEGER_CST.
4501
4502 * config/alpha/alpha.c (alpha_emit_floatuns): Ensure we pass a REG
4503 and not a SUBREG to a FLOAT rtl.
4504
4505 Thu Apr 13 19:39:56 2000 Clinton Popetz <cpopetz@cygnus.com>
4506
4507 * emit-rtl.c (try_split): Avoid infinite loop if the split
4508 results in a sequence that contains the original insn.
4509
4510 2000-04-13 Andreas Jaeger <aj@suse.de>
4511
4512 * config/mips/mips.c (expand_block_move): Pass alignment
4513 argument to move_by_pieces in bits, not bytes.
4514
4515 * config/mips/linux.h (CPP_PREDEFINES): Also define __PIC__ and
4516 __pic__ for little endian.
4517
4518 2000-04-13 Andreas Jaeger <aj@suse.de>
4519
4520 * config/i386/i386-protos.h: Add prototype for
4521 uno_comparison_operator.
4522
4523 Thu Apr 13 15:55:08 MET DST 2000 Jan Hubicka <jh@suse.cz>
4524
4525 * alias.c (nonlocal_reference_p): Take care of CALL_INSNS's fusage.
4526 * calls.c (ECF_PURE): New flag.
4527 (emit_call_1): Handle ECF_PURE calls.
4528 (initialize_argument_information): Unset ECF_PURE flag too.
4529 (precompute_arguments): Precompute for ECF_PURE too.
4530 (expand_call): Handle ECF_PURE calls too.
4531 (emit_library_call_value_1): Rename no_queue argument to fn_type,
4532 accept value of 2 as pure function.
4533 (emit_library_call_value, emit_library_call): Rename no_queue argument
4534 to fn_type.
4535 * optabs.c (prepare_cmp_insn): Pass fn_type 2 to memcmp call.
4536
4537 * tree.h (DECL_IS_PURE): New macro.
4538 (struct tree_decl): Add pure_flag.
4539 * c-common.c (enum attrs): Add attribute "pure".
4540 (init_attributes): Initialize attribute "pure"
4541 (decl_attributes): Handle attribute "pure".
4542 * extend.texi (Attribute "pure"): Document.
4543 * calls.c (expand_call): Add (mem:BLK (scratch)) to "equal from"
4544 in pure function.
4545 (flags_from_decl_or_type): Support attribute "pure".
4546
4547 2000-04-13 Jason Merrill <jason@casey.cygnus.com>
4548
4549 * cpplex.c (_cpp_lex_token): Handle digraphs. Don't null-terminate
4550 the token except for numbers and identifiers.
4551
4552 Thu Apr 13 00:09:16 EDT 2000 John Wehle (john@feith.com)
4553
4554 * i386.c (ix86_expand_binary_operator,
4555 ix86_expand_unary_operator): Check no_new_pseudos
4556 instead of reload_in_progress and reload_completed.
4557 (ix86_split_ashldi, ix86_split_ashrdi,
4558 ix86_split_lshrdi): Check no_new_pseudos instead
4559 of reload_completed.
4560
4561 2000-04-12 Jeffrey A Law (law@cygnus.com)
4562
4563 * function.c (purge_addressof): Unshare any shared rtl created by
4564 purge_addressof and its children.
4565
4566 2000-04-12 Mark Mitchell <mark@codesourcery.com>
4567
4568 * function.c (aggregate_value_p): VOID_TYPE nodes are never
4569 aggregates.
4570
4571 2000-04-05 Andreas Jaeger <aj@suse.de>
4572
4573 * config/mips/linux.h (SUBTARGET_ASM_SPEC): Use proper flags if
4574 not compiling PIC code, add flags for mabi=64.
4575 (SUBTARGET_CPP_SIZE_SPEC): New.
4576 (SUBTARGET_CPP_SPEC): New.
4577 (CPP_PREDEFINES): Define __PIC__ and __pic__. PIC code is default
4578 for MIPS/Linux and lots of code needs these defines.
4579
4580 Wed Apr 12 22:44:11 2000 Hans-Peter Nilsson <hp@axis.com>
4581
4582 * reorg.c (fill_slots_from_thread): Check side_effects_p when
4583 trying the "opposite arithmetic" approach.
4584
4585 Wed Apr 12 20:51:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
4586
4587 * sh.h (STRUCT_VALUE): Just 0 for TARGET_HITACHI.
4588 (struct sh_args): Add new field force_mem.
4589 (INIT_CUMULATIVE_ARGS): Initialize it.
4590 (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Act on it.
4591
4592 Wed Apr 12 17:20:41 MET DST 2000 Jan Hubicka <jh@suse.cz>
4593
4594 * calls.c (expand_call): Do not reverse args in "equal from" field.
4595 (emit_library_call_value_1): Emit_libcall_block for const and pure
4596 function.
4597
4598 Wed Apr 12 16:00:25 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
4599
4600 * reload1.c (reload_combine): Don't enable optimization for fixed
4601 registers when encountering a BARRIER.
4602
4603 Wed Apr 12 15:54:11 MET DST 2000 Jan Hubicka <jh@suse.cz>
4604
4605 * builtins.c (expand_builtin_memcmp): Do expansion even with
4606 !HAVE_cmpstrsi, do libcall when gen_strcmpsi fails.
4607
4608 * calls.c (expand_call): Do NO_DEFER_POP unconditionally once
4609 stack is propertly aligned; add sanity checking for aligned
4610 stack pointer.
4611 (expand_library_call_value_1): Add sanity checking for aligned
4612 stack pointer.
4613
4614 Wed Apr 12 07:51:54 2000 Catherine Moore <clm@cygnus.com>
4615
4616 * calls.c (emit_library_call_value_1): Change 3rd arg to
4617 locate_and_pad_parm to disregard the setting of partial.
4618
4619 Wed Apr 12 08:47:38 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4620
4621 * tree.c (unsave_expr_now_r, unsafe_for_reeval): Properly do TREE_LIST.
4622
4623 * print-rtl.c (print_rtx): For CALL_PLACEHOLDER, output the
4624 CALL_INSN from the normal case.
4625
4626 Fri Apr 7 12:23:04 MET DST 2000 Jan Hubicka <jh@suse.cz>
4627
4628 * i386.c (x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8):
4629 New global variables.
4630 (ix86_emit_epilogue_adjustment): Do not attempt to use pop for the
4631 adjustment.
4632 * i386.h (x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8):
4633 Declare,
4634 (TARGET_SUB_ESP_4, TARGET_SUB_ESP_8, TARGET_ADD_ESP_4,
4635 TARGET_ADD_ESP_8): New macros.
4636 * i386.md: Add peep2s to convert esp adjustments to push and pop
4637 instructions.
4638 (pushsi_prologue, popsi_epilogue): New patterns.
4639
4640 2000-04-12 Jakub Jelinek <jakub@redhat.com>
4641
4642 * real.c (toe64): Remove stale #endif from the last change.
4643
4644 2000-04-12 Stephen L Moshier <moshier@mediaone.net>
4645
4646 * real.h (MAX_LONG_DOUBLE_TYPE_SIZE): Comment.
4647 * real.c (toe64): Revert previous change.
4648
4649 2000-04-12 Jakub Jelinek <jakub@redhat.com>
4650
4651 * objc/objc-act.c: Include ggc.h.
4652 (objc_tree_index, objc_global_trees): Convert most of the
4653 static tree variables into a static array with previous names
4654 as defines.
4655 (objc_ellipsis_node): New variable.
4656 (lang_init): Call objc_act_parse_init and c_parse_init.
4657 Create objc_ellipsis_node.
4658 (build_selector_translation_table): Use objc_ellipsis_node instead
4659 of (tree)1.
4660 (hack_method_prototype): Likewise.
4661 (get_arg_type_list): Likewise.
4662 (start_method_def): Likewise.
4663 (continue_method_def): Likewise.
4664 (gen_method_decl): Likewise.
4665 (ggc_mark_imp_list): New function.
4666 (ggc_mark_hash_table): New function.
4667 (objc_act_parse_init): New function.
4668 * objc/objc-act.h (objc_ellipsis_node): Add extern variable.
4669 * c-parse.in (c_parse_init): For objc add roots of objc specific
4670 local tree variables.
4671 * objc/objc-parse.y: Rebuilt.
4672 * objc/objc-parse.c: Rebuilt.
4673 (opt_parm_list): Use objc_ellipsis_node instead of (tree)1.
4674
4675 Wed Apr 12 01:00:44 EDT 2000 John Wehle (john@feith.com)
4676
4677 * cse.c (delete_trivially_dead_insns): Also delete insns
4678 that copy a register to itself where the destination is
4679 a strict_low_part.
4680
4681 2000-04-11 Richard Henderson <rth@cygnus.com>
4682
4683 * flow.c (struct propagate_block_info): Add new_dead, new_live.
4684 (propagate_block): Initialize them. Use them in parallel instead
4685 of one tmp variable, ie revert much of the 0408 and 0407 functional
4686 changes, but keep the structural changes.
4687 (mark_set_regs): Take new_dead from propagate_block_info instead.
4688 (mark_set_1, mark_set_reg): Likewise.
4689 (mark_used_regs): Likewise with new_live.
4690 (mark_used_reg): Likewise. Revert 0408 change.
4691
4692 2000-04-11 Nick Clifton <nickc@cygnus.com>
4693
4694 * config/arm/arm.h: (INCOMING_RETURN_ADDR_RTX): Remove Dwarf2
4695 restriction.
4696 (DWARF_FRAME_RETURN_COLUMN): Remove Dwarf2 restriction.
4697
4698 2000-04-11 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4699
4700 * config/elfos.h (SELECT_SECTION): Decide whether to use a data or
4701 const section to output a CONSTRUCTOR based on the same conditions
4702 used for VAR_DECLs.
4703
4704 Tue Apr 11 09:55:59 2000 Jeffrey A Law (law@cygnus.com)
4705
4706 * pa/long-double.h (FIX_TRUNCTFSI2_LIBCALL): Tweak for PA64.
4707 * pa/pa-protos.h (output_call): Add additional argument indicating
4708 if the call is a sibling/tail call.
4709 (compute_zdepdi_operands, output_64bit_and): Prototype new functions.
4710 (compute_64bit_ior, cmpib_comparison_operator): Likewise.
4711 (function_arg, function_arg_partial_nregs): Likewise
4712 * pa/pa.c (override_options): Always set flag_pic for TARGET_64BIT.
4713 (emit_move_sequence): Zero extend certain constants as needed
4714 for TARGET_64BIT.
4715 (compute_zdepdi_operands, output_64bit_and): New functions.
4716 (output_64bit_ior, function_arg): Likewise.
4717 (cmpib_comparison_operator, function_arg_partial_nregs): Likewise.
4718 (compute_frame_size, hppa_expand_prologue): Handle TARGET_64BIT.
4719 (hppa_expand_epilogue, return_addr_rtx, hppa_va_arg): Likewise.
4720 (hppa_builtin_saveregs, output_cbranch, output_bb): Likewise.
4721 (output_bvb): Likewise.
4722 (output_millicode_call): Return pointer is in %r2 for TARGET_64BIT.
4723 (output_call): New argument 'sibcall'. Generate sibcall sequences
4724 as needed.
4725 (print_operand); Handle cases 'Q', 'p', and 'z' for TARGET_64BIT. For
4726 (ouput_arg_descriptor): Do not emit argument descriptors for
4727 TARGET_64BIT.
4728 * pa/pa.h (TARGET_PA_11, TARGET_PA_20): Only define if not already
4729 defined.
4730 (TARGET_64BIT, PROMOTE_FUNCTION_RETURN): Define.
4731 (FUNCTION_OK_FOR_SIBALL): Define.
4732 (CPP_PA10_SPEC, CPP_PA11_SPEC, CPP_PA20_SPEC): Define.
4733 (CPP_CPU_DEFAULT_SPEC, SUBTARGET_EXTRA_SPECS, EXTRA_SPECS): Likewise.
4734 (CPP_SPEC): Use new spec infrastructure.
4735 (BITS_PER_WORD, UNITS_PER_WORD): Handle TARGET_64BIT.
4736 (STACK_BOUNDARY, FUNCTION_BOUNDARY, PIC_OFFSET_TABLE_REGNUM): Likewise.
4737 (RETURN_IN_MEMORY, EXTRA_CONSTRAINT, FIRST_PARM_OFFSET): Likewise.
4738 (REG_PARM_STACK_SPACE, STACK_POINTER_OFFSET): Likewise.
4739 (STACK_DYNAMIC_OFFSET, FUNCTION_VALUE): Likewise.
4740 (FUNCTION_ARG_PASS_BY_REFERENCE, FUNCTION_ARG_CALLEE_COPIES): Likewise.
4741 (TRAMPOLINE_TEMPLATE, TRAMPOLINE_SIZE): Likewise.
4742 (INITIALIZE_TRAMPOLINE, LEGITIMATE_CONSTANT_P): Likewise.
4743 (CONST_OK_FOR_LETTER_P, MOVE_RATIO): Likewise.
4744 (FUNCTION_ARG); Call out to C code.
4745 (FUNCTION_ARG_PARTIAL_NREGS): Likewise.
4746 (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Define.
4747 (MIN_UNITS_PER_WORD): Likewise.
4748 * pa/pa.md (cmpdi): New expander.
4749 (scc patterns, movstrsi): Not available for TARGET_64BIT.
4750 (64bit conditional arithmetic): New patterns.
4751 (absdi2, smindi3, umindi3, smaxdi3, umaxdi3): New patterns.
4752 (movsicc): Not available if modes on all the operands to not match.
4753 (movdicc): New expander and associated patterns.
4754 (64bit branches): New patterns.
4755 (pre_load, post_store): Generate appropriate code for TARGET_64BIT.
4756 (pre_ldd, post_std): New patterns.
4757 (64bit addil, load low part): New patterns.
4758 (special movsf constant): Not available for TARGET_64BIT.
4759 (movsf, movdf expanders): Force constants into memory.
4760 (32bit movdf/movdi patterns): Disable for TARGET_64BIT.
4761 (64bit movdf/movdi patterns): New patterns.
4762 (zero_extendqidi2, zero_extendhidi2, zero_extendsidi2): New patterns
4763 for TARGET_64BIT.
4764 (extendqidi2, extendhidi2, extendsidi2): Similarly.
4765 (adddi3 expander): Allow "arith_operand" for second input.
4766 (32bit adddi3, subdi3, uaddcm): Disable for TARGET_64BIT.
4767 (64bit adddi3, subsi3, uaddcm): New patterns for TARGET_64BIT.
4768 (mulsi3 expander): Revamp slightly so it supports TARGET_64BIT too.
4769 (muldi3): New expander for TARGET_64BIT.
4770 (divsi3, udivsi3, modsi3, umodsi3): Fourth operand must be (reg:SI 2)
4771 for TARGET_64BIT.
4772 (32bit anddi3, iordi3, xordi3, andcm, negdi2, uaddcm): Disable
4773 patterns for TARGET_64BIT.
4774 (64bit anddi3, iordi3, xordi3, andcm, negdi2, uaddcm, shadd): New
4775 patterns for TARGET_64BIT.
4776 (64bit bit insertion/extractions): New patterns for TARGET_64BIT.
4777 (64bit shifts/rotates): New patterns/expanders for TARGET_64BIT.
4778 (sibcall_epilogue): New expander.
4779 (casesi): Tweak for TARGET_64BIT.
4780 (call expanders): Set & use the outgoing argument pointer. Use the
4781 64bit call patterns as needed. Add additional arg to output_call.
4782 (call_internal_reg_64bit, call_value_internal_reg_64bit): New pattern.
4783 (sibcall, sibcall_internal_symref): New expanders.
4784 (sibcall_value, sibcall_value_internal_symref
4785 (interspace_jump): Turn into an expander + matching patterns.
4786 (canonicalize_funcptr_for_compare): Not needed for TARGET_64BIT.
4787 * pa/pa64-regs.h: Eliminate trigraph sequences.
4788 * pa/pa64-start.h (TARGET_PA_20): Fix typo.
4789
4790 2000-04-11 Zack Weinberg <zack@wolery.cumb.org>
4791
4792 * cppexp.c, cpphash.c, cpphash.h, cpplex.c, cpplib.c,
4793 cpplib.h, cppmain.c, fix-header.c, scan-decls.c: Replace
4794 cpp_token with cpp_ttype everywhere.
4795 * cpperror.c, cpphash.c, cpplex.c, cpplib.c, scan-decls.c:
4796 Replace cpp_buf_line_and_col with CPP_BUF_LINE and/or
4797 CPP_BUF_COL. Line and column numbers are unsigned int, not
4798 long.
4799 * cpplex.c (cpp_buf_line_and_col): Delete.
4800 * cpplib.h (struct cpp_buffer, struct cpp_reader): Change
4801 'long lineno' to 'unsigned int lineno'.
4802 (CPP_BUF_LINE, CPP_BUF_COL): New macros.
4803
4804 2000-04-11 Martin v. Löwis <loewis@informatik.hu-berlin.de>
4805
4806 * extend.texi: ISO C99 is not a draft anymore.
4807 * invoke.texi: ISO C++ is not a draft anymore.
4808 * cpp.texi: __cplusplus is required by the ISO standard.
4809
4810 * extend.texi (-fthis-is-variable): Undocument.
4811 * flags.h (warn_template_debugging): Remove declaration.
4812 * gcc.1 (-fall-virtual, -fenum-int-equiv, -fthis-is-variable,
4813 -Wenum-clash, -Wtemplate-debugging): Undocument.
4814
4815 2000-04-10 Nick Clifton <nickc@cygnus.com>
4816
4817 * config/arm/arm.h (HOST_INT): New macro: Declare a HOST_WIDE_INT
4818 integer.
4819 (HOST_UINT): New macro: Declare an unsigned HOST_WIDE_INT
4820 integer.
4821 (ARM_SIGN_EXTEND): Use HOST_UINT.
4822 (STRIP_NAME_ENCODING): Prevent warnings about redefinitions.
4823 (ASM_OUTPUT_LABELREF): Prevent warnings about redefinitions.
4824 (INCOMING_RETURN_ADDR_RTX): Only define if Dwarf2 is supported.
4825 (DWARF_FRAME_RETURN_COLUMN): Only define if Dwarf2 is supported.
4826
4827 * config/arm/arm.c: (const_ok_for_arm): Use HOST_UINT.
4828 (arm_gen_constant): Use HOST_UINT.
4829 (arm_canonicalize_constant): Use HOST_UINT.
4830 (arm_reload_in_hi): Use HOST_UINT.
4831 (arm_reload_out_hi): Use HOST_UINT.
4832 (output_multi_immediate): Use HOST_UINT.
4833 (int_log2): Use HOST_UINT.
4834 (arm_poke_function_name): Use HOST_UINT.
4835 (arm_output_epilogue): Use arm_volatile_func().
4836 (output_thumb_prologue): Use arm_strip_name_encoding().
4837
4838 Mon Apr 10 15:40:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4839
4840 * sbitmap.c (sbitmap_a_subset_b_p): Rework loop to avoid potential
4841 of sequence point problems.
4842
4843 2000-04-10 Nathan Sidwell <nathan@codesourcery.com>
4844
4845 * rtl.def (ASHIFT, ROTATE, ASHIFTRT, LSHIFTRT, ROTATERT):
4846 Recomment.
4847 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Recomment.
4848
4849 Mon Apr 10 07:21:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4850
4851 * sbitmap.h: Whitespace changes and use upper-case macro args.
4852 (struct simple_bitmap_def): All sizes now unsigned.
4853 (EXECUTE_IF_SET_IN_SBITMAP): Internal vars now _X instead of X_.
4854 * sbitmap.c (sbitmap_alloc): N_ELMS now unsigned; also local vars.
4855 (sbitmap_vector_alloc): Parms and local vars now unsigned.
4856 (sbitmap_zero): Cast bzero arg to PTR.
4857 (sbitmap_vector_zero, sbitmap_vector_one): Parm and Local var unsigned.
4858 (sbitmap_union_of_diffs): Change loop index to unsigned and rework
4859 loop to make structure clearer.
4860 (sbitmap_not, sbitmap_difference, sbitmap_a_and_b): Likewise.
4861 (sbitmap_a_or_b, sbitmap_a_subset_b_p, sbitmap_a_or_b_and_c): Likewise.
4862 (sbitmap_a_and_b_or_c): Likewise.
4863 (sbitmap_intersection_of_succs): Minor cleanups.
4864 (sbitmap_intersection_of_preds, sbitmap_union_of_succs): Likewise.
4865 (sbitmap_union_of_preds): Likewise.
4866 (sbitmap_first_set_bit, dump_sbitmap): Local variables now unsigned.
4867 (debug_sbitmap): New function.
4868
4869 * c-convert.c (convert): Handle REFERENCE_TYPE like POINTER_TYPE.
4870 * c-typeck.c (convert_for_assignment): Likewise.
4871
4872 * expmed.c (init_expmed): Don't free objects we make.
4873 * emit-rtl.c (gen_rtx_CONST_INT, init_emit_once): Minor cleanups.
4874
4875 * expr.c (get_inner_reference): Correct some WITH_RECORD_EXPR cases.
4876 (expand_expr, case CONVERT_EXPR): Pass proper alignment to store_field.
4877
4878 * gcse.c (expr_hash_table_size): Now unsigned.
4879 (compute_ae_gen): Local variable `i' now unsigned.
4880 (compute_ae_kill, pre_insert_copies, pre_delete, pre_gcse): Likewise.
4881 (compute_transout, hoist_code): Likewise.
4882 (compute_local_properties): Likewise, also hash_table_size.
4883 (alloc_expr_hash_table): N_INSNS now unsigned.
4884 (delete_null_pointer_checks): Mark arg F as unused.
4885
4886 * regrename.c: Minor cleanups, including chang some variables
4887 to unsigned int.
4888
4889 2000-04-10 Neil Booth <NeilB@earthling.net>
4890
4891 * cpplex.c (skip_block_comment): Use pointer arithmetic rather
4892 than GETC ().
4893 * cpphash.h: (CPP_BUMP_BUFFER_LINE_CUR, CPP_BUMP_LINE_CUR): New.
4894
4895 2000-04-10 Martin v. Löwis <loewis@informatik.hu-berlin.de>
4896
4897 * invoke.texi (-fno-gnu-keywords): Remove classof, headof,
4898 __classof__, and __headof__ from the list of gnu keywords.
4899 (-ansi): Remove -foperator-names from list of implied options.
4900 Do not call it ANSI C++.
4901 (-foperator-names): Document as -fno-operator-names.
4902
4903 2000-04-09 Zack Weinberg <zack@wolery.cumb.org>
4904
4905 * cpphash.c (timestamp): Delete.
4906 (del_HASHNODE): If type is T_MCONST, free value.cpval.
4907 (special_symbol): Remove unnecessary braces. Remove
4908 T_VERSION. Treat T_STDC like T_CONST unless
4909 STDC_0_IN_SYSTEM_HEADERS. Render both __DATE__ and __TIME__
4910 when one is encountered, then convert them into T_MCONST
4911 nodes.
4912 * cppinit.c (builtin_array): version_string is T_MCONST.
4913 __STDC__ has a "1" in its cpval. Don't have a terminator
4914 entry. Clean up which entries are dumped.
4915 (initialize_builtins): Only __STDC__ gets the special
4916 -traditional treatment. Count the length of builtin_array.
4917 Render version_string here.
4918 * cpphash.h: Remove T_VERSION. Add T_MCONST.
4919 * cpplib.h (struct cpp_reader): Remove timebuf.
4920
4921 2000-04-09 Richard Henderson <rth@cygnus.com>
4922
4923 * genrecog.c (pred): Update comparison_operator for the unordered
4924 operators.
4925
4926 * config/i386/i386.c (no_comparison_operator): Disallow unordered
4927 operators.
4928 (fcmov_comparison_operator): Allow UNORDERED/ORDERED.
4929 (uno_comparison_operator): New.
4930 (put_condition_code): Handle UNORDERED/ORDERED.
4931 (unsigned_comparison): Likewise.
4932 (ix86_fp_compare_mode): Broken out of ix86_expand_fp_compare.
4933 (ix86_use_fcomi_compare, ix86_prepare_fp_compare_args): Likewise.
4934 (ix86_expand_fp_compare): Use them. Take scratch as argument,
4935 update all callers. Handle all 8 unordered operators.
4936 (ix86_expand_setcc): Lose the unordered argument, update all callers.
4937 (ix86_expand_branch): Likewise. Don't fully expand fp branches.
4938 * config/i386/i386.h (PREDICATE_CODES): Update.
4939 * config/i386/i386-protos.h (ix86_expand_fp_compare): Declare.
4940 (ix86_expand_branch, ix86_expand_setcc): Update.
4941 * config/i386/i386.md (sunordered, sordered): New.
4942 (suneq, sunge, sungt, sunle, sunlt, sltgt): New.
4943 (bunordered, bordered): New.
4944 (buneq, bunge, bungt, bunle, bunlt, bltgt): New.
4945 (*fp_jcc_1, *fp_jcc_2, *fp_jcc_3, *fp_jcc_4): New.
4946 (*fp_jcc_5, *fp_jcc_6, and splitters): New.
4947
4948 2000-04-09 Philip Blundell <philb@gnu.org>
4949
4950 * config/arm/arm.h (ARM_NAME_ENCODING_LENGTHS): Strip `*' too.
4951
4952 Sun Apr 9 15:16:14 EDT 2000 John Wehle (john@feith.com)
4953
4954 * i386.md (fix_truncsfhi2, fix_truncdfhi2,
4955 fix_truncxfhi2): New patterns.
4956 * i386.c (output_fix_trunc): Handle converting to HImode.
4957
4958 2000-04-08 Alex Samuel <samuel@codesourcery.com>
4959
4960 * ssa.c (convert_to_ssa): Eliminate dead code when calling
4961 life_analysis.
4962 (convert_from_ssa): Call compute_bb_for_insn before life_analysis.
4963 (for_each_successor_phi): Change parameter to basic_block.
4964 (coalesce_regs_in_successor_phi_nodes): Likewise.
4965 (coalesce_regs_in_copies): Likewise.
4966 (compute_coalesced_reg_partition): Use basic_block instead of index.
4967 * rtl.h (convert_to_ssa): Delete.
4968 (convert_from_ssa): Likewise.
4969 (successor_phi_fn): Likewise.
4970 (for_each_successor_phi): Likewise.
4971 (in_ssa_form): Likewise.
4972 * basic-block.h (convert_to_ssa): Moved from rtl.h.
4973 (convert_from_ssa): Likewise.
4974 (successor_phi_fn): Likewise.
4975 (in_ssa_form): Likewise.
4976 (for_each_successor_phi): Likewise. Change parameter to basic_block.
4977 * flow.c (calculate_global_regs_live): Pass a basic_block to
4978 for_each_successor_phi.
4979
4980 2000-04-08 Richard Henderson <rth@cygnus.com>
4981
4982 * flow.c (mark_used_reg): Use reg_set_p to determine if a register
4983 was modified in the current insn.
4984
4985 2000-04-08 Richard Earnshaw (rearnsha@arm.com)
4986
4987 * arm/thumb.md: Delete.
4988 * arm/thumb-protos.h: Delete.
4989
4990 2000-04-08 Richard Earnshaw (rearnsha@arm.com)
4991
4992 Merge changes from merged-arm-thumb-backend-branch onto trunk.
4993
4994 2000-04-08 Richard Earnshaw (rearnsha@arm.com)
4995
4996 * Merge trunk code from tag merged-arm-thumb-backend-merge_20000408
4997 into branch.
4998
4999 * arm.md (nop): Use the standard RTL expression. Don't code as a
5000 define_expand.
5001 (*arm_nop, *thumb_nop): Delete.
5002
5003 * arm.c (const_ok_for_arm): Don't use ANSI extensions for defining
5004 constants. Use casts instead.
5005 (arm_gen_constant, arm_rtx_costs, arm_reload_in_hi, arm_reload_out_hi,
5006 output_multi_immediate, arm_poke_function_name): Likewise.
5007 * arm.h (ARM_LEGITIIMIZE_RELOAD_ADDRESS, ARM_SIGN_EXTEND,
5008 MASK_RETURN_ADDDR): Likewise.
5009
5010 2000-03-31 Richard Earnshaw (rearnsha@arm.com)
5011
5012 * Merge trunk code from tag merged-arm-thumb-backend-merge_20000325
5013 into branch.
5014
5015 * arm.md (eh_epilogue): New function.
5016 * arm.h (struct machine_function): Move to here ...
5017 * arm.c: ... from here.
5018 (arm_output_epilogue): Support epilogues for __builtin_eh_return.
5019 (thumb_exit): Extra parameter eh_ofs. All callers changed.
5020 Handle epilogues for __builtin_eh_return. Make bit-fields unsigned.
5021
5022 2000-03-30 Nick Clifton <nickc@cygnus.com>
5023
5024 * config/arm/semi.h (ASM_SPEC): Restore definition.
5025 (SUBTARGET_EXTRA_ASM_SPEC): Define if not already defined.
5026
5027 * config/arm/elf.h (ASM_SPEC): Restore definition.
5028 (SUBTARGET_EXTRA_ASM_SPEC): Define if not already defined.
5029
5030 * config/arm/arm.h (ASM_SPEC): Remove definition.
5031 (SUBTARGET_EXTRA_ASM_SPEC): Remove definition.
5032
5033 2000-03-26 Bernd Schmidt <bernds@cygnus.co.uk>
5034
5035 * config/arm/arm.c: Disable -fschedule-insns for Thumb.
5036
5037 2000-03-24 Nick Clifton <nickc@cygnus.com>
5038
5039 Various formating tidyups, elimination of compile time
5040 warnings and synchronisation with internal sources:
5041
5042 * config/arm/arm-protos.h (assemble_align): Add prototype.
5043 (gen_rotated_half_load): Rename to arm_gen_rotated_half_load.
5044 (gen_comapre_reg): Rename to arm_gen_compare_reg.
5045 (arm_return_addr_rtx): Rename to arm_return_addr.
5046
5047 * config/arm/arm.c: Include except.h.
5048 Define shorter typenames for strict minipool_node and struct
5049 minipool_fix.
5050 (arm_return_in_memory): For WinCE return all structures <= 32 bits
5051 in memory.
5052 (gen_rotated_half_load): Rename to arm_gen_rotated_half_load.
5053 (gen_comapre_reg): Rename to arm_gen_compare_reg.
5054
5055 * config/arm/arm.h (SUBTARGET_EXTRA_ASM_SPEC): Define if not
5056 already defined.
5057 (ASM_SPEC): Define if not already defined.
5058 (ASM_OUTPUT_DEF_FROM_DECLS): Define.
5059
5060 * config/arm/arm.md: Rename references to gen_rotated_half_load to
5061 arm_gen_rotated_half_load, and references to gen_comapre_reg to
5062 arm_gen_compare_reg.
5063 (indirect_jump): Only accept register operands.
5064 (load_indirect_jump): Keep this pattern since combine can generate
5065 it.
5066
5067 * config/arm/coff.h: Include aout.h.
5068 (MULTILIB_DEFAULTS): Only define if not already defined.
5069
5070 * config/arm/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Move definition
5071 into arm.h (so that COFF ports can support thumb based aliases).
5072 (ASM_SPEC): Move definition into arm.h
5073
5074 * config/arm/linux-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Remove
5075 redundant apcs spec.
5076 (ASM_SPEC): Move definition to arm.h
5077
5078 * config/arm/semi.h (ASM_SPEC): Move definition to arm.h
5079
5080 * config/arm/unknown-elf.h (ASM_OUTPUT_SECTION_NAME): Add support
5081 for entries in the .bss section
5082
5083 2000-03-23 Nick Clifton <nickc@cygnus.com>
5084
5085 * config/arm/arm.h (THUMB_INITIAL_ELIMINATION_OFFSET): Pass 0
5086 to thumb_far_jump_used_p.
5087
5088 * config/arm/arm-protos.h (thumb_far_jump_used_p): Take a
5089 single integer parameter.
5090
5091 * config/arm/arm.c (struct machine_function): Add two new
5092 fields, 'far_jump_used' and 'arg_pointer_live'.
5093 (thumb_far_jump_used_p): Once the decision has been made that
5094 far jumps might be used, always return true.
5095 If being called from the initial elimination offset macro then
5096 do not bother to perform the test if the arg pointer is not
5097 being used.
5098 (thumb_unexpand_epilogue): Pass 1 to thumb_far_jump_used_p().
5099 (output_thumb_prologue): Pass 1 to thumb_far_jump_used_p().
5100
5101 2000-03-23 Richard Earnshaw (rearnsha@arm.com)
5102
5103 * arm.c (output_return_instruction): Handle more cases where we can
5104 return from a function with an ldr instruction.
5105 (arm_output_epilogue): Likewise.
5106
5107 * arm.c (thumb_expand_prologue): Don't clobber the frame pointer
5108 if we need to push a large stack frame and there are no callee-saved
5109 registers.
5110
5111 * arm.c (arm_debugger_arg_offset): An offset of 0 is also valid
5112 in ARM code if the frame pointer has been eliminated.
5113
5114 * arm.md (epilogue, *epilogue_insns, consttable_*, align_4): Renumber
5115 unspec_volatile arguments to avoid duplicates.
5116 (consttable_1, consttable_2): Fixes for big-endian mode.
5117
5118 * arm.md (all ARM-mode load insns): Add neg_pool_range attribute
5119 as appropriate.
5120
5121 Re-write constant pool code.
5122 * arm.c (minipool_node, minipool_fix): New types.
5123 (minifix): Delete type.
5124 (arm_add_minipool_constant): Delete.
5125 (arm_compute_minipool_offsets, arm_find_barrier,
5126 arm_find_minipool_constant, fixup_compare, sort_fixups): Likewise.
5127 (get_jump_table_size): Now returns HOST_WIDE_INT.
5128 (move_minipool_fix_forward_ref, add_minipool_forward_ref): New
5129 functions.
5130 (move_minipool_fix_backward_ref, add_minipool_backward_ref): Likewise.
5131 (assign_minipool_offsets, arm_print_value): Likewise.
5132 (dump_minipool): Rewrite.
5133 (arm_barrier_cost): New function.
5134 (create_fix_barrier): New function.
5135 (push_minipool_barrier): New function.
5136 (push_minipool_fix): Record additional information about the fixup
5137 required.
5138 (note_invalid_constants): Remove push for (UNSPEC 3). Don't
5139 check the mode of what needs fixing.
5140 (arm_reorg): Rewrite.
5141
5142 2000-03-08 Nick Clifton <nickc@cygnus.com>
5143
5144 * config/arm/arm.md (indirect_jump): Force constant addresses into
5145 a register.
5146
5147 2000-03-01 Bernd Schmidt <bernds@cygnus.co.uk>
5148
5149 * config/arm/arm.md: Add splitter to turn SF moves into SI moves.
5150
5151 2000-02-24 Nick Clifton <nickc@cygnus.com>
5152
5153 * config/arm/arm.c (thumb_expand_prologue): Make sure that stack
5154 adjust is word aligned.
5155 (thumb_expand_epilogue): Make sure that stack adjust is word
5156 aligned.
5157
5158 * config/arm/elf.h (ASM_FILE_START): Fix type of version string.
5159
5160 2000-02-24 Bernd Schmidt <bernds@cygnus.com>
5161
5162 * config/arm/arm.h (THUMB_GO_IF_LEGITIMATE_ADDRESS): Allow frame
5163 pointer relative addresses.
5164
5165 2000-02-10 Richard Earnshaw <rearnsha@arm.com>
5166
5167 * arm.c (find_barrier): Find the last barrier within the allowed
5168 range.
5169
5170 2000-02-09 Nick Clifton <nickc@cygnus.com>
5171
5172 * config/arm/arm-protos.h: Replace PROTO with PARAMS.
5173
5174 2000-02-09 Nick Clifton <nickc@cygnus.com>
5175
5176 * config/arm/linux-elf.h (FUNCTION_PROFILER): Rename to
5177 ARM_FUNCTION_PROFILER.
5178
5179 * config/arm/netbsd.h (FUNCTION_PROFILER): Rename to
5180 ARM_FUNCTION_PROFILER.
5181
5182 * config/arm/linux-oldld.h: Imported from mainline sources.
5183
5184 2000-02-07 Nick Clifton <nickc@cygnus.com>
5185
5186 * config/arm/lib1funcs.asm: Merge in thumb functions from
5187 lib1thumb.asm.
5188
5189 * config/arm/lib1thumb.asm: Delete.
5190
5191 2000-02-04 Nick Clifton <nickc@cygnus.com>
5192
5193 * config/arm/arm.c: Sychronised with current Red hat local
5194 sources.
5195 * config/arm/arm.h: Ditto.
5196 * config/arm/arm-protos.h: Ditto.
5197
5198 2000-02-02 Bernd Schmidt <bernds@cygnus.co.uk>
5199
5200 * arm.c (soft_df_operand): Reject SUBREGs containing a constant.
5201
5202 * arm.c (arm_gen_movstrqi): Generate halfword stores rather than two
5203 byte stores.
5204
5205 2000-02-02 Nick Clifton <nickc@cygnus.com>
5206
5207 * config/arm/thumb.c (thumb_exit): Additional fix for same bug.
5208
5209 * config/arm/arm.md (epilogue): Fix rtl checking abort because
5210 (return) was emited using an emit_insn() call.
5211
5212 2000-01-31 Nick Clifton <nickc@cygnus.com>
5213
5214 * config/arm/arm.c (output_thumb_prologue): Fix bug generating
5215 thumb stack frame.
5216 (thumb_exit): Move frame pointer back into hard frame pointer
5217 register if backtracing is being used.
5218
5219 2000-01-13 Richard Earnshaw (rearnsha@arm.com)
5220
5221 * Merge trunk code from tag merged-arm-thumb-backend-merge_20000113
5222 into branch.
5223
5224 1999-12-15 Bernd Schmidt <bernds@cygnus.co.uk>
5225
5226 * config/arm/arm.md (neg_pool_offset): Provide default for new
5227 attribute.
5228 (arm_movsi_insn): Add neg_pool_offset attribute.
5229 * config/arm/arm.c (arm_find_barrier): Replace arg FIX with an
5230 rtx for the insn that starts the scan and an unsigned long for its
5231 address. Add MIN_OFFSET and PINSERTED args. All callers changed.
5232 Change scan to ignore insns before MIN_OFFSET. Store size of inserted
5233 instructions in *PINSERTED.
5234 (struct minipool_fixup): Add MIN_ADDRESS elt.
5235 (sort_fixups): Compute it.
5236 (arm_reorg): Changes to support inserting pools before the insn to be
5237 fixed up.
5238
5239 1999-12-08 Bernd Schmidt <bernds@cygnus.co.uk>
5240
5241 * config/arm/elf.h (MULTILIB_DEFAULTS): Add "marm".
5242 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Add "marm".
5243 * config/arm/coff.h (MULTILIB_DEFAULTS): Add "marm".
5244
5245 Wed Nov 3 10:04:07 1999 Nick Clifton <nickc@cygnus.com>
5246
5247 * config/arm/semi.h (TARGET_VERSION): Do not define if already
5248 defined.
5249 (TARGET_DEFAULT): Do not define if already defined.
5250
5251 Tue Nov 2 10:37:25 1999 Nick Clifton <nickc@cygnus.com>
5252
5253 * config/arm/arm.md (anddi3): Allow disjoint source operands.
5254 (iordi3): Allow disjoint source operands.
5255 (xordi3): Allow disjoint source operands.
5256 (negdi2): Permit construction for ARM and Thumb.
5257 (arm_negdi2): Renamed version of old negdi2 pattern.
5258 (thumb_negdi2): New pattern: Only permit non-overlapping
5259 source and destination.
5260
5261 Fri Oct 29 18:52:38 1999 Nick Clifton <nickc@cygnus.com>
5262
5263 * config/arm/arm.c (thumb_expand_prologue): Emit a USE of the
5264 scratch low register so that it will not be deleted.
5265
5266 Fri Oct 29 15:23:48 1999 Nick Clifton <nickc@cygnus.com>
5267
5268 * config/arm/pe.h (ARM_PE): Define.
5269
5270 * config/arm/arm.c (arm_valid_machine_decl_attribute): Allow
5271 interfacearm attribute if this is a PE toolchain.
5272 (output_return_instruction): Do not emit anything if the function
5273 has the naked attribute set.
5274 (is_called_in_ARM_mode): If the function has the interfacearm
5275 attribute then return true.
5276 (thumb_expand_prologue): Do not generate a prologue for naked
5277 functions.
5278 (thumb_expand_epilogue): Do not generate an epilogie for a naked
5279 function.
5280 (output_thumb_prologue): Do not bother if the function is naked.
5281 Strip PE encoding from function name before emitting.
5282
5283 Thu Oct 28 11:05:13 1999 Richard Earnshaw <rearnsha@arm.com>
5284
5285 * arm.md (pic_load_addr): Fix constraints.
5286
5287 * arm.md (casesi_insn): Fix mis-applied patch.
5288
5289 * arm.md ("core" function unit): Add rules for single- and
5290 multi-cycle insns.
5291 (All TARGET_THUMB patterns): Add "type" attribute information
5292 where needed.
5293 * arm.c (arm_adjust_cost): Reduce the cost of a data dependency if
5294 the following insn is a CALL.
5295
5296 * arm.c (thumb_expand_epilogue): Add a use of the adjusted stack
5297 pointer.
5298 * arm.h (CONDITIONAL_REGISTER_USAGE): Nail down the
5299 ARM_HARD_FRAME_POINTER_REGNUM when TARGET_APCS_FRAME.
5300 (FRAME_POINTER_REQUIRED): Only check TARGET_APCS_FRAME if TARGET_ARM.
5301
5302 Wed Oct 27 14:40:48 1999 Nick Clifton <nickc@cygnus.com>
5303
5304 * config/arm/linux-gas.h: oops - this file was missed out when the
5305 branch was created...
5306
5307 Tue Oct 26 17:07:38 1999 Richard Earnshaw <rearnsha@arm.com>
5308
5309 * thumb.c: Deleted. Move contents to ...
5310 * arm.c: ... here.
5311 * t-arm-aout, t-arm-coff, t-arm-elf, t-linux, t-netbsd, t-semi: Remove
5312 rule for thumb.o
5313 * configure.in (arm*-*-*): Remove thumb.o from extra_objs list.
5314 * configure: Regen.
5315
5316 * arm-protos.h: Use RTX_CODE and tidy up long lines. Don't
5317 declare a prototype for asm_output_align();
5318
5319 * arm.c (thumb_condition_code): Delete.
5320 (arm_print_operand): Always use arm_condition_code array.
5321
5322 * arm.c (thumb_return_addr_rtx): Delete.
5323 (arm_save_machine_status, arm_restore_machine_status): Delete.
5324 (arm_init_machine_status, arm_mark_machine_status): New functions.
5325 (arm_init_expanders): Update accordingly.
5326 (arm_return_addr): Renamed from arm_return_addr_rtx. Rewrite.
5327 (thumb_expand_prologue): Delete code referencing thumb_return_addr_rtx.
5328 * arm.h (RETURN_ADDR_RTX): Call arm_return_addr().
5329
5330 Tue Oct 26 13:24:16 1999 Nick Clifton <nickc@cygnus.com>
5331
5332 * configure.in : Fix arm-*-aout target to use new t-arm-aout
5333 script.
5334 * config/arm/t-arm-aout: New file: Makefile script for arm-*-aout
5335 targets.
5336
5337 Tue Oct 26 11:27:12 1999 Nick Clifton <nickc@cygnus.com>
5338
5339 * config/arm/thumb.c (output_thumb_prologue): Fix bug creating
5340 stack backtrace structure.
5341
5342 * config/arm/arm-protos.h: Add prototypes for functions defined in
5343 arm/pe.h.
5344
5345 * config/arm/arm.c (arm_override_options): Fix selection of
5346 attributes of default processor.
5347
5348 * config/arm/coff.h: Delete needless #include.
5349
5350 * config/arm/pe.c: Delete unused code.
5351
5352 * config/arm/pe.h (CPP_DEFINES): Delete
5353 (SUBTARGET_CPP_SPEC): Define.
5354 (ASM_DECLARE_FUNCTION_NAME): Use ARM_DECLARE_FUNCTION_NAME.
5355
5356 * config/arm/t-pe: Add -DInhibit_libc to allof libgcc.a to build.
5357
5358 Mon Oct 25 15:42:09 1999 Richard Earnshaw (rearnsha@arm.com)
5359
5360 * arm.h (TARGET_APCS_FRAME): Renamed from TARGET_APCS -- all uses
5361 updated.
5362 (CAN_DEBUG_WITHOUT_FP): Define.
5363 (FIXED_REGISTERS): Make r11 call-saved.
5364 (CALL_USED_REGISTERS): Likewise.
5365 (CONDITIONAL_REGISTER_USAGE): Fix r11 if TARGET_APCS_FRAME.
5366 (FRAME_POINTER_REQUIRED): Correct logic for determining when a
5367 frame-pointer is required.
5368 (TARGET_DEFAULT): Make default setting include ARM_FLAG_APCS_FRAME.
5369 * arm.c (arm_override_options): Warn about -mno-apcs-frame and -g
5370 if the target normally needs a stack frame in non-leaf functions.
5371 (use_return_insn): Correct logic for determining when a return
5372 instruction can be used.
5373 (output_return_instruction): Handle the frame-pointer register as
5374 a normal register when not TARGET_APCS_FRAME.
5375 (arm_output_prologue): Likewise.
5376 (arm_output_epilogue): Likewise.
5377 (output_func_epilogue): Likewise.
5378 (arm_expand_prologue): Likewise.
5379 * netbsd.h semi.h (TARGET_DEFAULT): Add ARM_FLAG_APCS_FRAME.
5380
5381 * arm.c (use_return_insn): No need to check floating point regs if
5382 TARGET_SOFT_FLOAT.
5383 (arm_find_minipool_constant): Correct typo; use GET_CODE to get
5384 the code of value stored in the minipool array.
5385 (arm_add_minipool_constant): Likewise.
5386
5387 2000-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5388
5389 * basic-block.h (conflict_graph_enum_fn): K&R fix.
5390
5391 2000-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5392
5393 * tree.c (tree_expr_nonnegative_p): New function.
5394
5395 * tree.h (tree_expr_nonnegative_p): Declare.
5396
5397 * c-typeck.c (build_binary_op): Call `tree_expr_nonnegative_p' to
5398 elide some sign_compare warnings.
5399 (build_conditional_expr): Likewise.
5400
5401 Sat Apr 8 00:21:51 EDT 2000 John Wehle (john@feith.com)
5402
5403 * i386.md (ashrsi3, ashrhi3, ashrqi3): Fix typo.
5404
5405 * i386.md (floathisf2, floathidf2, floathixf2): New patterns.
5406 * i386.c (print_operand): Use the proper suffix for a 387 HImode
5407 operand. Abort if a 387 operand has an unsupported size.
5408
5409 2000-04-08 Neil Booth <NeilB@earthling.net>
5410
5411 * cppexp.c (parse_charconst): Null does not end character
5412 constants.
5413 * cppinit.c (ISTABLE): Null character handled as whitespace.
5414 * cpplex.c (null_warning): new function.
5415 (skip_string): Emit warning if nulls encountered.
5416 (_cpp_skip_hspace): Emit warning if nulls encountered.
5417 (_cpp_lex_token): Emit warning if nulls encountered. Drop
5418 them.
5419 * cpp.texi: Update.
5420
5421 2000-04-07 Richard Henderson <rth@cygnus.com>
5422
5423 * flow.c (loop_depth): Remove.
5424 (reg_next_use, cc0_live, mem_set_list): Replace with ...
5425 (struct propagate_block_info): New.
5426 (life_analysis): Don't allocate reg_next_use.
5427 (propagate_block_delete_insn): Break out of propagate_block.
5428 Use flow_delete_insn to unlink rather than use NOTE_INSN_DELETED.
5429 (propagate_block_delete_libcall): Likewise.
5430 (propagate_block): Create a propagate_block_info struct to pass
5431 to subroutines. Allocate one not two temporary regsets. Don't
5432 clobber memory for const calls. Look for clobbers in
5433 CALL_INSN_FUNCTION_USAGE.
5434 (mark_set_regs): Recognize COND_EXEC.
5435 (mark_set_reg): Break out of mark_set_1.
5436 (mark_used_reg): Break out of mark_used_regs.
5437 (mark_used_regs): Recognize COND_EXEC.
5438 (insn_dead_p): Use propagate_block_info struct.
5439 (libcall_dead_p, invalidate_mems_from_autoinc): Likewise.
5440 (find_auto_inc, try_pre_increment_1): Likewise.
5441 (print_rtl_with_bb): Dump regs live at end too.
5442 (count_reg_sets_1): Pass in loop_depth.
5443 (count_reg_sets, count_reg_references): Likewise.
5444 (recompute_reg_usage): Provide it.
5445
5446 2000-04-07 Richard Henderson <rth@cygnus.com>
5447
5448 * Makefile.in (conflict.o): Depend on $(RTL_H) and $(BASIC_BLOCK_H)
5449 not the raw files.
5450
5451 2000-04-07 Zack Weinberg <zack@wolery.cumb.org>
5452
5453 * cpplib.c (do_elif): Skip the rest of the line if we're
5454 not going to bother evaluating it.
5455 (skip_if_group): Clear pfile->only_seen_white. Reorder loop
5456 to avoid pointless calls to the lexer.
5457
5458 Fri Apr 7 11:50:54 2000 Jim Wilson <wilson@cygnus.com>
5459
5460 * config/ia64/ia64.c: Delete stdio.h and ctype.h includes.
5461
5462 2000-04-07 Jason Merrill <jason@casey.cygnus.com>
5463
5464 * calls.c (expand_call): emit_queue if we're trying a sibcall.
5465
5466 2000-04-07 Jakub Jelinek <jakub@redhat.com>
5467
5468 * config/sparc/t-linux64 (tcrtbeginS.o, tcrtendS.o): Remove.
5469
5470 2000-04-06 Geoff Keating <geoffk@cygnus.com>
5471
5472 * Makefile.in: Build crtbeginS and crtendS like crtbegin and
5473 crtend so they can be multilibbed.
5474 (STAGESTUFF): Remove s-crt and s-crtS.
5475
5476 2000-04-07 Richard Henderson <rth@cygnus.com>
5477
5478 * config/alpha/alpha.c (alpha_emit_conditional_move): Fail
5479 if we discover we need a pseudo and no_new_pseudos is true.
5480 * config/alpha/alpha.md (ne:DI insn): New.
5481 (trunctfsf2, sne): Emit NE instead of non-canonical LTU.
5482
5483 2000-04-07 Richard Henderson <rth@cygnus.com>
5484
5485 * rtl.def (COND_EXEC): New.
5486 * rtl.h (COND_EXEC_TEST, COND_EXEC_CODE): New.
5487 * tm.texi (MAX_CONDITIONAL_EXECUTE): Document.
5488
5489 * genconfig.c (have_cond_arith_flag): Remove.
5490 (have_cond_exec_flag): New.
5491 (walk_insn_part): Detect COND_EXEC, not arithmetic in IF_THEN_ELSE.
5492 (main): Print HAVE_conditional_execution.
5493
5494 * haifa-sched.c (haifa_classify_insn): Recognize COND_EXEC.
5495 (sched_analyze_insn, print_pattern): Likewise.
5496 * reload.c (find_equiv_reg): Likewise.
5497 * rtlanal.c (reg_referenced_p): Likewise.
5498 (note_stores, dead_or_set_regno_p): Likewise.
5499 (reg_overlap_mentioned_p): Rewrite to use a switch.
5500
5501 * ggc.h (struct rtx_def): Forward declare.
5502
5503 * print-rtl.c (debug_rtx_range): New.
5504 * rtl.h (debug_rtx_range): Declare.
5505
5506 * varray.h (VARRAY_ACTIVE_SIZE, VARRAY_POP_ALL): New.
5507
5508 * gcse.c (gcse_main): Don't rebuild the CFG here.
5509 (delete_null_pointer_checks): Likewise.
5510 * ssa.c (convert_to_ssa): Likewise.
5511 * toplev.c (rest_of_compilation): Do it here instead. Combine
5512 sequential calls to TIMEVAR. Consistently use `insns' instead of
5513 `get_insns()'. Always split insns after reload when optimizing.
5514
5515 * basic-block.h (merge_blocks_nomove): Declare.
5516 (tidy_fallthru_edge): Declare.
5517 * flow.c (merge_blocks_nomove): Document as merging into previous
5518 blocks. Remove cruft from between blocks; remove all edges out of A.
5519 (tidy_fallthru_edge): Export.
5520
5521 2000-04-06 Alex Samuel <samuel@codesourcery.com>
5522
5523 * ssa.c (compute_conservative_reg_partition): Declare with
5524 void arguments.
5525 * toplev.c (clean_dump_file): Remove previously-deleted function
5526 inadvertantly merged back in.
5527 * conflict.c (conflict_graph_add): Use a single call to
5528 htab_find_slot to look up and insert.
5529
5530 2000-04-06 Richard Henderson <rth@cygnus.com>
5531
5532 * genrecog.c (*): Rename _last_insn to last_insn.
5533 (make_insn_sequence): Set the position of the peephole2 C test
5534 to be at the last insn.
5535
5536 2000-04-06 Richard Henderson <rth@cygnus.com>
5537
5538 * flow.c (compute_flow_dominators): Free worklist.
5539
5540 2000-04-06 Michael Matz <matzmich@cs.tu-berlin.de>
5541
5542 * flow.c (compute_flow_dominators): Process blocks FIFO not LIFO.
5543
5544 2000-04-06 Alex Samuel <samuel@codesourcery.com>
5545
5546 * rtl.h (INSN_P): New macro.
5547 (successor_phi_fn): New typedef.
5548 (for_each_successor_phi): New prototype.
5549 (in_ssa_form): New variable.
5550 (PHI_NODE_P): Likewise.
5551 * flow.c (calculate_global_regs_live): Add to new_live_at_end from
5552 phi nodes in successors.
5553 (mark_used_regs): Add PHI case.
5554 (set_phi_alternative_reg): New function.
5555 (life_analysis): Assert that dead code elimination is not selected
5556 when in SSA form.
5557 * toplev.c (to_ssa_time): New variable.
5558 (from_ssa_time): Likewise.
5559 (compile_file): Zero to_ssa_time and from_ssa_time.
5560 Print time to convert to and from SSA.
5561 (rest_of_compilation): Time convert_to_ssa and convert_from_ssa.
5562 (print_time): Compute percent fraction as integer.
5563 * ssa.c (PHI_NODE_P): Moved to rtl.h.
5564 (convert_to_ssa): Check if we're already in SSA.
5565 Don't eliminate dead code in life_analysis.
5566 Rerun flow and life analysis at bottom.
5567 (eliminate_phi): Use canonical regnos when adding nodes.
5568 (mark_reg_in_phi): New function.
5569 (mark_phi_and_copy_regs): Likewise.
5570 (convert_from_ssa): Rerun life analysis at top.
5571 Use coalesced partition.
5572 Check for removing a phi node at the end of the block.
5573 (compute_coalesced_reg_partition): New function.
5574 (coalesce_regs_in_copies): Likewise.
5575 (coalesce_reg_in_phi): Likewise.
5576 (coalesce_regs_in_sucessor_phi_nodes): Likewise.
5577 (for_each_successor_phi): Likewise.
5578 (rename_context): New struct.
5579 (rename_block): Use a rename_context with rename_insn_1. When
5580 renaming sets of a subreg, emit a copy of the entire reg first.
5581 (rename_insn_1): Treat data as a rename_context *. Save current
5582 insn in set_data.
5583 (rename_set_data): Add field set_insn.
5584 * Makefile.in (HASHTAB_H): Move up in file.
5585 (OBSTACK_H): New macro.
5586 (collect2.o): Use OBSTACK_H in dependencies.
5587 (sdbout.o): Likewise.
5588 (emit-rtl.o): Likewise.
5589 (simplify-rtx.o): Likewise.
5590 (fix-header.o): Likewise.
5591 (OBJS): Add conflict.o.
5592 (conflict.o): New rule.
5593 * basic-block.h: Include partition.h.
5594 (conflict_graph): New typedef.
5595 (conflict_graph_enum_fn): Likewise.
5596 (conflict_graph_new): New prototype.
5597 (conflict_graph_delete): Likewise.
5598 (conflict_graph_add): Likewise.
5599 (conflict_graph_conflict_p): Likewise.
5600 (conflict_graph_enum): Likewise.
5601 (conflict_graph_merge_regs): Likewise.
5602 (conflict_graph_print): Likewise.
5603 (conflict_graph_compute): Likewise.
5604 * conflict.c: New file.
5605
5606 2000-04-06 Jason Merrill <jason@yorick.cygnus.com>
5607
5608 * tlink.c (read_repo_files): Don't look for .rpo info for
5609 linker flags.
5610
5611 Thu Apr 6 20:39:26 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5612
5613 * sh.h (STRUCT_VALUE, RETURN_IN_MEMORY): Define.
5614
5615 Thu Apr 6 19:34:08 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5616
5617 * config/sh/lib1funcs.asm (___udivsi3_i4):
5618 ( __SH4_SINGLE__ / __SH4_SINGLE_ONLY__ variant): value for fpscr
5619 only depends on FMOVD_WORKS.
5620
5621 Thu Apr 6 19:11:47 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5622
5623 * config/sh/lib1funcs.asm (___udivsi3_i4): When using fmovd,
5624 make double constant 8-byte aligned.
5625
5626 2000-04-06 Jakub Jelinek <jakub@redhat.com>
5627
5628 * config/sparc/sparc.md (movtf_insn_sp32, movtf_insn_vis_sp32,
5629 movtf_no_e_insn_sp32, movtf_insn_hq_sp64, movtf_insn_hq_vis_sp64,
5630 movtf_no_e_insn_sp64): Accept loading 0.0 into GENERAL_REGS.
5631 (movtf_insn_sp64, movtf_insn_vis_sp64): Likewise.
5632 Accept storing GENERAL_REGS into offsetable memory.
5633 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Don't allow
5634 building a TFmode constant other than 0.0L into GENERAL_REGS.
5635
5636 2000-04-06 Clinton Popetz <cpopetz@cygnus.com>
5637
5638 * regrename.c (regrename_optimize): Handle no REG_ALLOC_ORDER.
5639
5640 2000-04-06 Zack Weinberg <zack@wolery.cumb.org>
5641
5642 * cpphash.c (CPP_IS_MACRO_BUFFER, FORWARD, PEEKC): Delete.
5643 (macro_cleanup): No need to cast pbuf->macro.
5644 (collect_expansion): Use _cpp_get_define_token. Goto done if
5645 it returns VSPACE. Remove check for trailing space after
5646 CPP_COMMENT.
5647 (_cpp_create_definition): Don't diddle flags here. Return
5648 directly on error.
5649 (unsafe_chars): Handle c1 being EOF.
5650 (push_macro_expansion): Use unsafe_chars for both accidental-paste
5651 checks. Don't push the buffer till after we're done with
5652 them.
5653 * cpplex.c (PEEKBUF, GETBUF, FORWARDBUF): New.
5654 (PEEKN, FORWARD, GETC, PEEKC): Use them.
5655 (cpp_push_buffer): Don't set new->alimit. Set new->mark
5656 appropriately.
5657 (_cpp_parse_assertion): Don't NUL terminate.
5658 (_cpp_lex_token): Fix -traditional macro handling. Don't skip
5659 hspace before calling _cpp_parse_assertion. Remove all sets
5660 of only_seen_white. Treat '\f' as hspace. Don't do anything
5661 special with '\n' here.
5662 (maybe_macroexpand): Handle T_EMPTY hash entries without
5663 pushing a buffer at all.
5664 (cpp_get_token): Handle clearing only_seen_white here. Handle
5665 incrementing the line number here. Clear
5666 potential_control_macro as well as only_seen_white, if
5667 appropriate.
5668 (cpp_get_non_space_token): Don't eat CPP_POP tokens.
5669 (_cpp_get_define_token): New function, basically like
5670 _cpp_get_directive_token was but doesn't eat horizontal space.
5671 Don't do anything with only_seen_white here.
5672 (_cpp_get_directive_token): Just call _cpp_get_define_token
5673 repeatedly till it returns non-hspace.
5674
5675 * cpplib.c (PEEKN, FORWARD, GETC, PEEKC): Delete.
5676 (conditional_skip, skip_if_group): Return int.
5677 (DIRECTIVE_TABLE): Change origin of all conditional directives
5678 to "COND".
5679 (TRAD_DIRECT_P): New macro.
5680 (_cpp_handle_directive): Use _cpp_get_directive_token. Issue
5681 an error for a bogus directive, unless -lang-asm. Use
5682 TRAD_DIRECT_P. Loop calling handler functions till one returns
5683 zero.
5684 (get_macro_name): Don't diddle flags here.
5685 (do_define): Diddle flags here. Use _cpp_get_directive_token.
5686 Create T_EMPTY nodes for #define macro /* nothing */.
5687 (do_undef): Don't copy the name. Use _cpp_get_directive_token.
5688 Use hp->name when calling pass_thru_directive.
5689 (do_if, do_else, do_elif, do_ifdef, do_ifndef, conditional_skip):
5690 Return the result of conditional_skip and/or skip_if_group.
5691 Don't call _cpp_output_line_command.
5692 (consider_directive_while_skipping): Use _cpp_get_directive_token.
5693 Issue -Wtraditional warnings as appropriate. Don't complain
5694 about unrecognized directives. If we are to stop skipping,
5695 return the number of the directive that ended the skip.
5696 (skip_if_group): Use _cpp_get_directive_token. Turn off macro
5697 expansion and line commands while skipping. Return the result
5698 of consider_directive_while_skipping, if nonzero.
5699 (do_endif): Just set potential_control_macro here.
5700 (validate_else): Use _cpp_get_directive_token.
5701 (do_assert, do_unassert): Don't save pointers into the
5702 token_buffer across calls to the lexer. Use
5703 _cpp_get_directive_token.
5704
5705 * cpplib.h (cpp_buffer): Remove alimit and colno. Make mark a
5706 pointer, not an offset. Replace 'data', which was a generic
5707 pointer, with 'macro', which points to a struct hashnode.
5708 (cpp_reader): Add 'potential_control_macro' pointer.
5709 * cpphash.h (T_UNUSED): Replace with T_EMPTY.
5710 (CPP_BUF_GET, CPP_FORWARD): Delete.
5711 (CPP_IN_COLUMN_1, ADJACENT_TO_MARK): New macros.
5712 (CPP_IS_MACRO_BUFFER, CPP_SET_BUF_MARK, CPP_GOTO_BUF_MARK,
5713 ACTIVE_MARK_P): Update.
5714 (_cpp_get_define_token): New internal function.
5715 * cppfiles.c (read_include_file): Don't set fp->alimit or fp->colno.
5716
5717 2000-04-05 Benjamin Kosnik <bkoz@cygnus.com>
5718
5719 * configure.in: And here.
5720 * configure: Regenerate.
5721 * acconfig.h: Add ENABLE_STD_NAMESPACE to set flag_honor_std if
5722 --enable-libstdcxx-v3 is passed at configure time.
5723 * config.h.in: Regenerate.
5724
5725 2000-04-05 Mark Mitchell <mark@codesourcery.com>
5726
5727 * final.c (final): Use xcalloc to allocate line_note_exists.
5728 * function.c (free_after_compilation): Free the temp_slots.
5729 (assign_stack_temp_for_type): Use xmalloc to allocate temp_slots.
5730 (combine_temp_slot): Free temp_slots when they get combined.
5731 (purge_addressof): Fix typo in comment.
5732 * stmt.c (mark_goto_fixup): Mark the fixup itself.
5733 (expand_fixup): Allocate the fixup with ggc_alloc_obj.
5734
5735 * ggc.h: Include varray.h.
5736 (ggc_pending_trees): Declare.
5737 (ggc_mark_tree_children): Remove declaration.
5738 (ggc_mark_tree): Just push unmarked trees on ggc_pending_trees.
5739 * ggc-common.c (ggc_pending_trees): New variable.
5740 (ggc_mark_roots): Call ggc_mark_trees.
5741 (ggc_mark_tree_children): Rename to ggc_mark_trees. Process all
5742 the ggc_pending_trees.
5743 * Makefile.in (GGC_H): New variable. Use it throughout in place
5744 of ggc.h.
5745
5746 Thu Apr 6 00:30:50 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5747
5748 * sh.h (FUNCTION_ARG_PARTIAL_NREGS): Accomodate an unsigned
5749 GET_MODE_SIZE.
5750
5751 Wed Apr 5 23:17:10 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5752
5753 * sh.c (sh_insn_length_adjustment): New function.
5754 * sh-protos.h (sh_insn_length_adjustment): Declare.
5755 * sh.h (ADJUST_INSN_LENGTH): Use it.
5756
5757 Wed Apr 5 12:35:18 2000 Hans-Peter Nilsson <hp@axis.com>
5758
5759 * optabs.c (emit_libcall_block): Remove spurious REG_EQUAL notes
5760 from the insn where REG_RETVAL is added.
5761 (emit_no_conflict_block): Ditto.
5762
5763 * md.texi (Standard Names): Clarify when movX is needed.
5764
5765 * combine.c (simplify_comparison) [MINUS]: Do not replace
5766 all (op (minus A B) 0) with (op A B).
5767
5768 Wed Apr 5 18:03:31 2000 Toshiyasu Morita (toshi.morita@sega.com)
5769 J"orn Rennecke <amylaar@cygnus.co.uk>
5770
5771 * sh.md (block_lump_real_i4): Add missing clobber of T_REG
5772 (block_lump_real): Likewise.
5773
5774 2000-04-05 Chris Demetriou <cgd@netbsd.org>
5775
5776 * mips.h (MASK_DEBUG_A, MASK_DEBUG_B, MASK_DEBUG_C): Zero the
5777 remaining non-zero debugging masks.
5778
5779 Wed Apr 5 09:44:07 2000 Jeffrey A Law (law@cygnus.com)
5780
5781 * basic-block.h (verify_flow_info): Declare.
5782 (flow_loop_outside_edge_p): Declare.
5783 * flow.c (verify_flow_info): Remove declaration.
5784 (clear_log_links, flow_loop_outside_edge_p): Likewise.
5785
5786 Wed Apr 5 09:34:26 2000 Philippe De Muyter <phdm@macqel.be>
5787
5788 * m68k/m68k-protos.h (finalize_pic): Turn prototype off using `#if 0',
5789 not C++ comments.
5790
5791 2000-04-05 Jakub Jelinek <jakub@redhat.com>
5792
5793 * config/sparc/sparc.md (snedi_zero+1, neg_snedi_zero+1,
5794 snedi_zero_trunc+1, seqdi_zero+1, neg_seqdi_zero+1,
5795 seqdi_zero_trunc+1): Allow splits only if registers are
5796 different.
5797
5798 2000-04-04 Ulrich Drepper <drepper@cygnus.com>
5799
5800 * acconfig.h: Add HAVE_GAS_HIDDEN.
5801 * config.in: Regenerated.
5802 * configure.in: Add test for .hidden pseudo-op in gas.
5803 * configure: Regenerated.
5804 * crtstuff.c: Include auto-host.h.
5805 Emit additional .hidden pseudo-op for __dso_handle if the
5806 assembler knows about it.
5807
5808 2000-04-04 Philippe De Muyter <phdm@macqel.be>
5809
5810 * cpphash.c (_cpp_free_definition): Test argnames, not nargs >= 0,
5811 before freeing argnames.
5812 * cpplib.c (do_ifndef): Cast return value of xstrdup.
5813
5814 2000-04-05 Michael Meissner <meissner@redhat.com>
5815
5816 * config/rs6000/rs6000.c (print_operand): Patch from Jonathan
5817 Walton <jonboy@gordian.com> to make memory references with update
5818 work wtih -mregnames.
5819
5820 2000-04-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5821
5822 * regrename.c (regno_first_use_in): Wrap prototype in PARAMS.
5823 (regrename_optimize): Rename variables `def_uses' and
5824 `ext_basic_blocks' to avoid conflicts with similarly named
5825 typedefs in traditional C.
5826
5827 * calls.c (initialize_argument_information): Fix typo in previous
5828 change.
5829
5830 2000-04-04 Richard Henderson <rth@cygnus.com>
5831
5832 * regrename.c (consider_available): Test fixed_regs not
5833 PIC_OFFSET_TABLE_REGNUM.
5834
5835 2000-04-04 Geoff Keating <geoffk@cygnus.com>
5836
5837 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbegin,
5838 crtend.
5839 (CRTSTUFF_T_CFLAGS_S): Delete definition.
5840 * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Always use crtbegin.
5841 (ENDFILE_LINUX_SPEC): Always use crtend.
5842 * configure.in (powerpc-*-linux-gnulibc1): Don't define extra_parts.
5843 (powerpc-*-linux-gnu): Likewise.
5844 * configure: Regenerate.
5845
5846 * config/rs6000/eabi.h: Don't include sysv4.h.
5847 (MULTILIB_DEFAULTS): Don't define.
5848 * config/rs6000/eabiaix.h: Don't include eabi.h.
5849 * config/rs6000/eabile.h: Delete.
5850 * config/rs6000/eabilesim.h: Delete.
5851 * config/rs6000/eabisim.h: Don't include eabi.h.
5852 * config/rs6000/linux.h: Don't include sysv4.h.
5853 (JUMP_TABLES_IN_TEXT_SECTION): Don't redefine.
5854 (MULTILIB_DEFAULTS): Don't redefine.
5855 * config/rs6000/rtems.h: Don't include eabi.h.
5856 * config/rs6000/sol2.h: Don't include sysv4le.h.
5857 * config/rs6000/sysv4le.h: Don't include sysv4.h.
5858 * config/rs6000/t-ppc: Delete.
5859 * config/rs6000/t-ppcgas: Correct comment.
5860 * config/rs6000/t-ppcos: Correct comment. Don't build
5861 multilibs for -fPIC, rather use -fPIC -mstrict-align
5862 as default.
5863 * config/rs6000/t-ppc: Delete.
5864 * config/rs6000/vxppc.h: Don't include sysv4.h.
5865 * config/rs6000/vxppcle.h: Delete.
5866 * configure.in: Use multiple header files for p2pc ELF targets
5867 powerpc-eabiaix, powerpc-eabisim, powerpc-rtems, powerpcle-eabi,
5868 powerpcle-eabisim, powerpc-elf, powerpcle-elf, powerpc-linux-gnu,
5869 powerpc-linux-gnulibc1, powerpc-sysv, powerpcle-sysv,
5870 powerpc-vxworks, powerpcle-vxworks. Assume GAS functionality is
5871 always available for these platforms.
5872
5873 2000-04-04 Richard Henderson <rth@cygnus.com>
5874
5875 * calls.c (try_to_integrate): Initialize reg_parm_stack_space.
5876
5877 2000-04-04 Stan Cox <scox@cygnus.com>
5878
5879 * Makefile.in: Add rules for regrename.o
5880 * regrename.c: New file.
5881 * rtl.h (regrename_optimize): Add prototype.
5882 * toplev.c (rename_registers_dump, flag_rename_registers): New variables
5883 (compile_file, decode_d_option): Add support for -frename-registers.
5884 (rest_of_compilation): Call regrename_optimize.
5885 * config/ia64/ia64.h (HARD_REGNO_RENAME_OK, RENAME_EXTENDED_BLOCKS):
5886 New macros.
5887
5888 2000-04-04 Martin v. Löwis <loewis@informatik.hu-berlin.de>
5889
5890 * Makefile (gccbug): New target.
5891 (doc): Depend on it.
5892 * gcc.texi (Bugs): Link subnodes.
5893 (gccbug): New node.
5894 * gccbug.in (CATEGORIES): Remove gc, host, profiling, libgcc.
5895 Document severities, priorities, and classes in bug form.
5896
5897 2000-04-04 Zack Weinberg <zack@wolery.cumb.org>
5898
5899 * cpplex.c (trigraph_map, speccase): Combine into single
5900 table, chartab.
5901 (NORMAL, NONTRI): New macros.
5902 (_cpp_read_and_prescan): Change to use unified table. Use
5903 is_hspace to test for whitespace.
5904
5905 * dbxout.c (CONTIN): If it doesn't have to do anything, give it a
5906 definition that doesn't provoke the "empty body in an
5907 if-statement" warning.
5908
5909 2000-04-04 Clinton Popetz <cpopetz@cygnus.com>
5910
5911 * builtins.c (expand_builtin_strlen): Force the source to
5912 be a memory address.
5913
5914 2000-04-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5915
5916 * cpplib.c (D): Adjust to call CONCAT2 macro without whitespace.
5917
5918 Tue Apr 4 19:17:20 MET DST 2000 Jan Hubicka <jh@suse.cz>
5919
5920 * calls.c (ECF_MALLOC, ECF_MAY_BE_ALLOCA, ECF_RETURNS_TWICE,
5921 ECF_LONGJMP, ECF_FORK_OR_EXEC): New constants.
5922 (ECF_IS_CONST): Rename to ECF_CONST.
5923 (special_function_p): Make static, change interface.
5924 (flags_from_decl_or_type, try_to_integrate): Break out from ...
5925 (expand_call) ... here; convert number of variables to flags.
5926 (emit_library_call_vlue_1): Likewise.
5927 (setjmp_call_p): New function.
5928 (initialize_argument_information): Accepts flags as argument;
5929 return flags.
5930 (precompute_arguments): Likewise.
5931 * tree.h (special_function_p): Remove.
5932 (setjmp_call_p): Add prototype.
5933
5934 2000-04-04 Jakub Jelinek <jakub@redhat.com>
5935
5936 * config/sparc/sparc.h (RTX_OK_FOR_OFFSET_P): Leave minor margin
5937 so that addresses are offsetable by up to 16 bytes.
5938 (GO_IF_LEGITIMATE_ADDRESS): Don't allow REG+REG addresses for
5939 non-optimizing TARGET_ARCH32 in DF or DI modes because it is not
5940 offsetable.
5941
5942 * config/sparc/sparc.md (movdi_insn_sp64_novis): New pattern.
5943 (movdi_insn_sp64_vis): Renamed from movdi_insn_sp64.
5944 (movsf): Don't force any constant to memory if target is integer
5945 hard register.
5946 Move fp_zero_operand check below the const0_rtx check.
5947 (movtf): Likewise. Also allow fp_zero_operand for stores into
5948 memory.
5949 (movdf): Likewise. Also allow fp_zero_operand for stores into
5950 memory and into integer hard registers.
5951 (clear_df, clear_dfp, movdf_const_intreg_sp32,
5952 movdf_const_intreg_sp64): Remove.
5953 (movdf_insn_sp32, movdf_no_e_insn_sp32): Redo constraints and
5954 conditions.
5955 (movdf_no_e_insn_v9_sp32): New pattern.
5956 (movdf_insn_v9only): Remove.
5957 (movdf_insn_v9only_novis, movdf_insn_v9only_vis): New patterns.
5958 (movdf_insn_sp64): Remove.
5959 (movdf_insn_sp64_novis, movdf_insn_sp64_vis): New patterns.
5960 (movdf_no_e_insn_sp64): Allow storing 0.0 into memory.
5961 (following splits): Rewrite conditions. Add two new splits
5962 for storing 0.0 into memory and registers.
5963 (clear_tf, clear_tf+1, clear_tfp, clear_tfp+1): Remove.
5964 (movtf_insn_sp32): Redo constraints and conditions.
5965 (movtf_insn_vis_sp32): New pattern.
5966 (movtf_no_e_insn_sp32): Redo constraints and conditions.
5967 (movtf_insn_hq_sp64): Likewise.
5968 (movtf_insn_hq_vis_sp64): New pattern.
5969 (movtf_insn_sp64): Redo constraints and conditions.
5970 (movtf_insn_vis_sp64): New pattern.
5971 (movtf_no_e_insn_sp64): Redo constraints and conditions.
5972 (movtf_no_e_insn_sp64+1): New split for storing 0.0L into registers
5973 or memory.
5974 * config/sparc/sparc.c (sparc_override_options): Assume v9 if either
5975 -mvis or -m64 to take down the number of various reload patterns.
5976
5977 Tue Apr 4 00:41:53 2000 Jeffrey A Law (law@cygnus.com)
5978
5979 * pa/pa-64.h: New file.
5980 * pa/pa64-regs.h: New file.
5981 * pa/pa64-start.h: New file.
5982 * pa/t-pa64: New file.
5983 * pa/xm-pa64hpux.h: New file.
5984
5985 2000-04-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5986
5987 * sparc.c (output_restore_regs): Prototype.
5988 (sparc_emit_float_lib_cmp): Constification.
5989
5990 * emit-rtl.c (const_int_htab_hash, const_int_htab_eq): Likewise.
5991
5992 * reload1.c (reload_cse_delete_noop_set, reload_cse_simplify):
5993 Prototype.
5994
5995 * simplify-rtx.c (entry_and_rtx_equal_p): Constification.
5996 (get_value_hash, hash_rtx): Likewise.
5997
5998 * ssa.c (compute_conservative_reg_partition): Prototype.
5999
6000 * tree.c (mark_hash_entry): Prototype.
6001
6002 2000-04-03 Zack Weinberg <zack@wolery.cumb.org>
6003
6004 * bb-reorder.c (verify_insn_chain): #ifdef out unless ENABLE_CHECKING.
6005 * i386.h (FUNCTION_ARG_REGNO_P): Remove unnecessary test for N >= 0.
6006 * i386.md (call_value, call_value_pop): Remove unused variable 'addr'.
6007
6008 * gcc.c (C specs): Pass -fno-show-column to the preprocessor.
6009 * objc/lang-specs.h: Likewise.
6010
6011 2000-04-03 Neil Booth <NeilB@earthling.net>
6012
6013 * cppexp.c: wrap long lines. New macros CPP_ICE, SYNTAX_ERROR
6014 and SYNTAX_ERROR2. Replace `' in messages with ''.
6015 (op_to_str): Make re-entrant.
6016 (_cpp_parse_expr): Implement new error macros. Use | rather
6017 than || to logically or 2 boolean integers. Simply expression
6018 checking we have a left operand iff needed.
6019
6020 2000-04-03 Nick Clifton <nickc@cygnus.com>
6021
6022 * Makefile.in (diagnostic.o): Depend upon diagnostic.c
6023
6024 2000-04-03 Philip Blundell <philb@gnu.org>
6025
6026 * config/arm/linux-elf.h (SUBTARGET_EXTRA_LINK_SPEC): Fix typos.
6027
6028 2000-04-03 Felix Lee <flee@cygnus.com>
6029
6030 * fixinc/server.c (find_shell): New function. Avoid $SHELL.
6031 (run_shell): Use it.
6032
6033 2000-04-03 Jonathan Larmour <jlarmour@redhat.co.uk>
6034
6035 * Makefile.in (stmp-int-hdrs): Make include subdir here...
6036 (stmp-fixproto): ...rather than here.
6037
6038 Mon Apr 3 00:50:06 2000 Jason Eckhardt <jle@cygnus.com>
6039
6040 * pa.c (print_operand): Compute 'base' only inside the code paths
6041 that use it.
6042
6043 2000-04-03 Geoffrey Keating <geoffk@cygnus.com>
6044
6045 * stor-layout.c (byte_from_pos): Use TRUNC_DIV_EXPR rather than
6046 CEIL_DIV_EXPR.
6047
6048 2000-04-03 Philipp Thomas <pthomas@suse.de>
6049
6050 * i386.h (TARGET_SWITCHES): Remove bogus empty strings, fix typo.
6051
6052 Mon Apr 3 00:02:59 2000 Brad Lucier <lucier@math.purdue.edu>
6053
6054 * Makefile.in (alias.o): Depend on $(TREE_H).
6055
6056 2000-04-02 Zack Weinberg <zack@wolery.cumb.org>
6057
6058 * cppinit.c (cpp_start_read): Turn off -Wtraditional if
6059 processing C++.
6060 * cpplib.c (_cpp_handle_directive): Improve warnings for
6061 traditional C and indented directives.
6062
6063 * enquire.c, gsyslimits.h, limity.h, config/convex/fixinc.convex,
6064 fixinc/fixinc.irix, fixinc/fixinc.sco, fixinc/fixinc.wrap,
6065 fixinc/inclhack.def: Indent the # of #include_next one space.
6066 * cp/rtti.c: Un-indent #if and #endif.
6067
6068 * cppexp.c (_cpp_parse_expr): If lex returns '#', it's a
6069 syntax error, but an error has already been printed.
6070 * cpplex.c (_cpp_parse_assertion): Give a more specific error
6071 message when called with nothing remaining on the line.
6072 (_cpp_lex_token): If _cpp_parse_assertion fails, return an
6073 OTHER token, not an ASSERTION.
6074 * cpplib.c (do_assert): When we create a 'base' node, clear
6075 its aschain pointer.
6076
6077 2000-04-02 Neil Booth <NeilB@earthling.net>
6078
6079 * cppexp.c: New typedef op_t. struct operation and struct
6080 token updated to use it.
6081 (op_to_str): New function.
6082 (_cpp_parse_expr): Error messages modified to use op_to_str.
6083
6084 2000-04-02 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
6085
6086 * config/c4x/c4x.c (c4x_function_arg): Check for void_type_node
6087 before checking MUST_PASS_IN_STACK.
6088
6089 2000-04-02 Neil Booth <NeilB@earthling.net>
6090
6091 * cppexp.c: New FINISHED dummy token. Combine operator initial
6092 flags and initial priority into a single constant. New
6093 EQUALITY macro. New operator flag SHORT_CIRCUIT.
6094 (_parse_cpp_expr): Implement new constants. Take left operand
6095 checks out of reduction loop. Handle SHORT_CIRCUIT. End of
6096 parse indicated by reducing FINISHED token. Remove new lines
6097 from cpp_error messages.
6098
6099 2000-04-01 Mark Mitchell <mark@codesourcery.com>
6100
6101 * emit-rtl.c (gen_rtx_CONST_INT): Create cached CONST_INTs on the
6102 permanent obstack.
6103
6104 2000-04-01 Zack Weinberg <zack@wolery.cumb.org>
6105
6106 * cpplib.c: Include symcat.h. Add 'origin' field to struct
6107 directive. Add origin values to DIRECTIVE_TABLE. Generate
6108 the strings and function names on the fly. Take the #sccs
6109 entry out of the table if SCCS_DIRECTIVE is not defined.
6110 (_cpp_handle_directive): Decide if the # was at the beginning
6111 of the line here. Issue -pedantic warnings for extended
6112 directives here. Warn about K+R directives with the #
6113 indented, and C89/extended directives with the # not indented,
6114 here.
6115 (do_import, do_include_next, do_warning, do_ident, do_sccs,
6116 do_assert, do_unassert): Don't issue pedantic warning here.
6117
6118 * cpphash.h: Add CPP_WTRADITIONAL macro.
6119 * cpplib.h (struct cpp_options): Rename warn_stringify to
6120 warn_traditional; update comments.
6121 * cppinit.c (handle_option): Set warn_traditional not
6122 warn_stringify.
6123 * cpphash.c: Replace CPP_OPTION (pfile, warn_stringify) with
6124 CPP_WTRADITIONAL (pfile).
6125 * cpplex.c (_cpp_lex_token): Don't decide if directives should
6126 be ignored in -traditional mode here.
6127
6128 * cpplex.c: Copy ISTABLE macros from cppinit.c, and adapt them
6129 to initialize speccase[] and trigraph_map[]. Delete all
6130 references to pfile->input_speccase. Always treat '?' as a
6131 special character. Remove table-initialization code from
6132 _cpp_init_input_buffer.
6133
6134 * cpplib.h (struct cpp_reader): Remove input_speccase field.
6135 * cppinit.c (cpp_cleanup): Don't free input_speccase.
6136
6137 2000-04-01 Richard Henderson <rth@cygnus.com>
6138
6139 * Makefile.in (STAGESTUFF): Wildcard all debugging dumps at once.
6140 (mostlyclean): Likewise.
6141
6142 * toplev.c (rtl_dump, jump_opt_dump, etc): Remove.
6143 (struct dump_file_info, enum dump_file_index, dump_file): New.
6144 (open_dump_file): Take a dump_file_index not a suffix, and a decl
6145 not a string. Clean out file if we havn't yet done so. Do nothing
6146 if the dump isn't enabled.
6147 (close_dump_file): Do nothing if the dump isn't open. Dump
6148 graph data if requested.
6149 (dump_rtl, clean_dump_file): Remove.
6150 (compile_file): Don't clean the dump files. Only finalize .bp dump
6151 if flag_test_coverage or flag_branch_probabilities. Only finalize
6152 .combine dump if optimizing. Iterate over dump_file to finalize the
6153 graph dumps.
6154 (rest_of_compilation): Update for open_dump_file/close_dump_file.
6155 Convert all uses of dump_rtl.
6156 (decode_d_option): Iterate over dump_file to implement 'a' and to
6157 locate pass-specific dumps.
6158
6159 2000-04-01 Neil Booth <NeilB@earthling.net>
6160
6161 * cppexp.c: Redefine priority constants.
6162 (_cpp_parse_expr): Replace left and right priority scheme with
6163 single priority logic. Move LOGICAL to same place as COMPARE.
6164 Remove bogus check for multiple unary +/- operators.
6165
6166 2000-04-01 Neil Booth <NeilB@earthling.net>
6167
6168 * cppexp.c: (_cpp_parse_expr): Numerical constants are pushed
6169 within the switch statement. Binary operations break out of
6170 the switch naturally. '(' tokens handled by forcing
6171 immediate shift. ')' handled by forcing immediate reduce to
6172 the previous '('. New error messages.
6173
6174 2000-03-31 Geoff Keating <geoffk@cygnus.com>
6175
6176 * config/rs6000/rs6000.c (print_operand): Don't use %l for 'low
6177 part', it's already in use. Use %K instead. Add a return at the
6178 end of what is now %K.
6179 * config/rs6000/rs6000.md (elf_low): Use %K instead of %l.
6180
6181 Sat Apr 1 02:05:29 MET DST 2000 Jan Hubicka <jh@suse.cz>
6182
6183 * builtins.c (expand_builtin_apply): Pass proper parameters to
6184 allocate_dynamic_stack_space.
6185 * calls.c (emit_call_1): Do not adjust stack pointer for SIB,
6186 update stack_pointer_delta; do not update arg_size_so_far.
6187 (compute_argument_block_size): Use stack_delta instead of
6188 stack_pointer_pending and arg_size_so_far.
6189 (expand_call): Add sanity checking for stack_pointer_delta;
6190 save and restore stack_pointer_delta for SIB, use
6191 stack_pointer_delta for alignment; do not update arg_space_so_far.
6192 (emit_library_call_value): Use stack_pointer_delta for alignment.
6193 (store_one_arg): Do not update arg_space_so_far.
6194 * explow.c (adjust_stack, anti_adjust_stack): Update
6195 stack_pointer_delta.
6196 (allocate_dynamic_stack_space): Add sanity checking for
6197 stack_pointer_delta.
6198 * expr.c (init_expr, clear_pending_stack_adjust): Clear
6199 stack_pointer_delta.
6200 (emit_push_insn): Update stack_pointer_delta.
6201 * function.h (struct expr_status): Add x_stack_pointer_delta;
6202 remove x_arg_space_so_far.
6203 (arg_space_so_far): Remove.
6204 (stack_pointer_delta): New macro.
6205
6206 2000-03-31 Zack Weinberg <zack@wolery.cumb.org>
6207
6208 * cpplib.h: Merge struct cpp_options into struct cpp_reader.
6209 Reorder struct cpp_options and struct cpp_reader for better
6210 packing. Replace CPP_OPTIONS macro with CPP_OPTION which
6211 takes two args. Change all 'char' flags to 'unsigned char'.
6212 Move show_column flag into struct cpp_options. Don't
6213 prototype cpp_options_init.
6214 * cpphash.h, cpperror.c, cppexp.c, cppfiles.c, cpphash.c,
6215 cppinit.c, cpplex.c, cpplib.c:
6216 Replace CPP_OPTIONS (pfile)->whatever with
6217 CPP_OPTION (pfile, whatever), and likewise for
6218 opts = CPP_OPTIONS (pfile); ... opts->whatever;
6219
6220 * cppinit.c (merge_include_chains): Take a cpp_reader *.
6221 Extract CPP_OPTION (pfile, pending) and work with that
6222 directly.
6223 (cpp_options_init): Delete.
6224 (cpp_reader_init): Turn on on-by-default options here.
6225 Allocate the pending structure here.
6226 (cl_options, enum opt_code): Define these from the same table,
6227 kept in a large macro. Add -fshow-column and -fno-show-column
6228 options.
6229
6230 * cpperror.c (v_message): If show_column is off, don't print
6231 the column number.
6232
6233 * cppmain.c: Update for new interface.
6234 * fix-header.c: Likewise.
6235
6236 2000-03-30 Geoff Keating <geoffk@cygnus.com>
6237
6238 * config/rs6000/t-aix43 (AR_FLAGS_FOR_TARGET): Adjust for new
6239 definition.
6240 * Makefile.in (AR_FLAGS_FOR_TARGET): Is now the flags that
6241 are passed to any invocation of AR_FOR_TARGET.
6242 (AR_CREATE_FOR_TARGET): New macro.
6243 (AR_EXTRACT_FOR_TARGET): New macro.
6244 (ORDINARY_FLAGS_TO_PASS): Add AR_CREATE_FOR_TARGET,
6245 AR_EXTRACT_FOR_TARGET.
6246 (many places): Use AR_CREATE_FOR_TARGET, AR_EXTRACT_FOR_TARGET
6247 in place of `$(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET)' and
6248 `$(AR_FOR_TARGET) x'. Pass AR_CREATE_FOR_TARGET and
6249 AR_EXTRACT_FOR_TARGET to sub-makes.
6250
6251 2000-03-31 Neil Booth <NeilB@earthling.net>
6252
6253 * cppexp.c: Delete SKIP_OPERAND. Correct priority
6254 PAREN_INNER_PRIO.
6255 (_cpp_parse_expr): Check for multiple unary +/- operators.
6256 Correct priorities of ':' and '?'. Treat ')' as having a
6257 value. Ensure conditional expression is not void.
6258
6259 2000-03-31 Mark Mitchell <mark@codesourcery.com>
6260
6261 * alias.c (canon_rtx): Make it global.
6262 (rtx_equal_for_memref_p): CONST_INT equality is now pointer
6263 equality.
6264 * cse.c (struct table_elt): Add canon_exp.
6265 (insert): Clear it.
6266 (invalidate): Canonicalize expressions only once.
6267 * rtl.h (canon_rtx): Declare.
6268
6269 2000-03-30 Mark Mitchell <mark@codesourcery.com>
6270
6271 * Makefile.in (emit-rtl.o): Depend on HASHTAB_H.
6272 * alias.c (reg_known_value): Add comments.
6273 (init_alias_analysis): Likewise.
6274 * cse.c (exp_equiv_p): CONST_INTs are equal iff they have the same
6275 address.
6276 (cse_basic_block): Fix typo in comment.
6277 * emit-rtl.c: Include hashtab.h.
6278 (const_int_htab): New variable.
6279 (const_int_htab_hash): New function.
6280 (const_int_htab_eq): Likewise.
6281 (rtx_htab_mark_1): Likewise.
6282 (rtx_htab_mark): Likewise.
6283 (gen_rtx_CONST_INT): Cache all CONST_INTs.
6284 (unshare_all_rtx): Fix formatting.
6285 (init_emit_once): Initialize const_int_htab.
6286 * rtl.c (rtx_equal_p): CONST_INTs are equal iff they have the same
6287 address.
6288 * rtl.texi: Document the fact that all CONST_INTs with the same
6289 value are shared.
6290
6291 2000-03-30 Richard Henderson <rth@cygnus.com>
6292
6293 * alpha.h (FUNCTION_BOUNDARY): Reduce to 128 bits.
6294
6295 2000-03-30 Zack Weinberg <zack@wolery.cumb.org>
6296
6297 * configure.in: Comment out --enable-c-cpplib stanza.
6298 * configure: Regenerate.
6299
6300 Thu Mar 30 06:32:51 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6301
6302 * expr.c (store_constructor): Properly compute displacement and
6303 alignment when offset is variable.
6304
6305 * expmed.c (store_bit_field, store_fixed_bit_field): Fix more
6306 cases of alignment in bytes.
6307
6308 Thu Mar 30 13:30:40 2000 Jeffrey A Law (law@cygnus.com)
6309
6310 * c-parse.in (cast_expr): Move change from March 21 into c-parse.in
6311 since it is used to generate c-parse.y.
6312 * objc-parse.c, objc-parse.y: Regenerated.
6313
6314 * function.c (expand_function_end): Pass alignment argument to
6315 emit_block_move in bits, not bytes.
6316
6317 Thu Mar 30 06:32:51 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6318
6319 * expr.c (move_by_pieces_ninsns): Fix one more missing align
6320 correction.
6321
6322 * expmed.c (store_fixed_bit_field): STRUCT_ALIGN is in bits.
6323
6324 * calls.c (expand_call): Pass bit alignment to mark_reg_pointer.
6325 * explow.c (memory_address, allocate_dynamic_stack_space): Likewise.
6326 * function.c (assign_parms): Likewise.
6327 * integrate.c (expand_inline_function): Likewise.
6328 * stmt.c (expand_decl): Likewise.
6329 (copy_rtx_and_substitute): Likewise.
6330 * expr.c (expand_expr, expand_expr_unaligned): Likewise.
6331 (clear_by_pieces): Fix error in last change.
6332 * emit-rtl.c (init_emit): Set known registers alignment in bits.
6333 * function.h (regno_pointer_align): Now unsigned.
6334 * config/arm/arm.c (alignable_memory_operand): REGNO_POINTER_ALIGN
6335 is in bits.
6336 * config/i386/i386.c (aligned_operand): Likewise.
6337 * config/sparc/sparc.c (mem_min_alignment): Likewise.
6338 * config/alpha/alpha.c (aligned_memory_operand): Likewise.
6339 (unaligned_memory_operand): Likewise.
6340 (alpha_expand_block_move, alpha_expand_block_clear): Likewise.
6341 Also make alignments and sizes unsigned and some whitespace cleanup.
6342 (alpha_va_start): Do nothing if VALIST's type is error_mark_node.
6343
6344 * builtins.c (get_pointer_alignment): Use host_integerp & tree_low_cst.
6345 (expand_builtin_apply): Pass alignment to emit_block_move in bits.
6346 (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
6347 (expand_builtin_memset): Likewise, but to clear_storage.
6348 * calls.c (save_fixed_argument_area): Likewise, to move_by_pieces.
6349 (restore_fixed_argument_area): Likewise.
6350 (store_unaligned_arguments_into_pseudos): Likewise, to store_bit_field.
6351 (load_register_parameters): Likewise, to emit_group_load.
6352 (expand_call): Likewise, to emit_group_store and emit_block_move.
6353 (emit_library_call_value_1): Likewise, to emit_block_move.
6354 (store_one_arg): Likewise, and to emit_push_insn.
6355 * expmed.c (extract_bit_field): Alignment is in bits, not bytes.
6356 (extract_fixed_bit_field, extract_split_bit_field): Likewise.
6357 * expr.c (move_by_pieces, move_by_pieces_ninsns): Likewise.
6358 (emit_block_move, emit_group_load, emit_group_store): Likewise.
6359 (clear_by_pieces, clear_storage, emit_push_insn): Likewise.
6360 (expand_assigment, store_expr, store_constructor_field): Likewise.
6361 (expand_expr_unaligned, do_jump, do_compare_and_jump): Likewise.
6362 (store_constructor, store_field, get_inner_reference): Likewise.
6363 Use host_integerp and tree_low_cst; sizes and positions HOST_WIDE_INT.
6364 (expand_expr, case COMPONENT_REF): Likewise.
6365 (copy_blkmode_from_regs): Use UNSIGNED_HOST_WIDE_INT for sizes
6366 and positions; reindent code.
6367 * expr.h (emit_cmp_insn, emit_cmp_and_jump_insns): Alignment unsigned.
6368 * function.c (purge_addressof_1): Pass bit align to store_bit_field.
6369 (assign_parms): Likewise to emit_group_store.
6370 * optabs.c (prepare_cmp_insn): Alignment is in bits.
6371 (emit_cmp_and_jump_insns, emit_cmp_insn): Likewise, and also unsigned.
6372 * stmt.c (expand_value_return): Pass align in bits to emit_group_load.
6373 (expand_return): Likewise to {extract,store}_bit_field.
6374 * stor-layout.c (get_mode_alignment): Minor cleanup.
6375 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Align is in bits.
6376 * config/sh/sh.h (MOVE_BY_PIECES_P): Likewise.
6377
6378 2000-03-29 Nick Clifton <nickc@cygnus.com>
6379
6380 * config/arm/arm.h: Undo effects of previous delta:
6381 (ASM_SPEC): Do not define.
6382 (SUBTARGET_EXTRA_ASM_SPEC): Do not define.
6383
6384 * config/arm/linux-elf.h: (SUBTARGET_EXTRA_ASM_SPEC) Fix
6385 typo.
6386
6387 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
6388
6389 * cppinit.c (cpp_start_read): Call initialize_dependency_output
6390 only after reading in the primary source file.
6391
6392 2000-03-29 Geoff Keating <geoffk@cygnus.com>
6393
6394 * c-common.c (c_common_nodes_and_builtins): The first parameter to
6395 __builtin_va_start and __builtin_va_copy is now either a 'va_list'
6396 or a reference to a va_list.
6397 * builtins.c (stabilize_va_list): Simplify now we don't have to
6398 work around C array address decay.
6399 * c-typeck.c (convert_for_assignment): Handle assignment to
6400 a reference parameter by taking the address of the RHS.
6401 * ginclude/stdarg.h (va_start): Don't take address of first parameter.
6402 (va_copy): Likewise.
6403 (__va_copy): Likewise.
6404 * ginclude/varargs.h (va_start): Likewise.
6405 (__va_copy): Likewise.
6406
6407 Wed Mar 29 15:44:53 2000 Jeffrey A Law (law@cygnus.com)
6408
6409 * i386/djgpp.h: Remove extraneous "+".
6410
6411 * stmt.c (stmt_loop_nest_empty): Fix thinko in last change.
6412
6413 * calls.c (expand_call): Fix typo in last change.
6414
6415 2000-03-29 Jason Merrill <jason@casey.cygnus.com>
6416
6417 * tree.c (unsave_expr_1): Don't mess with a TARGET_EXPR that hasn't
6418 been expanded.
6419
6420 Wed Mar 29 15:39:10 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6421
6422 * stor-layout.c (bit_from_pos, byte_from_pos): New functions.
6423 (pos_from_byte, pos_from_bit, normalize_offset): Likewise.
6424 (normalize_rli, rli_size_so_far, rli_size_unit_so_far): Use them.
6425 * tree.c (bit_position, byte_position): Likewise.
6426 * tree.h: Declare new functions.
6427
6428 2000-03-29 Nick Clifton <nickc@cygnus.com>
6429
6430 * config/arm/arm.c: Minor formatting changes/
6431 * config/arm/arm.h (SUBTARGET_EXTRA_ASM_SPEC): Define if not
6432 already defined.
6433 (ASM_SPEC): Define if not already defined.
6434
6435 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
6436
6437 * cppfiles.c (cpp_read_file): Don't pass zero-length string to
6438 _cpp_calc_hash.
6439
6440 2000-03-29 Jakub Jelinek <jakub@redhat.com>
6441
6442 * dwarf2out.c (gen_enumeration_type_die): If enum has a negative
6443 value, don't output it as unsigned.
6444
6445 Wed Mar 29 10:53:49 2000 Jeffrey A Law (law@cygnus.com)
6446
6447 * stmt.c (stmt_loop_nest_empty): Allow cfun->stmt to be NULL.
6448
6449 2000-03-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6450
6451 * c-common.c (c_common_nodes_and_builtins): Don't special case
6452 cplus_mode when declaring builtin bzero/bcmp, always avoid
6453 prototype arguments.
6454
6455 2000-03-29 Bruce Korb <bkorb@gnu.org>
6456
6457 * fixinc/mkfixinc.sh: Initially set the variable "fixincludes"
6458 to a non-file
6459
6460 Wed Mar 29 15:08:01 MET DST 2000 Jan Hubicka <jh@suse.cz>
6461
6462 Convert ACCUMULATE_OUTGOING_ARGS to an expression.
6463 * calls.c (PUSH_ARGS_REVERSED) Change to expression.
6464 (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): Provide default value.
6465 (struct arg_data): Remove #ifdef ACCUMULATE_OUTGOING_ARGS.
6466 (save_fixed_argument_area, restore_fixed_argument_area):
6467 conditionize by #ifdef REG_PARM_STACK_SPACE only.
6468 (emit_call): Change #ifdefs on ACCUMULATE_OUTGOING_ARGS
6469 to conditions, handle RETURN_POPS_ARGS on ACCUMULATE_OUTGOING_ARGS.
6470 (precompute_register_parameters): Avoid #ifdefs on
6471 ACCUMULATE_OUTGOING_ARGS and PUSH_ARGS_REVERSED.
6472 (stire_one_args): Likewise.
6473 (expand_call): Likewise; conditionize PUSH_ROUNDING code by PUSH_ARGS.
6474 (emit_library_call_value_1): Likewise.
6475 (compute_argument_block_size): Align to STACK_BOUNDARY only for
6476 ACCUMULATE_OUTGOING_ARGS.
6477 * combine.c (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): Provide default
6478 value.
6479 (nonzero_bits): Conditionize PUSH_ROUNDING code by USE_PUSH.
6480 (use_crosses_set_p): Likewise.
6481 * all targets (ACCUMULATE_OUTGOING_ARGS define): Change to
6482 #define ACCUMULATE_OUTGOING_ARGS 1.
6483 * i386.c (ix86_compute_frame_size): Handle ACCUMULATE_OUTGOING_ARGS
6484 frames.
6485 * i386.h (MASK_NO_PUSH_ARGS, MASK_ACCUMULATE_OUTGOING_ARGS): New
6486 constants.
6487 (TARGET_PUSH_ARGS, TARGET_ACCUMULATE_OUTGOING_ARGS): New macros.
6488 (TARGET_SWITCHES): Add push-args, no-push-args,
6489 accumulate-outgoing-args and no-accumulate-outgoing-args.
6490 (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): New macro.
6491 * expr.c (ACCUMULATE_OUTGONG_ARGS, PUSH_ARGS): Provide default.
6492 (push_block): Avoid ifdefs on ACCUMULATE_OUTGONG_ARGS
6493 and PUSH_ROUNDING.
6494 (emit_push_insn): Likewise.
6495 * final.c (ACCUMULATE_OUTGOING_ARGS): Provide default.
6496 (final_scan_insn): Avoid ifdefs on ACCUMULATE_OUTGOING_ARGS.
6497 * function.c (ACCUMULATE_OUTGOING_ARGS): Provide default.
6498 (STACK_DYNAMIC_OFFSET): Define correctly for both
6499 ACCUMULATE_OUTGOING_ARGS and normal mode.
6500 * invoke.texi (-mpush_args, -maccumulate-outgoing-args): Document.
6501 * tm.texi (PUSH_ARGS): Document.
6502 (ACCUMULATE_OUTGOING_ARGS, PUSH_ROUNDING): Update documentation.
6503
6504 Wed Mar 29 11:51:13 MET DST 2000 Jan Hubicka <jh@suse.cz>
6505
6506 * flags.h (flag_optimize_sibling_calls): Declare.
6507 * calls.c (expand_call): Fail sibcall when
6508 !flag_optimize_sibling_calls
6509 * invoke.texi (flag_optimize_sibling_calls): Document.
6510 * toplev.c (flag_optimize_sibling_calls): New global variable.
6511 (f_options): Add flag_optimize_sibling_calls.
6512 (rest_of_compilation): Conditionize
6513 optimize_sibling_and_tail_recursive_calls by
6514 flag_optimize_sibling_calls.
6515 (main): Set flag_optimize_sibling_calls for -O2.
6516 * stmt.c (expand_return): Conditionize tail recursion by
6517 flag_optimize_sibling_calls.
6518
6519 2000-03-29 Richard Henderson <rth@cygnus.com>
6520
6521 * config/i386/att.h (LOCAL_LABEL_PREFIX): Define.
6522 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Use it.
6523
6524 2000-03-29 Nathan Sidwell <nathan@codesourcery.com>
6525
6526 * except.c (add_eh_table_entry): Mark type_info's as referenced.
6527
6528 2000-03-29 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6529
6530 * config/rs6000/aix41.h (CPP_SPEC): Define _ANSI_C_SOURCE if -ansi
6531 is given.
6532 * config/rs6000/aix43.h (CPP_SPEC): Likewise.
6533 * config/rs6000/rs6000.h (CPP_SPEC): Moved to...
6534 * config/rs6000/aix.h: then modified likewise.
6535
6536 2000-03-28 Richard Henderson <rth@cygnus.com>
6537
6538 * rtl.h: Redistribute enum reg_note documentation.
6539 Kill trailing whitespace.
6540 * rtl.c (reg_note_name): Adjust to match enum reg_note tweeks.
6541 Kill trailing whitespace.
6542
6543 2000-03-28 Zack Weinberg <zack@wolery.cumb.org>
6544
6545 * cppfiles.c (hash_IHASH): Just return i->hash.
6546 (cpp_included): Set dummy.hash using _cpp_calc_hash. Use
6547 htab_find_with_hash.
6548 (cpp_read_file): Likewise.
6549 (find_include_file): Likewise. Properly initialize
6550 ih->nshort. Share ih->name and ih->nshort if possible.
6551 * cpphash.c (_cpp_calc_hash): New function.
6552 (hash_HASHNODE): Just return h->hash.
6553 (_cpp_lookup): Set dummy.hash using _cpp_calc_hash. Use
6554 htab_find_with_hash.
6555 * cpphash.h: Prototype _cpp_calc_hash.
6556 * cppinit.c (initialize_builtins): Provide a valid hash
6557 to _cpp_make_hashnode, using _cpp_calc_hash.
6558
6559 * cpphash.c (collect_expansion): # is not a special character
6560 in object-like macros. In -traditional mode, /**/ is not
6561 token paste at the beginning or end of the line.
6562 * cpplib.c (do_include, do_import, do_include_next): If
6563 parse_include fails, return immediately.
6564
6565 2000-03-28 Jason Merrill <jason@casey.cygnus.com>
6566
6567 * config/arm/arm.md (return peepholes): Update to reflect the new
6568 call insn patterns.
6569 * config/arm/arm.c (arm_volatile_func): Also check
6570 current_function_nothrow.
6571 (output_return_instruction, output_func_prologue): Use it.
6572 (arm_output_epilogue, arm_expand_prologue): Likewise.
6573
6574 2000-03-27 Tom Tromey <tromey@cygnus.com>
6575
6576 * gcc.c (handle_braces): In {x*...} case, break out of loop if
6577 switch is found.
6578
6579 Tue Mar 28 11:55:48 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6580
6581 * expr.c (store_constructor): SIZE now signed.
6582 For EXPR_SIZE, don't evaluate size; just needed if constant.
6583 * fold-const.c (fold): Fix a number of cases when folded tree is
6584 wrong type.
6585 * function.c (flush_addressof): Reenable.
6586 * tree.h (flush_addressof): Likewise.
6587 * toplev.c (independent_decode_option): Look at strings_processed.
6588 * config/alpha/alpha.h (MINIMUM_ATOMIC_ALIGNMENT): Cast to unsigned.
6589
6590 Tue Mar 28 08:29:46 2000 Jan Hubicka <jh@suse.cz>
6591
6592 * sibcall.c (indentify_call_return_value): Find last call in the chain;
6593 Allow stack adjustment after function call.
6594
6595 * regmove.c (struct csa_memlist): Make mem field rtx *.
6596 (record_one_stack_ref): Accept rtx * instead of rtx as parameter.
6597 (try_apply_stack_adjustment): Replace whole MEM rtx.
6598 (combine_stack_adjustments_for_block): Update calls
6599 to record_one_stack_ref.
6600
6601 2000-03-28 Neil Booth <NeilB@earthling.net>
6602
6603 * cpplex.c (_cpp_read_and_prescan): Mark end of input buffer with
6604 '\\' rather than a null character, so nulls are not special. Fix
6605 "\\\n" handling in end-of-buffer conditions. Use trigraph map to
6606 speed trigraph conversion.
6607 (_cpp_init_input_buffer): Initialize trigraph map.
6608
6609 2000-03-27 Alan Modra <alan@linuxcare.com.au>
6610
6611 * config/i386/i386.c (output_387_binary_op): Correct intel
6612 mode assembly output, and add spaces after commas in AT&T
6613 output. Correct Unixware assembler comment. Document input
6614 constraints. Comment fp operations. Reduce profligate buffer
6615 size. Remove extraneous abort. Localize temp var.
6616 (SYSV386_COMPAT): Define. Add !SYSV386_COMPAT code.
6617 (output_fix_trunc): Add spaces after commas in assembly output.
6618
6619 2000-03-27 Richard Henderson <rth@cygnus.com>
6620
6621 * i386-protos.h (ix86_match_ccmode): Declare.
6622 * i386.c (ix86_match_ccmode): New.
6623 (ix86_expand_fp_compare): Update for pattern renames.
6624 (ix86_expand_strlensi_unroll_1): Likewise.
6625 * i386.h (EXTRA_CC_MODES): Add CCZ.
6626 (SELECT_CC_MODE): Use it for EQ/NE zero.
6627 * i386.md (cmpsi_ccz_1): New.
6628 (cmpqi_ccz_1): New.
6629 (*testsi_ccz_1): New.
6630 (testqi_ccz_1): New.
6631 (cmpsi_ccno_1): Rename from cmpsi_0.
6632 (testsi_ccno_1): Rename from testsi_1.
6633 (testqi_ccno_1): Rename from testqi_1.
6634 (*testqi_ext_ccz_0): Rename from testqi_ext_0.
6635 (testqi_ext_ccno_0): Rename from *testqi_ext_1.
6636 (*cmphi_0): Use ix86_match_ccmode.
6637 (*cmpqi_ext_2, *addsi_2, *addhi_2, *addqi_2): Likewise.
6638 (*subsi_2, *subhi_2, *subqi_2, *testhi_1): Likewise.
6639 (*testqi_ext_1, *testqi_ext_2, *testqi_ext_3): Likewise.
6640 (*andsi_2, *andhi_2, *andqi_2, *andqi_ext_0_cc): Likewise.
6641 (*iorsi_2, *iorhi_2, *iorqi_2): Likewise.
6642 (*xorsi_2, *xorhi_2, *xorqi_cc_1): Likewise.
6643 (*one_cmplsi2_2, *one_cmplhi2_2, *one_cmplqi2_2): Likewise.
6644 (*ashlsi3_cmpno, *ashlhi3_cmpno, *ashlqi3_cmpno): Likewise.
6645 (*ashrsi3_cmpno, *ashrhi3_cmpno, *ashrqi3_cmpno): Likewise.
6646 (*lshrsi3_cmpno, *lshrhi3_cmpno, *lshrqi3_cmpno): Likewise.
6647 (appropriate peepholes): Likewise.
6648 (*cmphi_1, *cmpqi_ccno_1, *cmpqi_1): Star out name.
6649 (*subsi_3, *subhi_3, *subqi_3): Remove.
6650 (*negdi2_1+1 splitter): Use CCZ for neg patterns.
6651 (*negsi2_cmp, *neghi2_cmp, *negqi2_cmp): Remove.
6652 (*negsi2_cmpz): Rename from *negsi2_cmpno, use CCZ.
6653 (*neghi2_cmpz, *negqi2_cmpz): Similarly.
6654 (x86_shift_adj_1): Use CCZ.
6655 (*dbra_ge+1, *dbra_ge+2, ffssi2, ffssi_1): Likewise.
6656
6657 2000-03-27 Stan Cox <scox@cygnus.com>
6658
6659 * resource.h (mark_resource_type): New.
6660 * resource.c (find_dead_or_set_registers, mark_target_live_regs,
6661 find_free_register): Use mark_resource_type.
6662 (mark_set_resources): Change include_delayed_effects
6663 to mark_resource_type.
6664 * reorg.c (steal_delay_list_from_target, try_merge_delay_insns,
6665 redundant_insn, fill_simple_delay_slots, fill_slots_from_thread):
6666 Use mark_resource_type.
6667
6668 2000-03-27 Richard Henderson <rth@cygnus.com>
6669
6670 * i386.md (call_pop_0, call_value_pop_0): New.
6671 (call_pop_1): Remove constraint from unused arg. Support sibcalls.
6672 (call_value_pop_1): Likewise.
6673 (call_0, call_value_0): New.
6674 (call_1, call_value_1): Remove constraint from unused arg.
6675
6676 2000-03-27 Nick Clifton <nickc@cygnus.com>
6677
6678 * invoke.texi (Spec Files): Document new spec % command created by
6679 Tom Tromey's recent patch.
6680
6681 2000-03-27 Jakub Jelinek <jakub@redhat.com>
6682
6683 * libgcc2.h (MIN_UNITS_PER_WORD): Define to UNITS_PER_WORD
6684 if not defined.
6685
6686 Mon Mar 27 06:04:22 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6687
6688 * expr.c (expand_assignment): Fix typo in last change.
6689
6690 * libgcc2.h: Use MIN_UNITS_PER_WORD, not UNITS_PER_WORD.
6691
6692 Sun Mar 26 20:15:26 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6693
6694 * c-convert.c (convert): Return if output or input type is ERROR_MARK.
6695 * c-decl.c (duplicate_decls): Only look at DECL_BUILT_IN_NONANSI
6696 and DECL_INLINE if FUNCTION_DECL.
6697 (pushdecl, redeclaration_error_message): Likewise, for DECL_INLINE.
6698 (store_parm_decls): Check for type of PARM_DECL being ERROR_MARK.
6699 Use DECL_WEAK, not DECL_RESULT, to flag for already seen.
6700 (combine_parm_decls): Likewise.
6701 * ggc-common.c (gcc_mark_tree_children, case 'd'): Use DECL_RESULT_FLD.
6702 * print-tree.c (print_node): Likewise.
6703 Only test DECL_PACKED, DECL_INLINE, DECL_BIT_FIELD, and
6704 DECL_TRANSPARENT_UNION on proper decl types.
6705 Properly handly DECL_INCOMING_RTL and DECL_SAVED_INSNS.
6706 * stor-layout.c (layout_decl): Only check DECL_PACKED and
6707 DECL_BIT_FIELD of FIELD_DECL.
6708 * tree.h (DECL_RESULT_FLD): New macro.
6709
6710 * expr.c (expand_assignment): Add code to handle variable-sized
6711 BLKmode case.
6712
6713 2000-03-26 Richard Henderson <rth@cygnus.com>
6714
6715 * calls.c (expand_call): Pass parms not original exp to
6716 optimize_tail_recursion. Mind return value instead of looking
6717 for a barrier.
6718 * stmt.c (optimize_tail_recursion): Take parameter list, not entire
6719 call_expr. Move checks for call_expr and current_function_decl ...
6720 (expand_return): ... here.
6721
6722 2000-03-26 Tom Tromey <tromey@cygnus.com>
6723
6724 * gcc.c (handle_braces): Recognize `%{<S}' construct.
6725 (SWITCH_OK, SWITCH_FALSE, SWITCH_IGNORE, SWITCH_LIVE): New
6726 defines.
6727 (process_command): Use them.
6728 (check_live_switch): Likewise.
6729 (give_switch): Skip ignored switches.
6730
6731 2000-03-26 Jan Hubicka <jh@suse.cz>
6732
6733 * jump.c (jump_optimize_1): Fix typo in elide optimizations
6734 for minimal jump pass test.
6735
6736 2000-03-26 Mark Mitchell <mark@codesourcery.com>
6737
6738 * integrate.c (function_cannot_inline_p): Do inline functions that
6739 return `void'.
6740
6741 Sun Mar 26 11:37:55 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6742
6743 * stor-layout.c (layout_type, set_sizetype): early_type_list is
6744 now a list of TREE_LIST entries, not types.
6745 * tree.c (build_common_tree_nodes_2): Eliminate dupliate type sets.
6746
6747 * expmed.c (extract_bit_field): Ensure BITS_PER_WORD is signed in MAX.
6748 * config/arm/pe.c (arm_pe_return_in_memory): Use host_integerp and
6749 int_bit_position.
6750 * config/mips/mips.c (function_arg): Likewise; also remove cast
6751 and make variables unsigned or HOST_WIDE_INT and use tree_low_cst.
6752 (mips_function_value): Use int_byte_position and make HOST_WIDE_INT.
6753 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Offsets are unsigned.
6754 * config/mips/mips.h (BITS_PER_WORD, UNITS_PER_WORD): Cast to unsigned.
6755 (UNITS_PER_FPREG, INT_TYPE_SIZE, LONG_TYPE_SIZE): Likewise.
6756 (POINTER_SIZE, POINTER_BOUNDARY,PARM_BOUNDARY): Likewise.
6757 (GP_REG_P, FP_REG_P, MD_REG_P, ST_REG_P): Ensure subtraction signed.
6758 (struct mips_arg): arg_number, arg_words, fp_arg_words, and
6759 num_adjusts now unsigned.
6760 (FUNCTION_ARG_BOUNDARY): Remove unneeded cast.
6761 * config/sparc/sparc.c (struct function_arg_record_value_parms):
6762 NREGS now unsigned.
6763 (function_arg_record_value_1): STARTBITPOS arg now HOST_WIDE_INT
6764 as is BITPOS variable; use host_integerp and int_bit_position.
6765 (function_arg_record_value_2): Likewise.
6766 (function_arg_record_value_3): Arg BITPOS now HOST_WIDE_INT.
6767 Variable REGNO now unsigned.
6768 (function_arg_record_value): NREGS now unsigned.
6769
6770 2000-03-26 Bernd Schmidt <bernds@cygnus.co.uk>
6771
6772 * jump.c (mark_all_labels): Handle CALL_PLACEHOLDERs.
6773
6774 Sat Mar 25 09:12:10 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6775
6776 * Rework fields used to describe positions of bitfields and
6777 modify sizes to be unsigned and use HOST_WIDE_INT.
6778 * alias.c (reg_known_value_size): Now unsigned.
6779 * c-typeck.c (build_unary_op, case ADDR_EXPR): Use byte_position.
6780 (really_start_incremental_init): Use bitsize_zero_node.
6781 (push_init_level, pop_init_level, output_init_element): Likewise.
6782 Use bitsize_unit_node and bitsize_one_node.
6783 (output_pending_init_elements, process_init_element): Likewise.
6784 * combine.c (combine_max_regno, reg_sign_bit_copies): Now unsigned.
6785 (make_extraction): Position and length HOST_WIDE_INT and unsigned
6786 HOST_WIDE_INT, respectively.
6787 (get_pos_from_mask): Passed in value is unsigned HOST_WIDE_INT.
6788 (num_sign_bit_copies): Returns unsigned.
6789 BITWIDTH now unsigned; rework arithmetic.
6790 Remove recursive call from arg to MAX.
6791 (combine_instructions, init_reg_last_arrays): NREGS now unsigned.
6792 (setup_incoming_promotions, can_combine_p, try_combine, simplify_set):
6793 REGNO now unsigned.
6794 (set_nonzero_bit_and_sign_copies): NUM now unsigned.
6795 (find_split_point, expand_compound_operation, make_extraction): LEN
6796 now unsigned HOST_WIDE_INT, POS now HOST_WIDE_INT.
6797 (make_field_assignment): Likewise.
6798 (combine_simplify_rtx): Add cast.
6799 (expand_compound_operation): MODEWIDTH now unsigned; rework arithmetic.
6800 (force_to_mode): WIDTH now unsigned; add cast.
6801 (if_then_else_cond): SIZE now unsigned.
6802 (nonzero_bits): MODE_WIDTH, RESULT_WIDTH, and WIDTH now unsigned.
6803 (extended_count): Now returns unsigned.
6804 (simplify_shift_const): COUNT unsigned; arg is now INPUT_COUNT.
6805 Add SIGNED_COUNT variable; MODE_WORDS and FIRST_COUNT now unsigned.
6806 (simplify_comparison): MODE_WIDTH now unsigned.
6807 (update_table_tick): REGNO and ENDREGNO now unsigned; new var R.
6808 (mark_used_regs_combine): Likewise; rework arithmetic.
6809 (record_value_for_reg): REGNO, ENDREGNO, and I now unsigned.
6810 (record_dead_and_set_regs, reg_dead_at_p, distribute_notes): Likewise.
6811 (record_promoted_value): REGNO now unsigned.
6812 (get_last_value_validate): REGNO, ENDREGNO, and J now unsigned.
6813 (get_last_value): REGNO now unsigned.
6814 (use_crosses_set_p): REGNO and ENDREGNO now unsigned.
6815 (reg_dead_regno, reg_dead_endregno): Now unsigned.
6816 (remove_death): Arg REGNO now unsigned.
6817 (move_deaths): REGNO, DEADREGNO, DEADEND, OUREND, and I now unsigned.
6818 (reg_bitfield_target_p): REGNO, REGNO, ENDREGNO, and ENDTREGNO
6819 now unsigned.
6820 * convert.c (convert_to_integer): INPREC and OUTPREC now unsigned.
6821 * cse.c (struct qty_table_elem): FIRST_REG and LAST_REG now unsigned.
6822 (struct cse_reg_info): REGNO now unsigned.
6823 (cached_regno): Now unsigned.
6824 (REGNO_QTY_VALID_P): Add cast.
6825 (make_new_qty, make_regs_eqv, delete_reg_eqiv): Regno args unsigned.
6826 (remove_invalid_regs): Likewise.
6827 (remove_invalid_subreg_refs): Likewise; arg WORD also unsigned
6828 as are variables END and I.
6829 (get_cse_reg_info, insert): Likewise.
6830 (mention_regs, invalidate_for_call): REGNO, ENDREGNO, and I unsigned.
6831 (canon_hash): Likewise.
6832 (insert_regs, lookup_for_remove): REGNO now unsigned.
6833 (invalidate): REGNO, ENDREGNO, TREGNO, and TENDREGNO now unsigned.
6834 New variable RN.
6835 * dbxout.c (dbxout_parms, dbxout_reg_parms): Don't check for REGNO < 0.
6836 * dwarf2out.c (dwarf2ou_frame_debug_expr): Remove cast.
6837 * emit-rtl.c (subreg_realpart_p): Add cast.
6838 (operand_subword): Arg I is now unsigned as is var PARTWORDS.
6839 (operand_subword_force): Arg I is now unsigned.
6840 * except.c (eh_regs): Variable I is now unsigned.
6841 * explow.c (hard_function_value): BYTES is unsigned HOST_WIDE_INT.
6842 * expmed.c (store_fixed_bit_field): Position is HOST_WIDE_INT;
6843 length is unsigned HOST_WIDE_INT; likewise for internal variables.
6844 (store_split_bit_field, extract_fixed_bit_field): Likewise.
6845 (extract_split_bit_field, store_bit_field, extract_bit_field):
6846 Likewise.
6847 * expr.c (store_constructor_fields, store_constructor, store_field):
6848 Positions are HOST_WIDE_INT and lengths are unsigned HOST_WIDE_INT.
6849 (expand_assignment, expand_expr, expand_expr_unaligned): Likewise.
6850 (do_jump): Likewise.
6851 (move_by_pieces, move_by_pieces_ninsns, clear_by_pieces):
6852 MAX_SIZE is now unsigned.
6853 (emit_group_load): BYTEPOS is HOST_WIDE_INT; BYTELEN is unsigned.
6854 (emit_group_store): Likewise.
6855 (emit_move_insn): I now unsigned.
6856 (store_constructor): Use host_integerp, tree_low_cst, and
6857 bitsize_unit_node.
6858 (get_inner_reference): Return bitpos and bitsize as HOST_WIDE_INT.
6859 Rework all calculations to use trees and new fields.
6860 * expr.h (promoted_input_arg): Regno now unsigned.
6861 (store_bit_field, extract_bit_field): Adjust types of pos and size.
6862 (mark_seen_cases): Arg is HOST_WIDE_INT.
6863 * flow.c (verify_wide_reg_1): REGNO now unsigned.
6864 * fold-const.c (decode_field_reference): Size and pos HOST_WIDE_INT;
6865 precisions and alignments are unsigned.
6866 (optimize_bit_field_compare, fold_truthop): Likewise.
6867 (int_const_binop): Adjust threshold for size_int_type_wide call.
6868 (fold_convert): Likewise.
6869 (size_int_type_wide): Make table larger and fix thinko that only
6870 had half of table used.
6871 (all_ones_mask_p, fold): Precisions are unsigned.
6872 * function.c (put_reg_info_stack): REGNO is unsigned.
6873 (instantiate_decl): Size is HOST_WIDE_INT.
6874 (instantiate_virtual_regs): I is unsigned.
6875 (assign_parms): REGNO, REGNOI, and REGNOR are unsigned.
6876 (promoted_input_arg): REGNO is unsigned.
6877 * function.h (struct function): x_max_parm_reg is now unsigned.
6878 * gcse.c (max_gcse_regno): Now unsigned.
6879 (struct null_pointer_info): min_reg and max_reg now unsigned.
6880 (lookup_set, next_set): REGNO arg now unsigned.
6881 (compute_hash_table): REGNO and I now unsigned.
6882 (handle_avail_expr): regnum_for_replacing now unsigned.
6883 (cprop_insn): REGNO now unsigned.
6884 (delete_null_pointer_checks_1): BLOCK_REG now pointer to unsigned.
6885 * ggc-common.c (ggc_mark_tree_children, case FIELD_DECL): New case.
6886 * global.c (set_preference): SRC_REGNO, DEST_REGNO, and I now unsigned.
6887 * hard-reg-set.h (reg_class_size): Now unsigned.
6888 * integrate.c (mark_stores): LAST_REG and I now unsigned; new UREGNO.
6889 * jump.c (mark_modified_reg): I now unsigned; add cast.
6890 (rtx_equal_for_thread_p): Add cast.
6891 * loop.c (max_reg_before_loop): Now unsigned.
6892 (struct_movable): REGNO now unsigned.
6893 (try_copy_prop): REGNO arg unsigned.
6894 (regs_match_p): XN and YN now unsigned.
6895 (consec_sets_invariant_p, maybe_eliminate_biv): REGNO now unsigned.
6896 (strength_reduce): Likewise; NREGS also unsigned.
6897 (first_increment_giv, last_increment_giv unsigned): Now unsigned.
6898 * loop.h (struct iv_class): REGNO now unsigned.
6899 (max_reg_before_loop, first_increment_giv, last_increment_giv):
6900 Now unsigned.
6901 * machmode.h (mode_size, mode_unit_size): Now unsigned.
6902 (mode_for_size, smallest_mode_for_size): Pass size as unsigned.
6903 * optabs.c (expand_binop): I and NWORDS now unsigned.
6904 (expand_unop): I now unsigned.
6905 * print-tree.c (print_node): Don't print DECL_FIELD_BITPOS, but do
6906 print DECL_FIELD_OFFSET and DECL_FIELD_BIT_OFFSET.
6907 * real.c (significand_size): Now returns unsigned.
6908 * real.h (significand_size): Likewise.
6909 * regclass.c (reg_class_size): Now unsigned.
6910 (choose_hard_reg_mode): Both operands now unsigned.
6911 (record_reg_classes): REGNO and NR now unsigned.
6912 (reg_scan): NREGS now unsigned.
6913 (reg_scan_update): old_max_regno now unsigned.
6914 (reg_scan_mark_refs): Arg MIN_REGNO and var REGNO now unsigned.
6915 * reload.c (find_valid_class): BEST_SIZE now unsigned.
6916 (find_dummy_reload): REGNO, NWORDS, and I now unsigned.
6917 (hard_reg_set_here_p): Args BEG_REGNO and END_REGNO now unsigned.
6918 Likewise for variable R.
6919 (refers_to_regno_for_reload_p): Args REGNO and END_REGNO now unsigned,
6920 as are variables INNER_REGNO and INNER_ENDREGNO; add new variable R.
6921 (find_equiv_reg): Add casts.
6922 (regno_clobbered_p): Arg REGNO now unsigned.
6923 * reload.h (struct reload): NREGS now unsigned.
6924 (refers_to_regno_for_reload_p): Regno args are unsigned.
6925 (regno_clobbered_p): Likewise.
6926 * reload1.c (reg_max_ref_width, spill_stack_slot_width): Now unsigned.
6927 (compute_use_by_pseudos): REGNO now unsigned.
6928 (find_reg): I and J now unsigned, new variable K, and change loop
6929 variables accordingly; THIS_NREGS now unsigned.
6930 (alter_reg): INHERENT_SIZE and TOTAL_SIZE now unsigned.
6931 (spill_hard_reg): REGNO arg now unsigned; add casts.
6932 (forget_old_reloads_1): REGNO, NR, and I now unsigned.
6933 (mark_reload_reg_in_use): Arg REGNO and vars NREGS and I now unsigned.
6934 (clear_reload_reg_in_use): Arg REGNO and vars NREGS, START_REGNO,
6935 END_REGNO, CONFLICT_START, and CONFLICT_END now unsigned.
6936 (reload_reg_free_p, reload_reg_reaches_end_p): Arg REGNO now unsigned.
6937 (choose_reload_regs): MAX_GROUP_SIZE now unsigned.
6938 (emit_reload_insns): REGNO now unsigned.
6939 (reload_cse_move2add): Add cast.
6940 (move2add_note_store): REGNO and I now unsigned; new variable ENDREGNO
6941 and rework loop.
6942 * resource.c (mark_referenced_resources, mark_set_resources): New
6943 variable R; REGNO and LAST_REGNO now unsigned.
6944 (mark_target_live_regs): J and REGNO now unsigned.
6945 * rtl.c (mode_size, mode_unit_size): Now unsigned.
6946 * rtl.h (union rtunion_def): New field rtuint.
6947 (XCUINT): New macro.
6948 (ADDRESSOF_REGNO, REGNO, SUBREG_WORD): New XCUINT.
6949 (operand_subword, operand_subword_force): Word number is unsigned.
6950 (choose_hard_reg_mode): Operands are unsigned.
6951 (refers_to-regno_p, dead_or_set_regno_p): Regno arg is unsigned.
6952 (find_regno_note, find_regno_fusage, replace_regs): Likewise.
6953 (regno_use_in, combine_instructions, remove_death): Likewise.
6954 (reg_scan, reg_scan_update): Likewise.
6955 (extended_count): Return is unsigned.
6956 * rtlanal.c (refers_to_regno_p): Args REGNO and ENDREGNO and vars I,
6957 INNER_REGNO, and INNER_ENDREGNO now unsigned; new variable X_REGNO.
6958 (reg_overlap_mentioned_p): REGNO and ENDREGNO now unsigned.
6959 (reg_set_last_first_regno, reg_set_last_last_regno): Now unsigned.
6960 (reg_reg_last_1): FIRS and LAST now unsigned.
6961 (dead_or_set_p): REGNO, LAST_REGNO, and I now unsigned.
6962 (dead_or_set_regno_p): Arg TEST_REGNO and vars REGNO and ENDREGNO
6963 now unsigned.
6964 (find_regno_note, regno_use_in): Arg REGNO now unsigned.
6965 (find_regno_fusage): Likewise; also var REGNOTE now unsigned.
6966 (find_reg_fusage): Variables REGNO, END_REGNO, and I now unsigned.
6967 (replace_regs): Arg NREGS now unsigned.
6968 * sdbout.c (sdbout_parms, sdbout_reg_parms): Don't check REGNO < 0.
6969 * simplify-rtx.c (simplify_unary_operation): WIDTH now unsigned.
6970 (simplify_binary_operation): Likewise.
6971 (cselib_invalidate_regno): Arg REGNO and variables ENDREGNO, I, and
6972 THIS_LAST now unsigned.
6973 (cselib_record_set): Add cast.
6974 * ssa.c (ssa_max_reg_num): Now unsigned.
6975 (rename_block): REGNO now unsigned.
6976 * stmt.c (expand_return): Bit positions unsigned HOST_WIDE_INT;
6977 sizes now unsigned.
6978 (all_cases_count): Just return -1 not -2.
6979 COUNT, MINVAL, and LASTVAL now HOST_WIDE_INT.
6980 Rework tests to use trees whenever possible.
6981 Use host_integerp and tree_low_cst.
6982 (mark_seen_cases): COUNT arg now HOST_WIDE_INT;
6983 Likewise variable NEXT_NODE_OFFSET; XLO now unsigned.
6984 (check_for_full_enumeration_handing): BYTES_NEEDED, I to HOST_WIDE_INT.
6985 * stor-layout.c (mode_for_size): SIZE arg now unsigned.
6986 (smallest_mode_for_size): Likewise.
6987 (layout_decl): Simplify handing of a specified DECL_SIZE_UNIT.
6988 KNOWN_ALIGN is now an alignment, so simplify code.
6989 Don't turn off DECL_BIT_FIELD if field is BLKmode, but not type.
6990 (start_record_layout): Renamed from new_record_layout_info.
6991 Update to new fields.
6992 (debug_rli, normalize_rli, rli_size_unit_so_far, rli_size_so_far):
6993 New functions.
6994 (place_union_field): Renamed from layout_union_field.
6995 Update to use new fields in rli.
6996 (place_field): Renamed from layout_field.
6997 Major rewrite to use new fields in rli; pass alignment to layout_decl.
6998 (finalize_record_size): Rework to use new fields in rli and handle
6999 union.
7000 (compute_record_mode): Rework to simplify and to use new DECL fields.
7001 (finalize_type_size): Make rounding more consistent.
7002 (finish_union_layout): Deleted.
7003 (layout_type, case VOID_TYPE): Don't set TYPE_SIZE_UNIT either.
7004 (layout_type, case RECORD_TYPE): Call new function names.
7005 (initialize_sizetypes): Set TYPE_IS_SIZETYPE.
7006 (set_sizetype): Set TYPE_IS_SIZETYPE earlier.
7007 (get_best_mode): UNIT is now unsigned; remove casts.
7008 * tree.c (bit_position): Compute from new fields.
7009 (byte_position, int_byte_position): New functions.
7010 (print_type_hash_statistics): Cast to remove warning.
7011 (build_range_type): Use host_integerp and tree_low_cst to try to hash.
7012 (build_index_type): Likewise; make subtype of sizetype.
7013 (build_index_2_type): Pass sizetype to build_range_type.
7014 (build_common_tree_nodes): Use size_int and bitsize_int to
7015 initialize nodes; add bitsize_{zero,one,unit}_node.
7016 * tree.h (DECL_FIELD_CONTEXT): Use FIELD_DECL_CHECK.
7017 (DECL_BIT_FIELD_TYPE, DECL_QUALIFIER, DECL_FCONTEXT): Likewise.
7018 (DECL_PACKED, DECL_BIT_FIELD): Likewise.
7019 (DECL_FIELD_BITPOS): Deleted.
7020 (DECL_FIELD_OFFSET, DECL_FIELD_BIT_OFFSET): New fields.
7021 (DECL_RESULT, DECL_SAVED_INSNS): Use FUNCTION_DECL_CHECK.
7022 (DECL_FRAME_SIZE, DECL_FUNCTION_CODE, DECL_NO_STATIC_CHAIN): Likewise.
7023 (DECL_INLINE, DECL_BUILT_IN_NONANSI, DECL_IS_MALLOC): Likewise.
7024 (DECL_BUILT_IN_CLASS, DECL_STATIC_CONSTRUCTOR): Likewise.
7025 (DECL_STATIC_DESTRUCTOR, DECL_NO_CHECK_MEMORY_USAGE): Likewise.
7026 (DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT, DECL_NO_LIMIT_STACK) Likewise.
7027 (DECL_ORIGINAL_TYPE, TYPE_DECL_SUPPRESS_DEBUG): Use TYPE_DECL_CHECK.
7028 (DECL_ARG_TYPE_AS_WRITEN, DECL_ARG_TYPE): Use PARM_DECL_CHECK.
7029 (DECL_INCOMING_RTL, DECL_TRANSPARENT_UNION): Likewise.
7030 (DECL_ALIGN): Adjust to new field in union.
7031 (DECL_OFFSET_ALIGN): New field.
7032 (DECL_ERROR_ISSUED, DECL_TOO_LATE): Use LABEL_DECL_CHECK.
7033 (DECL_IN_TEXT_SECTION): Use VAR_DECL_CHECK.
7034 (union tree_decl): Add struct for both aligns.
7035 (enum tree_index): Add TI_BITSIZE_{ZERO,ONE,UNIT}.
7036 (bitsize_zero_node, bitsize_one_node, bitsize_unit_node): Added.
7037 (struct record_layout_info): Rework fields to have offset
7038 alignment and byte and bit position.
7039 (start_record_layout, place_field): Renamed from old names.
7040 (rli_size_so_far, rli_size_unit_so_far, normalize_rli): New decls.
7041 (byte_position, int_byte_position): Likewise.
7042 (get_inner_reference): Change types of position and length.
7043 * unroll.c (unroll_loop): New variable R; use for some loops.
7044 MAX_LOCAL_REGNUM and MAXREGNUM now unsigned.
7045 (calculate_giv_inc): Arg REGNO now unsigned.
7046 (copy_loop_body): REGNO and SRC_REGNO now unsigned.
7047 * varasm.c (assemble_variable): Clean up handling of size using
7048 host_integerp and tree_low_cst.
7049 (decode_addr_const): Use byte, not bit, position.
7050 (output_constructor): bitpos and offsets are HOST_WIDE_INT;
7051 use tree_low_cst and int_bit_position.
7052 * objc/objc-act.c (build_ivar_list_initializer): Use byte_position.
7053
7054 Fri Mar 24 20:13:49 2000 Jason Eckhardt <jle@cygnus.com>
7055
7056 * bb-reorder.c (REORDER_MOVED_BLOCK_END): Removed.
7057 (reorder_block_def): New members eff_head and eff_end.
7058 (REORDER_BLOCK_EFF_HEAD, REORDER_BLOCK_EFF_END): New macros.
7059 (verify_insn_chain): New function.
7060 (skip_insns_between_block): Add code to skip deleted insns.
7061 Check for note before using.
7062 (chain_reorder_blocks): Replace calls to skip_insns_between_block
7063 with references to REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END.
7064 Check for note before using.
7065 (make_reorder_chain): Use INTVAL rather than XINT to get REG_BR_PROB.
7066 (fixup_reorder_chain): Restructure, clean up, defect removal.
7067 (reorder_basic_blocks): Remove last_insn and references to it.
7068 Moved insn chain verification code into a new function (see above).
7069 Delete defective code that sets last insn.
7070 Initialize REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END for
7071 all blocks.
7072
7073 2000-03-25 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7074
7075 * config/c4x/c4x.h (CPP_SPEC): Remove erroneous space.
7076
7077 2000-03-24 Richard Henderson <rth@cygnus.com>
7078
7079 * tree.c (lang_safe_for_unsave): Remove.
7080 (unsafe_for_reeval): Transmute and rename from safe_for_unsave,
7081 allowing for two levels of unsafeness. Remove lang hook.
7082 * tree.h: Update declarations.
7083 * calls.c (expand_call): Rename safe_for_reeval to try_tail_call.
7084 Create temporary VAR_DECLs to protect very unsafe_for_reeval trees.
7085 Always fail sibcalls when there are pending cleanups.
7086
7087 2000-03-24 Geoff Keating <geoffk@cygnus.com>
7088
7089 * flow.c (propagate_block): When we delete an ADDR_VEC,
7090 also delete the BARRIER following it if there is one.
7091
7092 2000-03-24 Richard Henderson <rth@cygnus.com>
7093
7094 * builtins.c (expand_builtin_bzero): Convert `length' argument
7095 to sizetype.
7096
7097 2000-03-24 Jakub Jelinek <jakub@redhat.com>
7098
7099 * sibcall.c (skip_copy_to_return_value): Use OUTGOING_REGNO for
7100 comparison if regno's are equal.
7101 * calls.c (initialize_argument_informat): Add ecf_flags argument.
7102 Use FUNCTION_INCOMING_ARG if available and ECF_SIBCALL.
7103 (expand_call): Update caller.
7104 Avoid making a sibling call if argument size of the callee is larger
7105 than argument size of the caller.
7106 Call hard_function_value with outgoing set if in sibcall pass.
7107 Use FUNCTION_INCOMING_ARG if available and ECF_SIBCALL.
7108
7109 * final.c (permitted_reg_in_leaf_functions, only_leaf_regs_used):
7110 Change LEAF_REGISTERS from an array initializer to actual array
7111 identifier. Move static global variable into the function.
7112 (leaf_function_p): Allow SIBLING_CALL_P calls even outside of
7113 sequences for leaf functions.
7114 * global.c (global_alloc): Likewise.
7115 * tm.texi (LEAF_REGISTERS): Update documentation.
7116
7117 * config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Remove the ugly
7118 TARGET_FLAT leaf disabling hack.
7119 (LEAF_REGISTERS): Changed from an array initializer to actual array
7120 identifier to avoid duplication and remove the above hack.
7121 (FUNCTION_OK_FOR_SIBCALL): Define.
7122 * config/sparc/sparc.md (sibcall): New attr type. Use it almost
7123 always like call attribute.
7124 (eligible_for_sibcall_delay): New attribute.
7125 (sibcall): New delay type.
7126 (sibcall, sibcall_value, sibcall_epilogue): New expands.
7127 (sibcall_symbolic_sp32, sibcall_symbolic_sp64,
7128 sibcall_value_symbolic_sp32, sibcall_value_symbolic_sp64): New insns.
7129 * config/sparc/sparc.c (sparc_leaf_regs): New array.
7130 (eligible_for_sibcall_delay, output_restore_regs, output_sibcall):
7131 New functions.
7132 (output_function_epilogue): Move part of the code into
7133 output_restore_regs.
7134 (ultra_code_from_mask, ultrasparc_sched_reorder): Handle
7135 TYPE_SIBCALL.
7136 * sparc-protos.h (output_sibcall, eligible_for_sibcall_delay): New
7137 prototypes.
7138
7139 * config/sparc/sparc.h (REVERSIBLE_CC_MODE): Revert Jan, 25 change
7140 until infrastructure is finished.
7141
7142 Fri Mar 24 13:49:45 2000 Jeffrey A Law (law@cygnus.com)
7143
7144 * integrate.c (save_for_inline_nocopy): Clear in_nonparm_insns here.
7145 (save_parm_insns): Not here.
7146
7147 2000-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7148
7149 * builtins.c (expand_builtin_bzero): New function.
7150 (expand_builtin): Handle bzero.
7151
7152 * builtins.def: Add BUILT_IN_BZERO.
7153
7154 * c-common.c (c_common_nodes_and_builtins): Provide builtin
7155 prototype & function for bzero.
7156
7157 2000-03-23 Michael Meissner <meissner@redhat.com>
7158
7159 * config/alpha/alpha.md (TF floating point insns): Undo 2000-03-21
7160 change adding TARGET_FP to the TF floating point insns, except for
7161 trunctfsf2, which generates direct calls to truncdfsf2.
7162
7163 2000-03-23 Geoff Keating <geoffk@cygnus.com>
7164
7165 * config/rs6000/rs6000.h (ARG_POINTER_CFA_OFFSET): New definition,
7166 try to protect against middle-end changes that break binary
7167 compatibility.
7168 (DWARF_FRAME_REGISTERS): New definition, likewise for backend.
7169
7170 2000-03-24 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7171
7172 * config/c4x/c4x.md (load_immed_address): Add DP reg clobber.
7173
7174 Thu Mar 23 17:10:48 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7175
7176 * calls.c (expand_call): If TARGET is passed by reference and
7177 is readonly, write a CLOBBER.
7178
7179 2000-03-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7180
7181 * builtins.c (expand_builtin): Handle bcmp.
7182
7183 * builtins.def: Add BUILT_IN_BCMP.
7184
7185 * c-common.c (c_common_nodes_and_builtins): Provide builtin
7186 prototype & function for bcmp.
7187
7188 Thu Mar 23 11:34:39 2000 Jim Wilson <wilson@cygnus.com>
7189
7190 * config/ia64/ia64.c (rtx_needs_barrier, case UNSPEC): Move case 6...
7191 (rtx_needs_barrier, case UNSPEC_VOLATILE): to here.
7192 * config/ia64/ia64.md (pr_restore): Change UNSPEC to UNSPEC_VOLATILE.
7193
7194 Thu Mar 23 16:04:40 2000 Andrew Haley <aph@cygnus.com>
7195
7196 * config/mips/mips.md (movdf_internal1a): Delete (set 'f', 'F')
7197 alternative when using -fp64 -gp32.
7198
7199 2000-03-22 Jason Merrill <jason@casey.cygnus.com>
7200
7201 * config/rs6000/rs6000.h (DWARF_FRAME_RETURN_COLUMN): Define.
7202 * config/alpha/alpha.h (DWARF_FRAME_RETURN_COLUMN): Define.
7203 * config/sparc/sparc.h (DWARF_FRAME_RETURN_COLUMN): Define.
7204
7205 * frame.h (frame_state): Revert last change.
7206 * frame.c (execute_cfa_insn): Just don't record the save of a CFA reg.
7207 * libgcc2.c (throw_helper): Revert last change.
7208
7209 2000-03-22 Richard Henderson <rth@cygnus.com>
7210
7211 * stmt.c (expand_asm_operands): Don't promote the temporary.
7212
7213 2000-03-22 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
7214
7215 * builtin.c (get_pointer_alignment): Use DECL_P and TYPE_P macros.
7216 * c-common.c (decl_attributes,check_format_info,truthvalue_conversion,
7217 c_get_alias_set): Likewise.
7218 * c-decl.c (duplicate_decls): Likewise.
7219 * c-typeck.c (default_conversion,build_unary_op): Likewise.
7220 * calls.c (initialize_argument_information): Likewise.
7221 * dwarf2out.c (decl_class_context,add_abstract_origin_attribute):
7222 Likewise.
7223 * dwarfout.c (decl_class_context,output_type): Likewise.
7224 * expr.c (get_inner_reference): Likewise.
7225 * fold-const.c (simple_operand_p,fold): Likewise.
7226 * function.c (aggregate_value_p): Likewise.
7227 * stmt.c (expand_asm_operands): Likewise.
7228 * varasm.c (named_section): Likewise.
7229
7230 2000-03-22 Jason Merrill <jason@casey.cygnus.com>
7231
7232 Implement dwarf2 exception handling for the ARM.
7233 * config/arm/arm.h (INCOMING_RETURN_ADDR_RTX): Define.
7234 (DWARF_FRAME_RETURN_COLUMN): Define.
7235 * config/arm/arm.c (emit_multi_reg_push): Return rtx. Attach
7236 REG_FRAME_RELATED_EXPR note.
7237 (emit_sfm): Likewise.
7238 (arm_expand_prologue): Set RTX_FRAME_RELATED_P on everything.
7239 * dwarf2out.c (reg_save): Handle saving a register to itself.
7240 (dwarf2out_frame_debug_expr): Handle an intermediate cfa reg.
7241 * except.c (eh_regs): Don't use the static chain reg if it's
7242 callee-saved.
7243 * frame.h (frame_state): Add cfa_saved field.
7244 * frame.c (execute_cfa_insn): Set it.
7245 * libgcc2.c (throw_helper): Don't adjust sp if it's restored in
7246 the epilogue.
7247 * function.c (ARG_POINTER_CFA_OFFSET): Default to FIRST_PARM_OFFSET.
7248 Now takes a parm.
7249 (instantiate_virtual_regs): Adjust.
7250 * tm.texi: Adjust.
7251 * config/m68k/m68k.h (ARG_POINTER_CFA_OFFSET): Don't define.
7252 * config/ns32k/ns32k.h (ARG_POINTER_CFA_OFFSET): Don't define.
7253 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): Take a parm.
7254
7255 * dwarf2out.c (reg_number): Refer to FIRST_PSEUDO_REGISTER.
7256 (initial_return_save): Use DWARF_FRAME_REGNUM, not reg_number.
7257
7258 2000-03-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7259
7260 * builtins.def: New file.
7261
7262 * Makefile.in (TREE_H): Depend on builtins.def.
7263
7264 * builtins.c (built_in_names): Use builtins.def.
7265
7266 * tree.h (built_in_function): Likewise.
7267
7268 2000-03-22 Mark Mitchell <mark@codesourcery.com>
7269
7270 * tree.c (size_in_bytes): Return size_zero_node, not
7271 integer_zero_node.
7272
7273 2000-03-22 Geoff Keating <geoffk@cygnus.com>
7274
7275 * config/fp-bit.c (pack_d): Correct the case when a denormal
7276 is rounded up and stops being denormal.
7277
7278 2000-03-21 Richard Henderson <rth@cygnus.com>
7279
7280 * config/alpha/alpha.c (function_arg): Check for void_type_node
7281 before using MUST_PASS_IN_STACK.
7282
7283 2000-03-21 Stephane Carrez <stcarrez@worldnet.fr>
7284
7285 * regmove.c (combine_stack_adjustments_for_block): Check that
7286 the stack pointer is a valid memory address.
7287
7288 Wed Mar 22 11:44:50 MET 2000 Jan Hubicka <jh@suse.cz>
7289
7290 * calls.c: re-install Mar 16 emit_library_call merge.
7291
7292 2000-03-21 Jakub Jelinek <jakub@redhat.com>
7293
7294 * config/sparc/sparc.c (mem_min_alignment): If not optimizing,
7295 we cannot be sure that if reload_completed base register will
7296 be properly aligned.
7297
7298 2000-03-21 Richard Henderson <rth@cygnus.com>
7299
7300 * flow.c (delete_block): Fix typo last change.
7301
7302 2000-03-21 Mark Mitchell <mark@codesourcery.com>
7303
7304 * c-common.c (c_expand_expr_stmt): Use COMPLETE_TYPE_OR_VOID_P,
7305 not COMPLETE_TYPE_P, to check the type of the expression.
7306
7307 2000-03-21 Michael Meissner <meissner@redhat.com>
7308
7309 * config/alpha/alpha.md (floating point insns): Add TARGET_FP to
7310 all floating point insns that just tested the macro
7311 TARGET_HAS_XFLOATING_LIBS.
7312 (movsf/movdf recognizers): Add separate insns if -mno-fp-regs is
7313 used to only use the gprs.
7314
7315 2000-03-21 Nathan Sidwell <nathan@codesourcery.com>
7316
7317 * tree.h (COMPLETE_TYPE_P): New macro.
7318 (COMPLETE_OR_VOID_TYPE_P): New macro.
7319 (COMPLETE_OR_UNBOUND_ARRAY_TYPE_P): New macro.
7320 * stor-layout.c (layout_type, case VOID_TYPE): Don't set TYPE_SIZE.
7321 * c-aux-info.c (gen_type): Use them.
7322 * c-common.c (c_expand_expr_stmt): Likewise.
7323 * c-decl.c (poplevel, pushdecl, start_decl, finish_decl,
7324 grokdeclarator, grokparms, finish_struct, start_function,
7325 store_parm_decls, combine_parm_decls): Likewise.
7326 * c-parse.y (cast_expr): Likewise.
7327 * c-typeck.c (require_complete_type, c_sizeof, c_sizeof_nowarn,
7328 c_size_in_bytes, c_alignof, build_component_ref,
7329 build_indirect_ref, build_array_ref, convert_arguments,
7330 build_binary_op, pointer_diff, build_unary_op, digest_init: Likewise.
7331 * calls.c (initialize_argument_information): Likewise.
7332 * convert.c (convert_to_integer): Likewise.
7333 * dbxout.c (dbxout_typedefs, dbxout_type, dbxout_symbol): Likewise.
7334 * dwarfout.c (location_or_const_value_attribute,
7335 output_enumeration_type_die, output_structure_type_die,
7336 output_union_type_die, output_type): Likewise.
7337 * expr.c (safe_from_p, expand_expr): Likewise.
7338 * function.c (assign_parms): Likewise.
7339 * sdbout.c (sdbout_symbol, sdbout_one_type): Likewise.
7340 * tree.c (build_array_type, build_function_type,
7341 build_method_type, build_offset_type, build_complex_type): Likewise.
7342 * c-parse.c, c-parse.h: Regenerated.
7343
7344 2000-03-21 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7345
7346 * config/c4x/rtems.h: Include config/rtems.h.
7347
7348 Tue Mar 21 09:24:00 2000 Denis Chertykov <denisc@overta.ru>
7349
7350 * config/avr/avr.c (encode_section_info): sets SYMBOL_REF_FLAG if
7351 decl is a FUNCTION_DECL
7352
7353 Mon Mar 20 19:53:53 2000 Jim Wilson <wilson@cygnus.com>
7354
7355 * config/ia64/ia64.c (ia64_expand_prologue): Don't abort if leaf
7356 function uses output registers. Don't save RP for leaf functions.
7357 Do save RP even if no epilogue.
7358 * config/ia64/ia64.h (FIXED_REGISTERS): Unmark in/out registers.
7359 (CALL_USED_REGISTERS): Unmark in registers.
7360 (REG_ALLOC_ORDER): Move out regs up, to near the top. Move in regs up,
7361 to near the middle.
7362
7363 2000-03-20 Geoff Keating <geoffk@cygnus.com>
7364
7365 * config/rs6000/rs6000.md (bunordered): New expander.
7366 (bordered): New expander.
7367 (buneq): New expander.
7368 (bunge): New expander.
7369 (bungt): New expander.
7370 (bunle): New expander.
7371 (bunlt): New expander.
7372 (bltgt): New expander.
7373
7374 * config/rs6000/rs6000.c (ccr_bit): Handle unordered comparisons.
7375 (ccr_bit_negated_p): New function.
7376 (print_operand): For %C, generate appropriate cror for UNEQ,
7377 UNLT, UNGT, and LTGT. For %T and %t, use ccr_bit_negated_p.
7378
7379 2000-03-20 Andreas Jaeger <aj@suse.de>
7380
7381 * sdbout.c (sdbout_one_type): Add braces to avoid "ambigous else"
7382 warning.
7383
7384 * tree.h (safe_for_unsave): Prototype.
7385
7386 2000-03-20 Richard Henderson <rth@cygnus.com>
7387
7388 * regmove.c (stack_memref_p): Fix typo, reorg for readability.
7389 (combine_stack_adjustments_for_block): Don't allow sp references
7390 in the side of a set we're not fixing up.
7391 * toplev.c (rest_of_compilation): Run combine_stack_adjustments
7392 after life_analysis.
7393
7394 2000-03-20 Richard Henderson <rth@cygnus.com>
7395
7396 * calls.c (expand_call): Don't bother generating tail call
7397 sequences if there are pending cleanups. Use
7398 expand_start_target_temps/expand_end_target_temps to elide
7399 cleanups created during sibcall expansion.
7400
7401 2000-03-20 Geoff Keating <geoffk@cygnus.com>
7402
7403 * configure.in: Set $IFS to a value if it doesn't already have one
7404 in the --enable-checking handling.
7405 * configure: Regenerate.
7406
7407 2000-03-20 Martin v. Löwis <loewis@informatik.hu-berlin.de>
7408
7409 * c-parse.in (SAVE_WARN_FLAGS): Use size_int.
7410 * c-parse.y, c-parse.c, objc/objc-parse.y, objc/objc-parse.c:
7411 Regenerated.
7412
7413 Mon Mar 20 11:43:15 MET 2000 Jan Hubicka <jh@suse.cz>
7414
7415 * jump.c (delete_noop_moves): Remove code attempting to
7416 combine stack adjustments.
7417
7418 2000-03-19 Martin v. Löwis <loewis@informatik.hu-berlin.de>
7419
7420 * emit-rtl.c (push_to_full_sequence, end_full_sequence): New functions.
7421 * except.c (emit_cleanup_handler): Use them.
7422 (expand_end_all_catch): Likewise.
7423 * function.c (fixup_var_refs): Likewise.
7424 (expand_function_end): Clear catch_clauses_last.
7425 * rtl.h (push_to_full_sequence, end_full_sequence): Declare.
7426 * except.h (struct eh_status): New field x_catch_clauses_last.
7427 (catch_clauses_last): New define.
7428
7429 * Makefile.in (tree.o): Depend on HASHTAB_H.
7430 * tree.c: Include hashtab.h.
7431 (struct type_hash): Remove next field.
7432 (TYPE_HASH_SIZE): Remove.
7433 (TYPE_HASH_INITIAL_SIZE): New define.
7434 (type_hash_table): Change type to htab_t.
7435 (type_hash_eq, type_hash_hash, print_type_hash_statistics,
7436 mark_hash_entry): New functions.
7437 (init_obstacks): Allocate type hash.
7438 (type_hash_lookup): Use htab functions.
7439 (type_hash_add, mark_type_hash): Likewise.
7440 (dump_tree_statistics): Call print_type_hash_statistics.
7441
7442 2000-03-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7443
7444 * rs6000/t-aix41: New file.
7445
7446 * configure.in ({rs6000,powerpc}-ibm-aix4.[12]*): Use it.
7447
7448 Sun Mar 19 13:27:30 2000 Hans-Peter Nilsson <hp@axis.com>
7449
7450 * tm.texi (Driver): Fix typos and tweak entry for
7451 INCLUDE_DEFAULTS.
7452 Move misplaced STRUCT_FORCE_BLK entry ...
7453 (Storage Layout): ... to here.
7454 (Run-time Target): Recommend having TARGET_MASK_... helper macros.
7455
7456 2000-03-19 Richard Henderson <rth@cygnus.com>
7457
7458 * flow.c (delete_block): Delete the addr_vec along with the block.
7459 (flow_delete_insn): Decrement LABEL_NUSES when deleting insns that
7460 reference labels.
7461
7462 * fold-const.c (extract_muldiv): Apply type check for defined
7463 overflow to multiply as well as divide.
7464
7465 * stor-layout.c (layout_decl): Don't abort on any zero sized decl.
7466
7467 2000-03-18 Mark Mitchell <mark@codesourcery.com>
7468
7469 * emit-rtl.c (remove_unncessary_notes): Check that all
7470 NOTE_INSN_BLOCK_BEG and NOTE_INSN_BLOCK_END notes have an
7471 associated NOTE_BLOCK.
7472 * function.h (identify_blocks): Update comments.
7473 (reorder_blocks): Declare.
7474 * function.c (identify_blocks): Don't take paramters.
7475 (reorder_blocks): Don't take parameters.
7476 * loop.h (find_loop_tree_blocks): Remove.
7477 (unroll_block_trees): Likewise.
7478 * loop.c (loop_optimize): Don't call find_loop_tree_blocks. Use
7479 reorder_blocks instead of unroll_block_trees.h
7480 * sibcall.c (optimize_sibling_and_tail_recursive_calls): Likewise.
7481 * stmt.c (find_loop_tree_blocks): Remove.
7482 (unroll_block_trees): Likewise.
7483 * toplev.c (rest_of_compilation): Don't call find_loop_tree_blocks
7484 in whole-function mode.
7485 * tree.h (reorder_blocks): Remove declaration.
7486
7487 * expr.c: Include intl.h.
7488 * Makefile.in (expr.o): Depend on intl.h.
7489
7490 2000-03-18 Richard Henderson <rth@cygnus.com>
7491
7492 * expr.c (emit_move_insn_1): Clarify cannot_inline message.
7493
7494 2000-03-18 Mark Mitchell <mark@codesourcery.com>
7495
7496 * tree.h (tree_index): Remove enumerals for integer types.
7497 (integer_type_kind): New type.
7498 (integer_types): New variable.
7499 (char_type_node): Adjust.
7500 (signed_char_type_node): Likewise.
7501 (unsigned_char_type_node): Likewise.
7502 (short_integer_type_node): Likewise.
7503 (short_unsigned_type_node): Likewise.
7504 (integer_type_node): Likewise.
7505 (unsigned_type_node): Likewise.
7506 (long_integer_type_node): Likewise.
7507 (long_unsigned_type_node): Likewise.
7508 (long_long_integer_type_node): Likewise.
7509 (long_long_unsigned_type_node): Likewise.
7510 * tree.c (integer_types): New variable.
7511 (init_obstacks): Register it as a root.
7512
7513 Sat Mar 18 14:38:00 2000 Jason Eckhardt <jle@cygnus.com>
7514
7515 * bb-reorder.c (reorder_basic_blocks): Update PREV_INSN as well as
7516 NEXT_INSN. Update last insn in chain.
7517
7518 2000-03-17 Jason Merrill <jason@casey.cygnus.com>
7519
7520 * dwarf2out.c (dwarf2out_decl): Don't emit anything for types
7521 with TYPE_DECL_SUPPRESS_DEBUG set.
7522
7523 2000-03-18 Richard Henderson <rth@cygnus.com>
7524
7525 * flow.c (make_edges): Use INTVAL to access REG_EH_REGION value.
7526
7527 2000-03-18 Richard Henderson <rth@cygnus.com>
7528
7529 * i386.c (call_insn_operand): Always allow SYMBOL_REF,
7530 care for HALF_PIC_P.
7531 (expander_call_insn_operand): Remove.
7532 (ix86_expand_epilogue): New arg `emit_return' to control return insn.
7533 * i386.h (PREDICATE_CODES): Update.
7534 * i386.md (all call expanders): Remove predicates, remove special
7535 handling for half-pic.
7536 (*call_1, *call_value_1): Handle SIBLING_CALL_P insns.
7537 (*call_pop_pic2, *call_pic2, *call_value_pop_2, *call_value_2): Remove.
7538 (sibcall_epilogue): New.
7539
7540 2000-03-17 Richard Henderson <rth@cygnus.com>
7541
7542 * rtlanal.c (single_set): Reject if the parallel has anything
7543 except SET or USE or CLOBBER.
7544
7545 2000-03-17 Jeff Law <law@cygnus.com>
7546 Richard Henderson <rth@cygnus.com>
7547
7548 * Makefile.in (OBJS): Add sibcall.o.
7549 (sibcall.o): New.
7550 * sibcall.c: New file.
7551 * calls.c (FUNCTION_OK_FOR_SIBCALL): Provide default.
7552 (ECF_IS_CONST, ECF_NOTHROW, ECF_SIBCALL): New.
7553 (emit_call_1): Replace `is_const' and `nothrow' with `ecf_flags'.
7554 Emit sibcall patterns when requested. Update all callers.
7555 (expand_call): Generate CALL_PLACEHOLDER insns when tail call
7556 elimination seems feasable.
7557 * final.c (leaf_function_p): Sibling calls don't discount being
7558 a leaf function.
7559 * flow.c (HAVE_sibcall_epilogue): Provide default.
7560 (find_basic_blocks_1): Sibling calls don't throw.
7561 (make_edges): Make edge from sibling call to EXIT.
7562 (propagate_block): Don't remove sibcall_epilogue insns.
7563 * function.c (prologue, epilogue): Turn into varrays. Update all uses.
7564 (sibcall_epilogue): New.
7565 (fixup_var_refs): Scan CALL_PLACEHOLDER sub-sequences.
7566 (identify_blocks_1): Likewise. Break out from ...
7567 (identify_blocks): ... here.
7568 (reorder_blocks_1): Scan CALL_PLACEHOLDER. Break out from ...
7569 (reorder_blocks): ... here.
7570 (init_function_for_compilation): Zap prologue/epilogue as varrays.
7571 (record_insns): Extend a varray instead of mallocing new memory.
7572 (contains): Read a varray not array of ints.
7573 (sibcall_epilogue_contains): New.
7574 (thread_prologue_and_epilogue_insns): Emit and record
7575 sibcall_epilogue patterns.
7576 (init_function_once): Allocate prologue/epilogue varrays.
7577 * genflags.c (gen_insn): Treat sibcall patterns as calls.
7578 * integrate.c (save_parm_insns): Recurse on CALL_PLACEHOLDER patterns.
7579 Broken out from ...
7580 (save_for_inline_nocopy): ... here.
7581 (copy_insn_list): Recurse on CALL_PLACEHOLDER patterns.
7582 Broken out from ...
7583 (expand_inline_function): ... here.
7584 (copy_rtx_and_substitute): Handle NOTE_INSN_DELETED_LABEL.
7585 (subst_constants): Handle 'n' formats.
7586 * jump.c (jump_optimize_minimal): New.
7587 (jump_optimize_1): New arg `minimal'; update callers. Elide most
7588 optimizations if it's set.
7589 * rtl.c (copy_rtx): Do copy jump & call for insns.
7590 * rtl.h (struct rtx_def): Document use of jump and call for insns.
7591 (SIBLING_CALL_P): New.
7592 (sibcall_use_t): New.
7593 * toplev.c (rest_of_compilation): Do init_EXPR_INSN_LIST_cache earlier.
7594 Invoke optimize_sibling_and_tail_recursive_calls.
7595 * tree.c (lang_safe_for_unsave): New.
7596 (safe_for_unsave): New.
7597 * tree.h (lang_safe_for_unsave, safe_for_unsave): Declare.
7598
7599 * alpha.h (FUNCTION_OK_FOR_SIBCALL): New.
7600 * alpha.md (sibcall, sibcall_value, sibcall_epilogue): New.
7601 (*sibcall_osf_1, *sibcall_value_osf_1): New.
7602
7603 2000-03-17 Mark Mitchell <mark@codesourcery.com>
7604
7605 * objc/objc-act.c (encode_method_prototype): Pass types, not
7606 PARM_DECLs, to int_size_in_bytes.
7607
7608 Fri Mar 17 11:51:34 2000 Jim Wilson <wilson@cygnus.com>
7609
7610 * config/ia64/ia64.md (mix4right_3op): Swap %1 and %2 in template.
7611
7612 * config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
7613 config/ia64/ia64.md, config/ia64/xm-ia64.h: Fix copyrights again.
7614
7615 Fri Mar 17 08:09:14 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7616
7617 * Clean up usages of TREE_INT_CST_LOW.
7618 * c-parse.in (RESTORE_WARN_FLAGS): Use tree_low_cst.
7619 * c-parse.y, c-parse.c, objc/objc-parse.y, objc/objc-parse.c:
7620 Regenerated.
7621 * c-tree.h (min_precision): Move declaration to here.
7622 * c-typeck.c (build_binary_op): Use host_integerp and tree_low_cst.
7623 (build_unary_op, add_pending_init): Use bit_position.
7624 (pending_init_member, process_init_element): Likewise.
7625 (really_start_incremental_init, push_init_level, pop_init_level):
7626 Don't make copies of nodes or modify them in place, use consistent
7627 types when tracking positions, and use tree routines computations.
7628 (set_init_index, output_init_element): Likewise.
7629 (output_pending_init_elements, process_init_element): Likewise.
7630 * dbxout.c (dbxout_type_fields): Use bit_position, host_integerp,
7631 tree_low_cst and int_bit_position; also minor cleanup.
7632 (dbxout_type_method_1, dbxout_range_type, dbxout_type): Likewise.
7633 (print_cst_octal): Precision is unsigned.
7634 (dbxout_symbol): Ensure DECL_INITIAL is in-range and use tree_low_cst.
7635 * dwarf2out.c (ceiling): Input and output are unsigned HOST_WIDE_INT.
7636 (simple_type_align_in_bits): Result is unsigned int.
7637 Use tree_int_low_cst and host_integerp.
7638 (simple_type_size_in_bits): Result is unsigned HOST_WIDE_INT.
7639 (field_byte_offset): Result is HOST_WIDE_INT.
7640 Change types of internal variables so alignments are unsigned int,
7641 offsets are HOST_WIDE_INT and sizes are unsigned HOST_WIDE_INT.
7642 Use host_integerp, tree_low_cst, and int_bit_position.
7643 (add_bit_offset_attribute): Likewise.
7644 (add_data_member_location_attribute): Use tree_cst_low.
7645 (add_bound_info): Use host_integerp, integer_zerop, and integer_onep.
7646 (add_bit_size_attribute): Use tree_low_cst.
7647 (add_pure_or_virtual_attribute, gen_enumeration_type_die): Likewise.
7648 * dwarfout.c: Similar changes to dwarf2out.c.
7649 * expr.c (expand_expr, case ARRAY_REF): Remove redundant code.
7650 * genoutput.c (n_occurences): Return -1 for null string.
7651 (strip_whitespace): Accept null string and make into function.
7652 (scan_operands): Reflect above changes.
7653 * sdbout.c (plain_type_1): Use host_integerp and tree_low_cst.
7654 (sdbout_field_types, sdbout_one_type): Likewise; also use bit_position.
7655 * ssa.c (rename_registers): Add missing cast of arg to bzero.
7656 * tree.c (int_size_in_bytes): Check for too big to represent.
7657 (bit_position, int_bit_position, host_integerp, tree_low_cst): New fns.
7658 * tree.h (host_integerp, tree_low_cst, bit_position, int_bit_position):
7659 New declarations.
7660 (min_precision): Delete from here.
7661 * varasm.c (decode_addr_const): Use host_integerp, bit_position,
7662 and int_bit_position.
7663 * objc/objc-act.c (encode_method_prototype): Sizes are HOST_WIDE_INT.
7664 (encode_method_def): Likewise.
7665 (build_ivar_list_initializer): Use int_bit_position.
7666 (generate_shared_structures): Convert size.
7667 (encode_type, encode_complete_bitfield): Use integer_zerop.
7668 (encode_bitfield): Use tree_low_cst and int_bit_position.
7669
7670 2000-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7671
7672 * config/c4x/c4x.h (CPP_SPEC): Fix typo.
7673
7674 2000-03-17 Martin v. Löwis <loewis@informatik.hu-berlin.de>
7675
7676 * call.c (special_function_p): It is only malloc if it returns
7677 Pmode.
7678
7679 2000-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7680
7681 * config/c4x/c4x.h (ASM_SPEC, CPP_SPEC, LINK_SPEC): Support C33.
7682 (C33_FLAG, TARGET_C3X): Add macros.
7683 (TARGET_SWITCHES): Add -m33 option.
7684 * config/c4x/c4x.c (c4x_override_options): Test for TARGET_C33.
7685
7686 2000-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7687
7688 * config/c4x/c4x.h (PARALLEL_INSN_FLAG): Add.
7689 (PARALLEL_PACK_FLAG): Delete.
7690 (TARGET_SWITCHES): Update.
7691 (TARGET_PARALLEL): Use PARALLEL_INSN_FLAG.
7692
7693 Thu Mar 16 18:52:32 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7694
7695 * fold-const.c (fold): Fix a few cases when the returned result
7696 is not of the same type as the input.
7697
7698 2000-03-16 Nick Clifton <nickc@cygnus.com>
7699
7700 * config/arm/arm.h (ASM_OUTPUT_MI_THUNK): Fix compile time
7701 warning.
7702
7703 2000-03-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7704
7705 * libgcc2.h: Move prototypes above macros with the same name.
7706 Wrap some function prototypes in the conditional which indicates
7707 whether they are supported, i.e. "BITS_PER_UNIT == 8".
7708
7709 2000-03-16 Richard Henderson <rth@cygnus.com>
7710
7711 * calls.c: Revert last two changes.
7712
7713 2000-03-16 Bernd Schmidt <bernds@cygnus.co.uk>
7714
7715 * fp-bit.c (_unpack_d): If NO_DENORMALS is defined, anything that
7716 has exponent 0 is a zero.
7717
7718 * simplify-rtx.c (hash_rtx, case MEM/REG): Take into account that
7719 HASH may already be nonzero. Add code/mode into hash value
7720 immediately after repeat label.
7721 (cselib_lookup): Don't leave the hash table in an inconsistent
7722 state before a hash lookup operation.
7723
7724 Thu Mar 16 17:03:10 MET 2000 Jan Hubicka <jh@suse.cz>
7725
7726 * i386.md (all HI and QI mode non-move patterns): Conditionize
7727 by TARGET_[HQ]IMODE_MATH.
7728 * i386.h (x86_himode_math, x86_qimode_math, x86_promote_hi_regs,
7729 x86_promote_qi_regs): Declare.
7730 (TARGET_HIMODE_MATH, TARGET_QIMODE_MATH, TARGET_PROMOTE_HI_REGS,
7731 TARGET_PROMOTE_QI_REGS): New macros.
7732 (PROMOTE_MODE): New macro.
7733 * i386.c (x86_himode_math, x86_qimode_math, x86_promote_hi_regs,
7734 x86_promote_qi_regs): New global variables.
7735
7736 Thu Mar 16 16:50:44 MET 2000 Jan Hubicka <jh@suse.cz>
7737
7738 * calls.c (emit_library_call_value_1): Break out from ...; handle
7739 VOIDmode function calls too.
7740 (emit_library_call_value): ... here.
7741 (emit_library_call): Implement by calling emit_library_call_value_1.
7742
7743 Thu Mar 16 16:01:30 MET 2000 Jan Hubicka <jh@suse.cz>
7744
7745 * calls.c (expand_call): Do sanity checking on arg_space_so_far.
7746 Update arg_space_so_far on stack adjustments.
7747 (emit_library_call, emit_library_call_value): Likewise; take into
7748 account arg_space_so_far and pending_stack_adjust when calculcating
7749 the boundary.
7750
7751 Thu Mar 16 09:02:19 2000 Jason Eckhardt <jle@cygnus.com>
7752
7753 * flow.c: Move all basic block reordering code into its own file.
7754 (create_basic_block): Externalize.
7755 * bb-reorder.c: New file. Copy all basic block reordering code from
7756 flow.c to this file.
7757 (reorder_basic_blocks): Fix fencepost error in for-loop.
7758 (reorder_basic_blocks): Remove braces from single statement for-loops.
7759 * basic-block.h: Add declaration for create_basic_block.
7760 * Makefile.in: Add rules for bb-reorder.o.
7761
7762 2000-03-16 Neil Booth <NeilB@earthling.net>
7763
7764 * cppinit.c (handle_option): Implement #unassert directive
7765 as -A- command line option.
7766 (print_help): Update.
7767 * cpptexi.c: Update.
7768
7769 Thu Mar 16 02:14:16 2000 Hans-Peter Nilsson <hp@bitrange.com>
7770
7771 * md.texi (Standard Names): Document `jump'.
7772
7773 2000-03-15 Jason Merrill <jason@casey.cygnus.com>
7774
7775 * calls.c (emit_call_1): Nothrow functions can still have nonlocal
7776 gotos.
7777
7778 2000-03-15 Geoff Keating <geoffk@cygnus.com>
7779
7780 Merge changes from newppc-branch onto trunk.
7781
7782 2000-03-15 Geoff Keating <geoffk@cygnus.com>
7783
7784 * rs6000.c (toc_hash_table): Update for new hash table functions.
7785 (toc_hash_function): Likewise.
7786 (toc_hash_eq): Likewise.
7787 (toc_hash_mark_entry): Likewise.
7788 (toc_hash_mark_table): Likewise.
7789 (output_toc): Likewise.
7790 (rs6000_add_gc_roots): Likewise.
7791
7792 2000-03-15 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
7793
7794 * t-aix43 (AR_FOR_TARGET): Deleted. Moved `-X32_64'...
7795 (AR_FLAGS_FOR_TARGET): here. New macro.
7796
7797 2000-03-05 Clinton Popetz <cpopetz@cygnus.com>
7798
7799 * config/rs6000/rs6000.c (rs6000_fpmem_offset, rs6000_fpmem_size,
7800 fpmem_operand) Delete.
7801 (xer_operand) New.
7802 (rs6000_reg_names, alt_reg_names): Change fpmem to xer.
7803 (machine_function): Remove fpmem_size, fpmem_offset, save_toc_p.
7804 (rs6000_save_machine_status, rs6000_restore_machine_status,
7805 rs6000_init_expanders, rs6000_stack_info, debug_stack_info): Remove
7806 references to above variables.
7807 (gpc_reg_operand): Use XER_REGNO_P instead of FPMEM_REGNO_P.
7808 * config/rs6000/rs6000.h (REG_ALLOC_ORDER, REGISTER_NAMES,
7809 DEBUG_REGISTER_NAMES): Chagne fpmem to xer.
7810 (FPMEM_REGNO_P, FPMEM_REGNUM): Delete.
7811 (XER_REGNO_P, XER_REGNO): New.
7812 (rs6000_stack): Remove fpmem_p, fpmem_offset, fpmem_size.
7813 (PREDICATE_CODES): Change fpmem_operand to xer_operand.
7814 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Change FPMEM_REGNO_P to
7815 XER_REGNO_P.
7816 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS,
7817 REG_CLASS_FROM_LETTER, CLASS_MAX_NREGS): Change FPMEM_REGS to XER_REGS, and remove FLOAT_OR_FPMEM_REGS.
7818 (CLASS_CANNOT_CHANGE_SIZE): Change to FLOAT_REGS.
7819
7820 2000-02-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7821
7822 * aix.h (FP_SAVE_INLINE, ASM_OUTPUT_INTERNAL_LABEL_PREFIX,
7823 TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Move here...
7824 * rs6000.h: from here.
7825
7826 * rs6000-protos.h (rs6000_select_section): Provide prototype.
7827 (rs6000_select_rtx_section): Likewise.
7828 (rs6000_encode_section_info): Likewise.
7829 (sdata_section): Likewise.
7830 (sdata2_section): Likewise.
7831 (sbss_section): Likewise.
7832 * sysv4.h (rs6000_select_section): Delete prototype.
7833 (rs6000_select_rtx_section): Likewise.
7834 (rs6000_encode_section_info): Likewise.
7835 (sdata_section): Likewise.
7836 (sdata2_section): Likewise.
7837 (sbss_section): Likewise.
7838 (REG_SAVE_AREA): Delete definition duplicated in rs6000.h.
7839
7840 * sysv4.h: Delete various unnecessary #undef's and put a comment
7841 on the remaining ones.
7842 Change various comments according to coding standard.
7843
7844 2000-02-29 Clinton Popetz <cpopetz@cygnus.com>
7845
7846 * config/rs6000/rs6000.h (MQ_REGNO, CR0_REGNO, CR1_REGNO, CR2_REGNO,
7847 CR3_REGNO, CR4_REGNO, MAX_CR_REGNO): Define.
7848 (CR0_REGNO_P) Remove.
7849 * config/rs6000/rs6000.c (gpc_reg_operand, and64_operand, and_operand,
7850 setup_incoming_varargs, mtcrf_operation, print_operand,
7851 rs6000_stack_info, rs6000_emit_prologue, rs6000_emit_epilogue):
7852 Use the above macros.
7853
7854 2000-02-24 Clinton Popetz <cpopetz@cygnus.com>
7855
7856 * config/rs6000/rs6000.md: Added a new alternative for each
7857 pattern that had a 'x' alternative but no 'y' alternative.
7858 Added a new split for each of the above patterns.
7859
7860 2000-02-18 Geoff Keating <geoffk@cygnus.com>
7861
7862 * aix41.h (ASM_CPU_SPEC): Delete.
7863 (CPP_CPU_SPEC): Delete.
7864
7865 * aix.h (RS6000_OUTPUT_BASENAME): Define.
7866 (ASM_OUTPUT_LABEL): Define.
7867 (ASM_GLOBALIZE_LABEL): Define.
7868 (STRIP_NAME_ENCODING): Define.
7869 * rs6000.h (RS6000_OUTPUT_BASENAME): Don't define.
7870 (STRIP_NAME_ENCODING): Don't define.
7871 (ASM_OUTPUT_LABEL): Don't define.
7872 (ASM_GLOBALIZE_LABEL): Don't define.
7873 * sysv4.h (ASM_DECLARE_FUNCTION_NAME): Use assemble_name to output
7874 names, and ASM_OUTPUT_LABEL to output labels, rather than
7875 asm_fprintf.
7876 (ASM_OUTPUT_LABEL): Define.
7877 (ASM_OUTPUT_INT): Use assemble_name.
7878 (ASM_OUTPUT_DWARF_ADDR): Use assemble_name.
7879 (STRIP_NAME_ENCODING): Don't undefine first.
7880 (RS6000_OUTPUT_BASENAME): Make equivalent to assemble_name for
7881 ELF.
7882 (ASM_OUTPUT_LABELREF): Don't prepend underscores to labels
7883 specified with 'asm' even with -fleading-underscore.
7884 * rs6000.c (print_operand): Use assemble_name when !TARGET_AIX.
7885 (output_epilog): Likewise.
7886 (output_toc): Likewise.
7887 * tramp.asm: Handle -fleading-underscore correctly.
7888
7889 * rs6000.md (builtin_setjmp_receiver): Also run for -fPIC and
7890 -mminimal-toc.
7891 (nonlocal_goto_receiver): Delete.
7892 * rs6000.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Delete.
7893
7894 * rs6000.h (ASM_OUTPUT_DEF): Don't define.
7895 (SET_ASM_OP): Define.
7896 * sysv4.h (ASM_OUTPUT_DEF): Don't undefine.
7897
7898 * rs6000.h (ASM_OUTPUT_ADDR_VEC_ELT): Don't define.
7899 (ASM_LONG): Define.
7900
7901 * rs6000.c (rs6000_dll_import_ref): Delete, not used.
7902 * rs6000-protos.h (rs6000_dll_import_ref): Delete.
7903
7904 * rs6000.h: Add 'u' to more constants.
7905
7906 2000-02-18 David Edelsohn <edelsohn@gnu.org>
7907
7908 * rs6000.md (mfcr+shift): Delete PowerPC64 version.
7909
7910 2000-02-15 David Edelsohn <edelsohn@gnu.org>
7911
7912 * rs6000.c (reg_or_u_cint_operand): New function.
7913 (logical_operand): Handle 64-bit hosts.
7914 (logical_u_operand): New function.
7915 (non_logical_cint_operand): Handle 64-bit hosts.
7916 (non_logical_u_cint_operand): New function.
7917 * rs6000.h (DATA_SECTION_ASM_OP): Add tab.
7918 (PREDICATE_CODES): Define new functions.
7919 * rs6000-protos.h: Declare new functions.
7920 * rs6000.md (iordi3, xordi3): Constant int must be unsigned 32-bits.
7921 (movdi_64): Bracket code intended for 64-bit hosts. Create
7922 CONST_DOUBLE for 32-bit values.
7923 (scc insns): Generate DImode compares.
7924 (mfcr insns): Create DImode versions.
7925 (sge matchers): New patterns.
7926
7927 2000-02-15 Gabriel Paubert <paubert@iram.es>
7928
7929 * rs6000.md: Correct instructions length attributes and
7930 constraints on unsigned compare instructions.
7931 (*ne0): Disable for PowerPC64.
7932
7933 2000-02-11 Geoff Keating <geoffk@cygnus.com>
7934
7935 * rs6000.c (output_function_profiler): Use .long for a 32-bit
7936 quantity, fix profile1.C test failure under -fPIC.
7937
7938 * rs6000.c: Add 'u' to many constants to suppress warnings.
7939 (constant_pool_expr_1): Make static.
7940 (rs6000_emit_eh_toc_restore): Remove unused 'r2'.
7941 * rs6000.h: Add 'u' to many constants to suppress warnings.
7942
7943 * rs6000.c (rs6000_emit_load_toc_table): Use LCTOC..1 under AIX
7944 for the start of the TOC, instead of LCTOC..0.
7945 * aix.h (toc_section): Use LCTOC..1 under AIX for the start
7946 of the TOC.
7947 * rs6000.md (load_toc_aix_si): Use LCTOC..1.
7948 (load_toc_aix_di): Use LCTOC..1.
7949
7950 * rs6000.h (LEGITIMIZE_ADDRESS): Turn into a function.
7951 * rs6000.c (rs6000_legitimize_address): New function from
7952 LEGITIMIZE_ADDRESS. Only use create_TOC_reference on
7953 symbols in the constant pool that really are TOC references.
7954 (print_operand_address): For ELF, write TOC offsets under
7955 -fPIC as subtractions in the insn.
7956 (output_toc): For ELF, define symbols in TOC as normal labels,
7957 to match RTL.
7958 (create_TOC_reference): Use gen_rtx_PLUS rather than gen_rtx.
7959 * rs6000-protos.h (rs6000_legitimize_address): Prototype.
7960 (create_TOC_reference): Prototype only when RTX_CODE is defined.
7961 * rs6000.md (movsi): Only use create_TOC_reference on
7962 symbols in the constant pool that really are TOC references.
7963
7964 * rs6000.h (MACHINE_DEPENDENT_REORG): Don't define.
7965 * rs6000.c (rs6000_reorg): Delete.
7966 * rs6000-protos.h (rs6000_reorg): Delete.
7967
7968 2000-02-09 Geoff Keating <geoffk@cygnus.com>
7969
7970 * rs6000.h (INCOMING_RETURN_ADDR_RTX): New macro.
7971
7972 * aix.h (SETUP_FRAME_ADDRESSES): Define.
7973 * rs6000.c [TARGET_AIX] (insn_after_throw): New static variable.
7974 [TARGET_AIX] (rs6000_aix_emit_builtin_unwind_init): New function.
7975 [TARGET_AIX] (rs6000_emit_eh_toc_restore): New function.
7976 * rs6000-protos.h: Prototype rs6000_emit_eh_toc_restore,
7977 rs6000_aix_emit_builtin_unwind_init.
7978 * rs6000.md (eh_epilogue) [TARGET_AIX]: Call
7979 rs6000_emit_eh_toc_restore on AIX.
7980 (return_eh_si): Use r2.
7981 (return_eh_di): Use r2.
7982
7983 * aix43.h: Turn on HAS_INIT_SECTION and LD_INIT_SWITCH,
7984 since we're breaking binary compatibility anyway.
7985
7986 2000-02-09 Clinton Popetz <cpopetz@cygnus.com>
7987
7988 * config/rs6000/rs6000-protos.h: (get_TOC_alias_set, uses_TOC,
7989 constant_pool_expr_p): Declare them.
7990 (constant_pool_expr_p): Declare it.
7991 * config/rs6000/rs6000.c (toc_label_name): Define.
7992 (rs6000_override_options): Set toc_label_name.
7993 (input_operand): Allow any TOC_RELATIVE_EXPR_P.
7994 (get_TOC_alias_set, constant_pool_expr_p, constant_pool_expr_1,
7995 uses_TOC): New functions.
7996 (print_operand): Delete old '*' case.
7997 (print_operand_address): Use LEGITIMATE_CONSTANT_POOL_ADDRESS_P,
7998 and strip off rtl for TOC before calling output_addr_const.
7999 (rs6000_emit_load_toc_table): Use toc_label_name.
8000 * config/rs6000/rs6000.h (TARGET_SWITCHES): Make msched-prolog
8001 the default.
8002 (LEGITIMATE_CONSTANT_POOL_BASE_P): Delete.
8003 (CONSTANT_POOL_EXPR_P, TOC_RELATIVE_EXPR_P): New macros.
8004 (LEGITIMATE_CONSTANT_POOL_ADDRESS_P): Use CONSTANT_POOL_EXPR_P.
8005 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Turn symbol_refs
8006 into explicit TOC_REGISTER offsets.
8007 (TOC_REGISTER): New macro.
8008 * config/rs6000/rs6000.md (movsi, movdi): Emit rtl under
8009 TARGET_TOC to reference TOC_REGISTER.
8010 (load_toc_v4_PIC_1b): Add 4 to offset for toc reload.
8011 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Call
8012 uses_TOC before emitting label references.
8013
8014 2000-02-05 Geoff Keating <geoffk@cygnus.com>
8015
8016 * rs6000.md (stack_tie): Fix warning.
8017
8018 * eabi-ctors.c: Use 'asm' names for the start/end variables,
8019 to handle -fleading-underscore.
8020 * sysv4.h (ASM_DECLARE_FUNCTION_NAME): Use asm_fprintf and %U.
8021 (USER_LABEL_PREFIX): New macro.
8022 (ASM_OUTPUT_INTERNAL_LABEL_PREFIX): Use asm_fprintf and %L.
8023 (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
8024 * t-ppccomm (MULTILIB_MATCHES_SYSV): Note that call-sysv and
8025 call-linux can use the same multilibs.
8026 * t-ppcgas (MULTILIB_OPTIONS): Don't need to have separate call-sysv
8027 and call-linux multilibs. Do multilib with -fleading-underscore.
8028 (MULTILIB_DIRNAMES): Follow MULTILIB_OPTIONS change.
8029 (MULTILIB_EXCEPTIONS): Remove call-linux exceptions. Add restrictions
8030 to call-aix.
8031
8032 * sysv4.h (CPP_SYSV_SPEC): Define _SOFT_FLOAT for all those CPUs that
8033 have MASK_SOFT_FLOAT set.
8034 (CPP_FLOAT_DEFAULT_SPEC): New macro.
8035 (SUBTARGET_EXTRA_SPECS): Set `cpp_float_default' to the value of
8036 CPP_FLOAT_DEFAULT_SPEC.
8037
8038 * rs6000.c (ccr_bit): Add some consistency checks and a variable 'reg'.
8039 * rs6000.md: Whitespace change.
8040 * sysv4.h (LINK_TARGET_SPEC): Whitespace change.
8041 * sysv4le.h (LINK_TARGET_SPEC): Whitespace change.
8042
8043 2000-02-05 Geoff Keating <geoffk@cygnus.com>
8044
8045 * rs6000.md (eh_epilogue): New expander.
8046 (eh_reg_restore): New expand/split/insn combination.
8047 (return_eh_si): New insn.
8048 (return_eh_di): New insn.
8049
8050 * eabi-ci.asm: Put a label at the start of the .eh_frame section.
8051 * eabi-cn.asm: Put a zero at the end of the .eh_frame section.
8052 * eabi-ctors.c (__do_global_ctors): Register this object's
8053 frame. Clean up. Call atexit() after the constructors.
8054 (__do_global_dtors): Deregister this object's frame. Clean up.
8055 Allow for recursive calls to exit().
8056 * rs6000.c (fixuplabelno): New variable.
8057 * sysv4.h (ASM_OUTPUT_INT): Don't do .fixup if not
8058 TARGET_RELOCATABLE, it slows down exec() under linux.
8059 (ASM_OUTPUT_DWARF_ADDR): Do .fixup if TARGET_RELOCATABLE.
8060
8061 * aix.h (ASM_OUTPUT_DWARF_ADDR_VAR): New macro.
8062 (ASM_OUTPUT_DWARF_DELTA_VAR): New macro.
8063 (ASM_OUTPUT_DWARF_DELTA2): New macro.
8064 (ASM_OUTPUT_DWARF_DELTA4): New macro.
8065 (ASM_OUTPUT_DWARF_ADDR_DELTA): New macro.
8066 (ASM_OUTPUT_DWARF_ADDR): New macro.
8067 (ASM_OUTPUT_DWARF_DATA4): New macro.
8068 (ASM_OUTPUT_DWARF_DATA2): New macro.
8069 (ASM_OUTPUT_DWARF_OFFSET4): New macro.
8070 (ASM_OUTPUT_DWARF_OFFSET): New macro.
8071 (UNALIGNED_INT_ASM_OP): New macro, fake definition.
8072
8073 2000-02-03 Geoff Keating <geoffk@cygnus.com>
8074
8075 * rs6000.c (rs6000_sr_alias_set): New variable.
8076 (rs6000_override_options): Initialise rs6000_sr_alias_set.
8077 (rs6000_emit_stack_tie): New function.
8078 (rs6000_emit_allocate_stack): Specify RTX_FRAME_RELATED_P
8079 in a way that dwarf2out can understand.
8080 (rs6000_frame_related): New function.
8081 (rs6000_emit_prologue): Use rs6000_sr_alias_set. Specify
8082 RTX_FRAME_RELATED_P in a way that dwarf2out can understand.
8083 Use rs6000_emit_stack_tie when needed.
8084 (rs6000_emit_epilogue): Use rs6000_sr_alias_set. Don't set
8085 RTX_FRAME_RELATED_P. Use rs6000_emit_stack_tie when needed.
8086 * rs6000.md (stack_tie): New insn.
8087 (return_internal_si): Allow return value to be in the count
8088 register.
8089 (return_internal_di): Likewise.
8090
8091 * rs6000.c (output_mi_thunk): Remove unused variable `sp'.
8092
8093 2000-02-03 Geoff Keating <geoffk@cygnus.com>
8094
8095 * sysv4.h (LOCAL_LABEL_PREFIX): Define, for the use of dbxelf.h.
8096
8097 2000-01-31 Geoff Keating <geoffk@cygnus.com>
8098
8099 * rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): New macro.
8100
8101 * rs6000.md (stmw): Use the right POWER opcode.
8102 (lmw): Likewise.
8103
8104 2000-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8105
8106 * rs6000-protos.h: New file.
8107
8108 * rs6000.c: Include tm_p.h. Fix compile time warnings.
8109
8110 * rs6000.h: Move prototypes to rs6000-protos.h. Fix compile time
8111 warnings.
8112
8113 * sysv4.h: Likewise.
8114
8115 2000-01-28 Geoff Keating <geoffk@cygnus.com>
8116
8117 * ../../configure.in: Delete powerpcle-*-winnt*
8118 and powerpcle-*-pe|powerpcle-*-cygwin*.
8119 * ../../configure: Regenerated.
8120 * cygwin.h: Delete.
8121 * rs6000.h (OBJECT_WINDOWS_NT): Delete.
8122 (TARGET_WINDOWS_NT): Delete.
8123 (ABI_NT): Delete.
8124 (CALL_NT_DLLIMPORT): Delete.
8125 Delete NT-specific code.
8126 * rs6000.md, rs6000.c, sysv4.h: Delete NT-specific code.
8127 * win-nt.h: Delete.
8128 * t-winnt: Delete.
8129 * nt-ci.asm: Delete.
8130 * nt-cn.asm: Delete.
8131 * ntstack.asm: Delete.
8132
8133 2000-01-27 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8134
8135 * rs6000.h (SELECT_RTX_SECTION): Move to aix.h.
8136 (ASM_FILE_START): Likewise.
8137 (ASM_DECLARE_FUNCTION_NAME): Likewise.
8138 (ASM_OUTPUT_LABELREF): Likewise.
8139 (ASM_OUTPUT_SKIP): Likewise.
8140 (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
8141 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
8142 (ASM_OUTPUT_CASE_LABEL): Likewise.
8143 (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
8144 (ASM_OUTPUT_ASCII): Likewise.
8145
8146 2000-01-27 Clinton Popetz <cpopetz@cygnus.com>
8147
8148 * rs6000.c (rs6000_emit_load_toc_table): Use "LCG" and
8149 reload_toc_labelno for non-prologue TOC reloads. Also, don't
8150 increment rs6000_pic_labelno here.
8151 (rs6000_emit_prologue): Pass TRUE to rs6000_emit_load_toc_table,
8152 and increment rs6000_pic_labelno here.
8153
8154 2000-01-24 Geoffrey Keating <geoffk@cygnus.com>
8155
8156 * rs6000.md (fctiwz): Use (set (reg) (unspec:DI [(fix:SI ...)]))
8157 rather than (set (subreg:SI (reg)) (fix:SI ...)) so that register
8158 allocation knows (reg) is dead before the insn.
8159
8160 2000-01-21 Geoff Keating <geoffk@cygnus.com>
8161
8162 * rs6000.md (movsi_to_cr): Correct typo in output template.
8163
8164 2000-01-19 Geoffrey Keating <geoffk@cygnus.com>
8165
8166 * rs6000.c (rs6000_pic_labelno): Always define.
8167 (rs6000_pic_func_labelno): Delete.
8168 (lmw_operation): Check for a zero base register,
8169 which doesn't mean what we want.
8170 (stmw_operation): New function.
8171 (print_operand): Define new 'l' modifier.
8172 (rs6000_stack_info): We must save all 64 bits of the registers
8173 if TARGET_POWERPC64.
8174 (rs6000_output_load_toc_table): Delete.
8175 (rs6000_emit_load_toc_table): New function.
8176 (rs6000_allocate_stack_space): Delete.
8177 (rs6000_emit_allocate_stack): New function.
8178 (rs6000_emit_prologue): New function.
8179 (output_prolog): Use rs6000_emit_prologue.
8180 (rs6000_emit_epilogue): Change a few variable names to be
8181 more accurate. Restore all 64 bits of the registers if
8182 TARGET_POWERPC64. Only restore the FP registers which were used
8183 if they are being saved/restored one-at-a-time.
8184 (output_mi_thunk): Delete inefficient code generation.
8185 (output_function_profiler): Don't use rs6000_output_load_toc_table.
8186 * rs6000.h: Declare rs6000_emit_load_toc_table,
8187 rs6000_allocate_stack_space, stmw_operation. Don't declare
8188 rs6000_output_load_toc_table.
8189 * rs6000.md (elf_high): Allow register 0, but discourage it
8190 heavily.
8191 (elf_low): Support loading into register 0.
8192 (load_toc_aix_si): New pattern.
8193 (load_toc_aix_di): New pattern.
8194 (load_toc_v4_pic_si): New pattern.
8195 (load_toc_v4_pic_di): New pattern.
8196 (load_toc_v4_PIC_1): New pattern.
8197 (load_toc_v4_PIC_1b): New pattern.
8198 (load_toc_v4_PIC_2): New pattern.
8199 (builtin_setjmp_receiver): Use rs6000_emit_load_toc_table.
8200 (nonlocal_goto_receiver): Use rs6000_emit_load_toc_table.
8201 (prologue): New expander.
8202 (movesi_from_cr): New pattern.
8203 (stmw): New pattern.
8204 (save_fpregs_si): New pattern.
8205 (save_fpregs_di): New pattern.
8206
8207 2000-01-19 Geoff Keating <geoffk@cygnus.com>
8208
8209 * rs6000.md (movsi): Don't use force_reg when no_new_pseudos.
8210 (movdi): Likewise.
8211 (movhi): Likewise.
8212 (movqi): Likewise.
8213
8214 2000-01-19 Geoff Keating <geoffk@cygnus.com>
8215
8216 * rs6000.md (movsi_got): 'unspec 8' returns a SImode result,
8217 at present.
8218 (movsi_got_internal): Likewise.
8219 (movsi_got_internal+1): Likewise.
8220 (set_sp): 'unspec 7' does a SImode clobber.
8221
8222 2000-01-19 Geoff Keating <geoffk@cygnus.com>
8223
8224 * rs6000.md (floatsidf2): Don't use the fpmem "register", just
8225 allocate a stack temporary.
8226 (floatsidf2_internal): Likewise.
8227 (floatsidf2_internal+1): Likewise. Don't do bizzare hacks
8228 with unspec.
8229 (floatunssidf2): Don't use the fpmem "register", just
8230 allocate a stack temporary.
8231 (floatunssidf2_internal): Likewise.
8232 (floatunssidf2_internal+1): Likewise. Don't do bizzare hacks
8233 with unspec.
8234 (floatsidf2_loadaddr): Delete.
8235 (floatsidf2_store1): Delete.
8236 (floatsidf2_store2): Delete.
8237 (floatsidf2_load): Delete.
8238 (fix_truncdfsi2): Don't use the fpmem "register", just
8239 allocate a stack temporary.
8240 (fix_truncdfsi2_internal_si): Delete.
8241 (fix_truncdfsi2_internal_di): Delete.
8242 (fix_truncdfsi2_internal): New insn.
8243 (fix_truncdfsi2_internal+1): Don't use the fpmem "register".
8244 (fix_truncdfsi2_store): Delete.
8245 (fix_truncdfsi2_load): Delete.
8246 (fctiwz): Produce gen_fctiwz.
8247
8248 2000-01-19 Geoffrey Keating <geoffk@cygnus.com>
8249
8250 * eabi.h (INVOKE__main): Define.
8251 * rs6000.c (rs6000_stack_info): Don't handle call to NAME__MAIN
8252 specially.
8253 (rs6000_emit_prologue): Likewise.
8254 * rs6000.h (struct rs6000_stack): Don't keep track of whether
8255 this is the main program.
8256
8257 2000-01-19 Geoff Keating <geoffk@cygnus.com>
8258
8259 * rs6000.c (rs6000_va_arg): Delete some unused variables.
8260
8261 2000-01-19 Geoff Keating <geoffk@cygnus.com>
8262
8263 * rs6000.c (rs6000_va_arg): On AIX, padding for small arguments
8264 goes after the argument.
8265
8266 2000-01-12 Geoff Keating <geoffk@cygnus.com>
8267
8268 * rs6000.md: Document 'unspec' values used.
8269 (epilogue): New expander.
8270 (movesi_to_cr_one): New expander.
8271 (movesi_to_cr and following): New pattern.
8272 (lmw): New pattern.
8273 (return_internal_si): New pattern.
8274 (return_internal_di): New pattern.
8275 (return_and_restore_fpregs_si): New pattern.
8276 (return_and_restore_fpregs_di): New pattern.
8277 * rs6000.h: Declare new functions.
8278 * rs6000.c (rs6000_stack_info): Use current_function_is_leaf
8279 rather than rs6000_calls_p.
8280 (rs6000_makes_calls): Delete.
8281 (lmw_operation): New function.
8282 (mtcrf_operation): New function.
8283 (rs6000_emit_epilogue): New function.
8284 (output_epilog): Call rs6000_emit_epilogue and final if
8285 !TARGET_SCHED_PROLOG, instead of writing text unconditionally.
8286
8287 2000-01-12 Geoff Keating <geoffk@cygnus.com>
8288
8289 * aix43.h (SUBSUBTARGET_SWITCHES): Document switches.
8290 * aix41.h (SUBSUBTARGET_SWITCHES): Document switches.
8291 * aix.h (SUBTARGET_SWITCHES): Document switches.
8292 * rs6000.h: (TARGET_SWITCHES): Don't print options twice. Make
8293 sched-prolog and sched-epilog the same. Document all the
8294 switches.
8295 (TARGET_OPTIONS): No longer allow -mdebug-.
8296
8297 2000-01-12 Geoff Keating <geoffk@cygnus.com>
8298
8299 * rs6000.h (ASM_FILE_END): Move to aix.h.
8300 (EXTRA_SECTIONS): Move to aix.h.
8301 (READONLY_DATA_SECTION): Move to aix.h.
8302 (EXTRA_SECTION_FUNCTIONS): Move to aix.h.
8303 (SELECT_SECTION): Move to aix.h.
8304 (JUMP_TABLES_IN_TEXT_SECTION): Move to aix.h.
8305 (INT_REGNO_P): Use symbolic name for ARG_POINTER_REGNUM.
8306 (LINK_REGISTER_REGNUM): New definition.
8307 (RETURN_ADDR_RTX): Use symbolic name for LINK_REGISTER_REGNUM.
8308 (SLOW_UNALIGNED_ACCESS): Define in a way suitable for both
8309 AIX and SVR4.
8310 * sysv4.h: Delete the code between the inclusion of rs6000.h
8311 and svr4.h.
8312 (DWARF_DEBUGGING_INFO): Don't define, it's defined in elfos.h.
8313 (FP_ARG_MAX_REG): Move generic definition to rs6000.h.
8314 (RS6000_REG_SAVE): Move generic definition to rs6000.h.
8315 (RS6000_SAVE_AREA): Move generic definition to rs6000.h.
8316 * rs6000.md (floatsidf2_loadaddr): The first arg here is Pmode.
8317 (fix_truncdfsi2_internal): Rename to fix_truncdfsi2_internal_si.
8318 (fix_truncdfsi2_internal_di): New pattern.
8319 (fix_truncdfsi2_store): The second arg here is Pmode too.
8320 (fix_truncdfsi2_load): The second arg here is Pmode too.
8321 (tablejumpdi): Now that switch tables hold only SImode values,
8322 gcc needs to know how to add them to the pc which is DImode.
8323 * rs6000.c (rs6000_stack_info): Use symbolic name for
8324 LINK_REGISTER_REGNUM.
8325 (output_mi_thunk) [!TARGET_ELF]: Don't define sp, it's not used.
8326 (output_toc): Delete unused variables s1 and s2.
8327 (output_ascii): Use fputs not fprintf on a variable string.
8328
8329 2000-01-07 David Edelsohn <edelsohn@gnu.org>
8330
8331 * rs6000.c (processor_target_table): Add power3 as alias for 630.
8332 * aix43.h: Revert Aug 2 change.
8333 (HAS_INIT_SECTION): Define, not visible yet.
8334 (LD_INIT_SWITCH): Define, not visible yet.
8335 * t-aix43 (MULTILIB_OPTIONS): Revert Aug 2 change.
8336
8337 2000-01-04 Joel Sherrill (joel@OARcorp.com>
8338
8339 * config/rs6000/rtems.h: Include config/rtems.h.
8340
8341 2000-01-04 David Edelsohn <edelsohn@gnu.org>
8342
8343 * rs6000.h (HANDLE_PRAGMA_PACK): Define.
8344 (SLOW_UNALIGNED_ACCESS): Define.
8345 (CASE_VECTOR_MODE): Always use 32-bit offsets.
8346 (ASM_FILE_END): Generate 64-bit symbol in 64-bit mode.
8347 (EXTRA_SECTOIN_FUNCTIONS): Indent .csect pseudo-op.
8348 (toc_section): Likewise and .toc pseudo-op.
8349 (ASM_DECLARE_FUNCTION): Likewise. Align text more strictly in
8350 64-bit mode.
8351 (TEXT_SECTION_ASM_OP): Likewise.
8352 (ASM_OUTPUT_ADD_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Always use
8353 32-bit offsets.
8354
8355 1999-12-17 Jakub Jelinek <jakub@redhat.com>
8356
8357 * config/rs6000/rs6000.h (TARGET_POWERPC64): Make sure
8358 UNITS_PER_WORD and BITS_PER_WORD are compile time constants when
8359 compiling libgcc2.
8360
8361 2000-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8362
8363 * rs6000.h: Move more stuff from here...
8364 * aix.h: to here.
8365 * sysv4.h: Cleanup accordingly.
8366 * netware.h: Likewise
8367
8368 2000-01-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8369
8370 * rs6000.h: Continue cleanup.
8371 * aix.h: Likewise.
8372 * lynx.h: Likewise.
8373 * netware.h: Likewise.
8374 * sol2.h: Likewise.
8375 * sysv4.h: Likewise.
8376 * win-nt.h: Likewise.
8377
8378 * rs6000.h (TARGET_SWITCHES): Add descriptions.
8379 (TARGET_OPTIONS): Likewise.
8380
8381 * sysv4.h (SUBTARGET_SWITCHES): Add descriptions.
8382 (SUBTARGET_OPTIONS): Likewise.
8383
8384 * rs6000.md: Fix compile time warnings.
8385
8386 2000-01-04 Geoff Keating <geoffk@cygnus.com>
8387
8388 vxworks patches from the Cygnus tree originally by
8389 Michael Meissner <meissner@cygnus.com> and Vladimir Makarov
8390 <vmakarov@cygnus.com>.
8391 * sysv4.h (SUBTARGET_SWITCHES): Add vxworks.
8392 (ENDFILE_SPEC): Likewise.
8393 (LIB_VXWORKS_SPEC): New macro.
8394 (STARTFILE_VXWORKS_SPEC): New macro.
8395 (ENDFILE_VXWORKS_SPEC): New macro.
8396 (LINK_START_VXWORKS_SPEC): New macro.
8397 (LINK_OS_VXWORKS_SPEC): New macro.
8398 (CPP_OS_VXWORKS_SPEC): New macro.
8399 (SUBTARGET_EXTRA_SPECS): Add all the vxworks specs.
8400 * vxppc.h: Rewrite to use proper configuration method.
8401 * vxppcle.h: New file.
8402 * ../../configure.in: Add powerpcle-wrs-vxworks*.
8403 * ../../configure: Rebuilt.
8404
8405 2000-01-04 Geoff Keating <geoffk@cygnus.com>
8406
8407 Lots of changes to rs6000.h, sysv4.h, aix.h,
8408 aix31.h, aix3newas.h, aix41.h, aix43.h, beos.h,
8409 with the aim that rs6000.h is the first header
8410 included and the others override it.
8411 * aix.h: New file.
8412
8413 * x-aix41-gld: Remove.
8414 * x-aix43: Remove.
8415 * x-aix41: Remove target-specific switches, and don't specify
8416 -Wl,-bbigtoc as we don't need it any more.
8417 * ../../configure.in: Use x-aix41 for ppc AIX 4.1 and above.
8418 Use t-aix43 for AIX 4.3 and above.
8419 * ../../configure: Regenerated.
8420
8421 * rs6000.h (TARGET_SWITCHES): Add some initial prolog-scheduling
8422 options, that don't do anything yet.
8423 (MASK_SCHED_PROLOG): New macro.
8424 (MASK_SCHED_EPILOG): New macro.
8425 (TARGET_SCHED_PROLOG): New macro.
8426 (TARGET_SCHED_EPILOG): New macro.
8427
8428 2000-01-04 Geoff Keating <geoffk@cygnus.com>
8429
8430 * rs6000.c: Correct comment, the `minimal' TOCs are actually
8431 one per translation unit, not one per function.
8432 (output_toc): Also do duplicate constant elimination
8433 for per-translation-unit TOCs.
8434
8435 * rs6000.md (nonlocal_goto_receiver): Put it back as before. Add
8436 a comment explaining _exactly_ when this pattern gets used.
8437 (builtin_setjmp_receiver): New pattern for better clarity.
8438 (init_v4_pic): Move it into a section dealing with TOC registers.
8439
8440 1999-12-30 Geoff Keating <geoffk@cygnus.com>
8441
8442 * rs6000.c (toc_hash_table): New variable.
8443 (rs6000_hash_constant): New function.
8444 (toc_hash_function): New function.
8445 (toc_hash_eq): New function.
8446 (toc_hash_mark_entry): New function.
8447 (toc_hash_mark_table): New function.
8448 (output_toc): Don't output duplicate TOC entries in
8449 a single file.
8450 (rs6000_add_gc_roots): Add the hash table as a GC root.
8451 * t-aix43: Move AR_FOR_TARGET and CLIB here from x-aix43,
8452 where they clearly shouldn't be. This may need to be fixed
8453 later when there is a GNU ar for AIX.
8454 * x-aix43: Don't define CLIB or AR_FOR_TARGET.
8455 Don't define BOOT_LDFLAGS as it is now not necessary.
8456
8457 1999-12-29 Geoff Keating <geoffk@cygnus.com>
8458
8459 * rs6000.c (rs6000_build_va_list): Use 'char *' rather than 'void *'
8460 for va_list on AIX. Use unsigned_char_type_node rather than
8461 constructing our own version on svr4.
8462
8463 1999-12-17 Geoff Keating <geoffk@cygnus.com>
8464
8465 * tramp.asm (__trampoline_size): Delete CYGNUS LOCAL comment,
8466 since patently it's not.
8467
8468 1999-12-08 Geoff Keating <geoffk@cygnus.com>
8469
8470 * config/rs6000/rs6000.md (nonlocal_goto_receiver): Turn into
8471 define_expand/define_insn pair, and handle restore of the
8472 SVR4 -fpic register.
8473
8474 Wed Mar 15 15:43:38 2000 Jeffrey A Law (law@cygnus.com)
8475
8476 * acconfig.h (HAVE_GAS_WEAK): New define.
8477 * configure.in (assembler weak support): Check for .weak support.
8478 * config.in, configure: Rebuilt.
8479 * pa/som.h (MAKE_DECL_ONE_ONLY, ASM_WEAKEN_LABEL): Only define if
8480 HAVE_GAS_WEAK is defined.
8481
8482 2000-03-15 Nick Clifton <nickc@cygnus.com>
8483
8484 * config/arm/arm.c (arm_output_epilogue): Do not pass %c to
8485 asm_fprintf().
8486
8487 2000-03-15 Zack Weinberg <zack@wolery.cumb.org>
8488
8489 * cppfiles.c (open_include_file): New function.
8490 (find_include_file, cpp_read_file): Use it.
8491
8492 2000-03-15 Jason Merrill <jason@casey.cygnus.com>
8493
8494 * cpphash.c (dump_hash_helper): Take the slot, not the element.
8495
8496 Wed Mar 15 14:28:54 2000 Jason Eckhardt <jle@cygnus.com>
8497
8498 * flow.c (verify_flow_info): Check for unconditional return.
8499
8500 Wed Mar 15 11:34:27 2000 Jim Wilson <wilson@cygnus.com>
8501
8502 * config/ia64/ia64.md (restore_stack_nonlocal): New.
8503 * config/ia64/lib1funcs.asm (__ia64_nonlocal_goto): Delete padding nop.
8504 (__ia64_restore_stack_nonlocal): New.
8505 * config/ia64/t-ia64 (LIB1ASMFUNCS): Add __restore_stack_nonlocal.
8506
8507 2000-03-15 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
8508
8509 * cpphash.c (collect_formal_parameters): Do not complain about
8510 parameter names that just start with `__VA_ARGS__'.
8511
8512 Wed Mar 15 13:26:58 MET 2000 Jan Hubicka <jh@suse.cz>
8513
8514 * i386.md (movhi_1): Promote movw imm, reg to movl imm, reg and
8515 movw reg, reg to movzwl reg, reg on PARTIAL_REGISTER_STALL machines.
8516 * i386.c (pentiumpro_cost): Set mul cost to 4.
8517 (x86_use_movx): Set for PPro.
8518
8519 Wed Mar 15 13:07:05 MET 2000 Jan Hubicka <jh@suse.cz>
8520
8521 * i386.md (ix86_compute_frame_size): stack_alignment_needed is
8522 STACK_BOUNDARY for empty frames now.
8523
8524 2000-03-14 Mark Mitchell <mark@codesourcery.com>
8525
8526 * stor-layout.c (layout_union): Remove.
8527 (layout_union_field): New function, split out from layout_union.
8528 (finish_union_layout): Likewise.
8529 (layout_field): Handle unions by calling layout_union_field.
8530 (finish_record_layout): Handle unions.
8531 (layout_type): Combine RECORD_TYPE, UNION_TYPE, and
8532 QUAL_UNION_TYPE handling.
8533
8534 Wed Feb 23 13:00:06 CET 2000 Jan Hubicka <jh@suse.cz>
8535
8536 * flow.c (fixup_reorder_chain): Avoid double labels in the basic block;
8537 end of basic block is jump_insn, not barrier; use create_basic_block
8538 instead of creating basic block by hand.
8539
8540 2000-03-14 Jason Eckhardt <jle@cygnus.com>
8541
8542 * flow.c (reorder_basic_blocks): Account for barriers when writing
8543 over NEXT_INSN (last_bb->end).
8544 (verify_flow_info): Add check for missing barriers.
8545
8546 2000-03-14 Greg McGary <gkm@gnu.org>
8547
8548 * c-lex.h (enum rid): Add RID_BOUNDED & RID_UNBOUNDED.
8549 * c-lex.c (init_lex): Handle RID_BOUNDED & RID_UNBOUNDED.
8550 * c-parse.gperf (__bounded, __bounded__, __ptrbase, __ptrbase__,
8551 __ptrextent, __ptrextent__, __ptrvalue, __ptrvalue__,
8552 __unbounded, __unbounded__): New keywords.
8553 * c-parse.in (PTR_VALUE PTR_BASE PTR_EXTENT): New tokens.
8554 * c-parse.y, c-parse.c, c-parse.h: Regenerate.
8555 * objc/objc-parse.y, objc/objc-parse.c: Regenerate.
8556
8557 2000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
8558
8559 * cselib.h: New file.
8560 * alias.c: Include "cselib.h".
8561 (fixed_scalar_and_varying_struct_p): Accept the addresses of the
8562 MEMs as two new arguments.
8563 (get_addr): New static function.
8564 (find_base_term): Handle VALUEs.
8565 (memrefs_conflict_p): Likewise.
8566 (true_dependence): Call get_addr on the addresses.
8567 Call fixed_scalar_and_varying_struct_p with addresses that have been
8568 passed through get_addr and canon_rtx.
8569 (write_dependence_p): Move DIFFERENT_ALIAS_SETS_P test for consistency
8570 with true_dependence.
8571 Call get_addr on the addresses; don't call canon_rtx on the MEMs.
8572 * loop.c: Include "cselib.h".
8573 (load_mems): Process extended basic block that enters the loop with
8574 cselib. Use that information to change initialization of the shadow
8575 register so that a constant equivalence is seen by later passes.
8576 * reload1.c: Include "cselib.h".
8577 (reload_cse_invalidate_regno): Delete function.
8578 (reload_cse_mem_conflict_p): Likewise.
8579 (reload_cse_invalidate_mem): Likewise.
8580 (reload_cse_invalidate_rtx): Likewise.
8581 (reload_cse_regno_equal_p): Likewise.
8582 (reload_cse_check_clobber): Likewise.
8583 (reload_cse_record_set): Likewise.
8584 (reg_values): Delete static variable.
8585 (invalidate_regno_rtx): Likewise.
8586 (reload_cse_delete_noop_set): New static function.
8587 (reload_cse_simplify): New static function, broken out of
8588 reload_cse_regs_1.
8589 (reload_cse_noop_set_p): Delete unused argument INSN.
8590 Just call rtx_equal_for_cselib_p on set source and destination.
8591 (reload_cse_regs_1): Break out some code into reload_cse_simplify and
8592 reload_cse_delete_noop_set. Delete code to keep track of values; use
8593 cselib functions instead. Delete code to push/pop obstacks.
8594 (reload_cse_simplify_set): Use cselib to find equivalent values.
8595 Delete code to push/pop obstacks.
8596 (reload_cse_simplify_operands): Likewise.
8597 * rtl.def (VALUE): New rtx code.
8598 * rtl.h (union rtunion_def): New elt rt_cselib.
8599 (X0CSELIB, CSELIB_VAL_PTR): New macros.
8600 * simplify_rtx.c: Include "ggc.h", "obstack.h", "cselib.h".
8601 (new_elt_list, new_elt_loc_list, unchain_one_value, clear_table,
8602 unchain_one_elt_list, unchain_one_elt_loc_list, check_useless_values,
8603 discard_useless_locs, discard_useless_values, entry_and_rtx_equal_p,
8604 hash_rtx, new_cselib_val, add_mem_for_addr, get_value_hash,
8605 cselib_lookup_mem, cselib_subst_to_values, cselib_invalidate_regno,
8606 cselib_mem_conflict_p, cselib_invalidate_mem, cselib_invalidate_rtx,
8607 cselib_record_set, cselib_record_sets): New static functions.
8608 (cselib_lookup, cselib_update_varray_sizes, cselib_init,
8609 cselib_finish, cselib_process_insn, rtx_equal_for_cselib_p,
8610 references_value_p): New functions.
8611 (MAX_USELESS_VALUES, REG_VALUES): New macros.
8612 (table, cselib_current_insn, next_unknown_value, cselib_nregs,
8613 n_useless_values, reg_values, callmem, cselib_obstack,
8614 cselib_startobj, empty_vals, empty_elt_lists, empty_elt_loc_lists):
8615 New static variables.
8616 * varray.h (union varray_data_tag): New elt te.
8617 (VARRAY_ELT_LIST_INIT, VARRAY_ELT_LIST): New macros.
8618 * Makefile.in (reload1.o, loop.o, simplify-rtx.o, alias.o): Update
8619 dependencies.
8620
8621 2000-03-14 Nick Clifton <nickc@cygnus.com>
8622
8623 * gcc.c (do_spec_1): Catch the case where %* is used in a
8624 substitution pattern, but it has not been initialised.
8625 Issue a meaningful error message if an unrecognised operator
8626 is encountered in a spec string.
8627
8628 2000-03-14 Richard Earnshaw <rearnsha@arm.com>
8629
8630 * function.c (prepare_function_start): Correctly initialize
8631 cfun->stack_alignment_needed.
8632
8633 2000-03-14 Zack Weinberg <zack@wolery.cumb.org>
8634
8635 * cppfiles.c (find_include_file): Don't assume nshort is a
8636 substring of name.
8637
8638 Tue Mar 14 08:42:21 2000 Jeffrey A Law (law@cygnus.com)
8639
8640 * configure.in (hppa configurations): Add pa32-regs.h to the
8641 list of tm files as appropriate.
8642 * configure: Rebuilt.
8643 * pa.c (compute_frame_size): Remove explicit knowledge about FP
8644 register numbering.
8645 (hppa_expand_prologue, hppa_expand_epilogue): Likewise.
8646 (fmpyaddoperands, fmpysuboperands): Likewise.
8647 * pa.h: Remove various definitions which depend on knowing
8648 how registers are numbered.
8649 * pa32-regs.h: New file with PA32 register numbering specific
8650 definitions.
8651
8652 2000-03-14 Richard Henderson <rth@cygnus.com>
8653
8654 * regmove.c (combine_stack_adjustments): New.
8655 (stack_memref_p, single_set_for_csa): New.
8656 (free_csa_memlist, record_one_stack_memref): New.
8657 (try_apply_stack_adjustment): New.
8658 (combine_stack_adjustments_for_block): New.
8659 * rtl.h (combine_stack_adjustments): Declare.
8660 * toplev.c (rest_of_compilation): Call it.
8661
8662 * i386.md: Revert 2000-01-16 change.
8663
8664 2000-03-14 Martin v. Löwis <loewis@informatik.hu-berlin.de>
8665
8666 * gccbug.in: Add web category, gcc specific classes.
8667
8668 2000-03-14 Nathan Sidwell <nathan@codesourcery.com>
8669
8670 * stor-layout.c (finalize_record_size): Fix typo.
8671
8672 2000-03-14 Stan Shebs <shebs@apple.com>
8673
8674 * c-typeck.c (c_alignof): Error on incomplete types.
8675 * extend.texi (Alignment): Document this.
8676
8677 2000-03-13 Zack Weinberg <zack@wolery.cumb.org>
8678
8679 * cppfiles.c: Include mkdeps.h.
8680 (find_include_file, read_include_file): Remove _cpp_ prefix
8681 from name, make static.
8682 (_cpp_execute_include): New function, broken out of
8683 do_include.
8684
8685 * cpplib.c: Don't include mkdeps.h.
8686 (struct directive): Remove type field. Reorder entries. The
8687 function takes only one argument.
8688 (struct if_stack): Make type field an int.
8689 (directive_table): Rename to dtable. Generate it, the
8690 prototypes of the directive handlers, and the enum for the
8691 directive numbers, from a template macro.
8692 (do_ifndef, do_include_next, do_import): New functions.
8693 (do_define, do_include, do_endif, do_ifdef, do_if, do_else,
8694 do_undef, do_line, do_elif, do_error, do_pragma, do_warning,
8695 do_ident, do_assert, do_unassert, do_sccs): Take only one
8696 argument.
8697 (do_sccs): Define always, but alter behavior based on
8698 SCCS_DIRECTIVE.
8699 (_cpp_handle_directive, consider_directive_while_skipping):
8700 Restructure for new directive table layout.
8701
8702 (pass_thru_directive): Take a directive number, not a pointer
8703 to a struct directive.
8704 (parse_include): New function, broken out of do_include.
8705 (do_include, do_import, do_include_next): Use parse_include
8706 and _cpp_execute_include.
8707 (do_elif, do_else): Test for T_ELSE specifically when checking
8708 for #elif/#else after #else.
8709 (parse_ifdef): New function, broken out of do_ifdef.
8710 (validate_else): Expect a name arg without a leading #.
8711 (if_directive_name): Delete.
8712 (cpp_define, cpp_assert, cpp_undef, cpp_unassert): Call
8713 directive handlers with only one argument.
8714
8715 * cpphash.h: Update prototypes.
8716 (enum node_type): Remove entries for directives.
8717 * Makefile.in: Update dependencies.
8718
8719 * cpphash.c (dump_hash_helper): Only dump nodes of type
8720 T_MACRO. Emit a newline after each definition.
8721
8722 2000-03-14 Martin v. Löwis <loewis@informatik.hu-berlin.de>
8723
8724 * gccbug.in: New file.
8725 * configure.in (all_outputs): Add gccbug.
8726 * Makefile.in (install-common): Install gccbug.
8727 (GCCBUG_INSTALL_NAME): New variable.
8728 * configure: Rebuilt.
8729
8730 2000-03-13 Jason Merrill <jason@casey.cygnus.com>
8731
8732 * function.c (put_var_into_stack): Use type_for_mode to calculate
8733 part_type. Use MEM_SET_IN_STRUCT_P.
8734 * expr.c (store_field): Handle CONCAT.
8735 (store_constructor): Use fields_length.
8736 * tree.c (fields_length): New fn.
8737 * tree.h: Declare it.
8738
8739 2000-03-13 Zack Weinberg <zack@wolery.cumb.org>
8740
8741 * Makefile.in (LIBCPP_OBJS): Add cpplex.o.
8742 (cpplex.o): New target.
8743 * po/POTFILES.in: Add cpplex.c.
8744
8745 * cpplex.c (_cpp_grow_token_buffer, null_cleanup,
8746 cpp_push_buffer, cpp_pop_buffer, cpp_scan_buffer,
8747 cpp_expand_to_buffer, cpp_buf_line_and_col, cpp_file_buffer,
8748 skip_block_comment, skip_line_comment, skip_comment,
8749 copy_comment, _cpp_skip_hspace, _cpp_skip_rest_of_line,
8750 _cpp_parse_name, skip_string, parse_string,
8751 _cpp_parse_assertion, cpp_get_token, cpp_get_non_space_token,
8752 _cpp_get_directive_token, find_position,
8753 _cpp_read_and_prescan, _cpp_init_input_buffer): Move here.
8754 (maybe_macroexpand, _cpp_lex_token): New functions.
8755
8756 * cpplib.c (SKIP_WHITE_SPACE, eval_if_expr, parse_set_mark,
8757 parse_goto_mark): Delete.
8758 (_cpp_handle_eof): New function.
8759 (_cpp_handle_directive): Rename from handle_directive.
8760 (_cpp_output_line_command): Rename from output_line_command.
8761 (do_if, do_elif): Call _cpp_parse_expr directly.
8762 * cppfiles.c (_cpp_read_include_file): Don't call
8763 init_input_buffer here.
8764 * cpphash.c (quote_string): Move here, rename _cpp_quote_string.
8765 * cppexp.c (_cpp_parse_expr): Diddle parsing_if_directive
8766 here; pop the token_buffer and skip the rest of the line here.
8767 * cppinit.c (cpp_start_read): Call _cpp_init_input_buffer
8768 here.
8769
8770 * cpphash.h (CPP_RESERVE, CPP_IS_MACRO_BUFFER, ACTIVE_MARK_P):
8771 Define here.
8772 (CPP_SET_BUF_MARK, CPP_GOTO_BUF_MARK, CPP_SET_MARK,
8773 CPP_GOTO_MARK): New macros.
8774 (_cpp_quote_string, _cpp_parse_name, _cpp_skip_rest_of_line,
8775 _cpp_skip_hspace, _cpp_parse_assertion, _cpp_lex_token,
8776 _cpp_read_and_prescan, _cpp_init_input_buffer,
8777 _cpp_grow_token_buffer, _cpp_get_directive_token,
8778 _cpp_handle_directive, _cpp_handle_eof,
8779 _cpp_output_line_command): Prototype them here.
8780 * cpplib.h (enum cpp_token): Add CPP_MACRO.
8781 (CPP_RESERVE, get_directive_token, cpp_grow_buffer,
8782 quote_string, output_line_command): Remove.
8783
8784 2000-03-13 Bernd Schmidt <bernds@cygnus.co.uk>
8785
8786 * stmt.c (expand_end_case): RANGE may be signed, and when checking
8787 whether it is too large we must also verify that it isn't negative.
8788
8789 2000-03-13 Jakub Jelinek <jakub@redhat.com>
8790
8791 * config/sparc/sparc.md: Remove all traces of TARGET_LIVE_G0.
8792 (movsi_zero_liveg0): Remove.
8793 (movsf_insn_novis_liveg0): Remove.
8794 (negsi2): Remove.
8795 (negsi2_not_liveg0): Rename to negsi2.
8796 (one_cmplsi2): Remove.
8797 (one_cmplsi2_not_liveg0): Rename to one_cmplsi2.
8798 (one_cmplsi2_liveg0): Remove.
8799 * config/sparc/sparc.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE,
8800 MASK_LIVE_G0, MASK_BROKEN_SAVERESTORE): Remove.
8801 (CONDITIONAL_REGISTER_USAGE): Remove TARGET_LIVE_G0 if.
8802 (PREDICATE_CODES): Remove zero_operand.
8803 * config/sparc/sparc.c: Remove all traces of TARGET_LIVE_G0 and
8804 TARGET_BROKEN_SAVERESTORE.
8805 (zero_operand): Remove.
8806 * config/sparc/splet.h (SUBTARGET_SWITCHES): Remove -mlive-g0,
8807 -mno-live-g0, -mbroken-saverestore and -mno-broken-saverestore
8808 options.
8809 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
8810 * config/sparc/linux-aout.h (TARGET_LIVE_G0,
8811 TARGET_BROKEN_SAVERESTORE): Remove.
8812 * config/sparc/linux.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
8813 Remove.
8814 * config/sparc/linux64.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
8815 Remove.
8816 * config/sparc/sol2.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
8817 Remove.
8818
8819 * config/sparc/sparc.md (return_df_no_fpu): New pattern.
8820
8821 2000-03-13 Zack Weinberg <zack@wolery.cumb.org>
8822
8823 * cpplib.c (do_pragma_implementation): Fix off-by-one error
8824 truncating a string. Don't assume tokens are nul terminated.
8825 Problem noted by Andreas Jaeger <aj@suse.de>
8826
8827 2000-03-13 Jason Merrill <jason@casey.cygnus.com>
8828
8829 * dwarf2out.c (add_name_and_src_coords_attributes): Only add
8830 DW_AT_MIPS_linkage_name for TREE_PUBLIC decls.
8831 (ASM_OUTPUT_DWARF_ADDR_CONST): Don't output trailing newline.
8832
8833 2000-03-13 Richard Earnshaw <rearnsha@arm.com>
8834
8835 * stor-layout.c (new_record_layout_info): Fix typo inside ifdef
8836 STRUCTURE_SIZE_BOUNDARY.
8837
8838 2000-03-13 Mark Mitchell <mark@codesourcery.com>
8839
8840 * tree.h (record_layout_info_s): New structure.
8841 (record_layout_info): New type.
8842 (new_record_layout_info): New function.
8843 (layout_field): Likewise.
8844 (finish_record_layout): Likewise.
8845 * stor-layout.c (layout_record): Remove.
8846 (new_record_layout_info): New function.
8847 (layout_field): New function, broken out from layout_record.
8848 (finalize_record_size): Likewise.
8849 (compute_record_mode): Likewise.
8850 (finalize_type_size): New function, broken out from layout_type.
8851 (finish_record_layout): Likewise.
8852 (layout_type): Use them.
8853
8854 2000-03-12 Zack Weinberg <zack@wolery.cumb.org>
8855
8856 * cpphash.c: Don't include version.h.
8857 (special_symbol) [case T_VERSION]: Look for the string in
8858 hp->value.cpval; don't use version_string.
8859 * cppinit.c (initialize_builtins): Set hp->value.cpval for
8860 __VERSION__ to version_string.
8861 * Makefile.in (cpphash.o): Update deps.
8862
8863 2000-03-12 Zack Weinberg <zack@wolery.cumb.org>
8864
8865 Convert cpplib to use libiberty/hashtab.c.
8866
8867 * cpplib.h (struct cpp_reader): Make hashtab and
8868 all_include_files of type 'struct htab *'. Delete HASHSIZE
8869 and ALL_INCLUDE_HASHSIZE macros.
8870
8871 * cpphash.h: Update prototypes.
8872 (struct hashnode): Remove next, prev, and bucket_hdr members.
8873 Make length a size_t. Add hash member.
8874 (struct ihash): Remove next member. Add hash member. Make
8875 name a flexible array member.
8876
8877 * cppfiles.c: Include hashtab.h.
8878 (include_hash): Delete.
8879 (IHASHSIZE): New macro.
8880 (hash_IHASH, eq_IHASH, _cpp_init_include_hash): New functions.
8881 (cpp_included): Do the hash lookup here.
8882 (_cpp_find_include_file): Rewrite.
8883 (cpp_read_file): Put the "fake" hash entry into the hash
8884 table. Honor the control_macro, if it turns out we've seen
8885 the file before. Don't push the buffer here.
8886 (_cpp_read_include_file): Push the buffer here.
8887 (OMODES): New macro. Use it whenever we call open(2).
8888
8889 * cpphash.c: Include hashtab.h.
8890 (hash_HASHNODE, eq_HASHNODE, del_HASHNODE, dump_hash_helper,
8891 _cpp_init_macro_hash, _cpp_dump_macro_hash, _cpp_make_hashnode,
8892 _cpp_lookup_slot): New functions.
8893 (HASHSIZE): new macro.
8894 (hashf, _cpp_install, _cpp_delete_macro): Delete.
8895 (_cpp_lookup): Use hashtab.h routines.
8896
8897 * cppinit.c: Include hashtab.h.
8898 (cpp_reader_init): Call _cpp_init_macro_hash and
8899 _cpp_init_include_hash. Don't allocate hashtab directly.
8900 (cpp_cleanup): Just call htab_delete on pfile->hashtab and
8901 pfile->all_include_files.
8902 (initialize_builtins): Use _cpp_make_hashnode and
8903 htab_find_slot to add hash entries.
8904 (cpp_finish): Just call _cpp_dump_macro_hash.
8905 * cpplib.c: Include hashtab.h.
8906 (do_define): Use _cpp_lookup_slot and _cpp_make_hashnode to
8907 create hash entries.
8908 (do_pragma_poison, do_assert): Likewise.
8909 (do_include): Don't push the buffer here. Don't increment
8910 system_include_depth unless _cpp_read_include_file succeeds.
8911 (do_undef, do_unassert): Use _cpp_lookup_slot and htab_clear_slot
8912 or htab_remove_elt.
8913 (do_pragma_implementation): Use alloca to create copy.
8914
8915 * Makefile.in: Update dependencies.
8916
8917 2000-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8918
8919 * cppinit.c (cl_directive_handler): More K&R fixing.
8920
8921 Sat Mar 11 23:54:26 2000 Jim Wilson <wilson@cygnus.com>
8922
8923 * config/ia64/ia64.c (ia64_compute_frame_size): Align size to
8924 STACK_BOUNDARY.
8925 * config/ia64/ia64.h (REGISTER_MOVE_COST): Add missing parentheses.
8926
8927 2000-03-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8928
8929 * cppinit.c (no_arg, no_ass, no_dir, no_fil, no_mac, no_pth):
8930 Change from char[] to macros.
8931
8932 2000-03-12 Neil Booth <NeilB@earthling.net>
8933
8934 * cppinit.c (cpp_start_read): Update indirect function
8935 call to K&R C.
8936
8937 Sat Mar 11 16:18:12 2000 Jim Wilson <wilson@cygnus.com>
8938
8939 * config/ia64/ia64.h (ADDITIONAL_REGISTER_NAMES): Fix typo in loc79
8940 entry.
8941
8942 * config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
8943 config/ia64/ia64.md, config/ia64/xm-ia64.h: Fix copyright messages.
8944
8945 2000-03-11 Neil Booth <NeilB@earthling.net>
8946
8947 * cppinit.c (struct pending option): Replace undef with a
8948 pointer to a directive handling routine.
8949 (struct cpp_pending): Replace separate assert_ and define_
8950 lists with one directive_ list.
8951 (new_pending_define): Rename new_pending_directive. Extra
8952 argument is the directive's handling routine.
8953 (handle_option): Update to use new_pending_directive.
8954
8955 2000-03-11 Neil Booth <NeilB@earthling.net>
8956
8957 * cppfiles.c (file_cleanup, _cpp_find_include_file,
8958 remap_filename, _cpp_read_include_file, actual_directory,
8959 hack_vms_include_specification): Replace bcopy(), index() etc
8960 calls. Add casts to some allocations. Make some variables
8961 pointers to const [unsigned] char.
8962 * cpphash.c (_cpp_install, macro_cleanup, collect_expansion,
8963 collect_formal_parameters): Similarly.
8964 * cppinit.c (struct pending_option, append_include_chain,
8965 cpp_options_init, cpp_reader_init, initialize_standard_includes,
8966 cpp_start_read, new_pending_define, handle_option): Similarly.
8967 * cpplib.c (cpp_define, copy_comment, do_define, do_include,
8968 do_undef, do_error, do_warning, do_pragma, do_pragma_once,
8969 do_pragma_implementation, detect_if_not_defined,
8970 do_ifdef, skip_if_group, cpp_get_token, parse_string,
8971 do_assert, do_unassert): Similarly.
8972 * cpplib.h (cpp_buffer, cpp_options): Update types. Update
8973 function prototypes.
8974 * mkdeps.c (deps_add_target, deps_add_dep): cast allocations.
8975
8976 2000-03-10 Richard Henderson <rth@cygnus.com>
8977
8978 * builtins.c (expand_builtin_strlen): Revert last change.
8979 Use emit_insn_before if we're at the beginning of a sequence.
8980
8981 2000-03-10 Jason Merrill <jason@casey.cygnus.com>
8982
8983 * builtins.c (expand_builtin_strlen): Make sure that we have something
8984 at the beginning of the sequence.
8985
8986 * toplev.c (rest_of_compilation): Also set TREE_NOTHROW for
8987 deferred inlines.
8988
8989 * invoke.texi (C++ Dialect Options): Document -fno-enforce-eh-specs.
8990
8991 2000-03-10 Richard Henderson <rth@cygnus.com>
8992
8993 * except.c (can_throw): Use INTVAL on a CONST_INT.
8994 (reachable_handlers): Likewise.
8995 * flow.c (count_basic_blocks, find_basic_blocks_1): Likewise.
8996
8997 2000-03-10 Andreas Jaeger <aj@suse.de>
8998
8999 * config/mips/linux.h: Undefine MD_EXEC_PREFIX and
9000 MD_STARTFILE_PREFIX since those are not needed on linux.
9001 (ASM_FILE_START): New, from mips/gnu.h.
9002
9003 2000-03-09 Richard Henderson <rth@cygnus.com>
9004 Alex Samuel <samuel@codesourcery.com> and others
9005
9006 * Makefile.in (ssa.o): New rule.
9007 (OBJS): Add ssa.o.
9008 (STAGESTUFF): Add *.ssa and *.ussa.
9009 (mostlyclean): Delete *.ssa, *.ussa, */*.ssa, */*.ussa.
9010 * rtl.def (PHI): New RTL expression.
9011 * rtl.h (clear_log_links): New declaration.
9012 (convert_to_ssa): Likewise.
9013 (convert_from_ssa): Likewise.
9014 * flow.c (split_edge): If the entry node falls through to the
9015 split edge's source block, split the entry edge.
9016 (clear_log_links): New function.
9017 * toplev.c (ssa_dump): New variable.
9018 (flag_ssa): Likewise.
9019 (f_options): Add "ssa".
9020 (compile_file): Create SSA dump files.
9021 (rest_of_compilation): Go to and from SSA if enabled.
9022 (decide_d_option): Handle -de for SSA dump files.
9023 * ssa.c: New file.
9024
9025 Thu Mar 9 20:01:38 2000 Jim Wilson <wilson@cygnus.com>
9026
9027 * expr.c (expand_assignment): For a CALL_EXPR, special case PARM_DECL
9028 same as VAR_DECL.
9029
9030 2000-03-09 Benjamin Kosnik <bkoz@cygnus.com>
9031
9032 * config/alpha/linux.h (WCHAR_TYPE): Make consistent.
9033
9034 Thu Mar 9 18:10:02 2000 Jeffrey A Law (law@cygnus.com)
9035
9036 * config/pa/pa-hpux10.h (LIB_SPEC): Correct typo in !p case.
9037 (MD_STARTFILE_PREFIX_1): New macro.
9038
9039 2000-03-09 Robert Lipe <robertl@sco.com>
9040
9041 * config/ia64/ia64.c: Include system.h.
9042
9043 2000-03-09 Jason Merrill <jason@casey.cygnus.com>
9044
9045 * except.c (nothrow_function_p): If -fno-exceptions, just return.
9046 (init_eh_nesting_info): Likewise.
9047
9048 * tree.h (struct tree_common): Rename raises_flag to nothrow_flag.
9049 (TREE_NOTHROW): Rename from TREE_RAISES.
9050 * toplev.c (rest_of_compilation): Set it.
9051 * print-tree.c (print_node): Adjust.
9052 * tree.c (stabilize_reference, build, build1): Don't set TREE_RAISES.
9053 (stabilize_reference_1, get_unwidened, get_narrower): Likewise.
9054 * calls.c (emit_call_1): Add 'nothrow' parm. Add
9055 REG_EH_REGION note as appropriate.
9056 (libfunc_nothrow): New fn.
9057 (emit_library_call, emit_library_call_value): Use it.
9058 (expand_call): Check TREE_NOTHROW.
9059
9060 * varasm.c (make_decl_rtl): Skip initial '*' when setting
9061 DECL_ASSEMBLER_NAME.
9062
9063 2000-03-09 Andreas Jaeger <aj@suse.de>
9064
9065 * mips/linux.h (NO_IMPLICIT_EXTERN_C): Define.
9066 (TARGET_MEM_FUNCTIONS): Define.
9067
9068 2000-03-09 Jason Merrill <jason@casey.cygnus.com>
9069
9070 * i386.c (ix86_valid_type_attribute_p): Use compare_tree_int.
9071
9072 * except.c (can_throw): See through a SEQUENCE.
9073 (nothrow_function_p): New fn.
9074 * except.h: Declare it.
9075 * function.c (current_function_nothrow): New var.
9076 (prepare_function_start): Initialize it.
9077 * output.h: Declare it.
9078 * toplev.c (rest_of_compilation): Set it.
9079 * dwarf2out.c (dwarf2out_begin_prologue): Use it.
9080
9081 2000-03-09 Zack Weinberg <zack@wolery.cumb.org>
9082
9083 * cpphash.c (collect_formal_parameters): strncmp returns 0 for
9084 match. (cpp_compare_defs): Count the nul separator when
9085 advancing over argument names.
9086
9087 2000-03-09 Bernd Schmidt <bernds@cygnus.co.uk>
9088
9089 * recog.c (preprocess_constraints): Matching constraints affect
9090 same alternative/different operand, not same operand/different
9091 alternative.
9092
9093 * reload1.c (eliminate_regs_in_insn): Handle additions of eliminable
9094 register and a constant specially.
9095
9096 2000-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9097
9098 * libgcc2.h: New file.
9099 * libgcc2.c: Move macros, typedefs and prototypes to libgcc2.h.
9100
9101 Wed Mar 8 16:19:42 2000 Jim Wilson <wilson@cygnus.com>
9102
9103 * configure.in (ia64*-*-elf*, ia64*-*-linux*): New.
9104 * configure: Regenerate.
9105 * config/ia64: New.
9106
9107 2000-03-08 Zack Weinberg <zack@wolery.cumb.org>
9108
9109 * Makefile.in (LIBCPP_DEPS): New macro.
9110 (cpplib.o, cpphash.o, cpperror.o, cppexp.o, cppfiles.o): Use
9111 it to declare deps.
9112 * cpperror.c: Include cpphash.h.
9113 * cppexp.c: Include cpphash.h. Remove MULTIBYTE_CHARS
9114 dingleberry.
9115 (lex): Don't use CPP_WARN_UNDEF.
9116 (_cpp_parse_expr): Return an int, the truth value.
9117 * cppfiles.c: Include cpphash.h.
9118 (_cpp_merge_include_chains): Move to cppinit.c and make static.
9119 * cppinit.c (include_defaults_array): Disentangle.
9120 (cpp_cleanup): Don't free the if stack here.
9121 (cpp_finish): Pop off all buffers, not just one.
9122 * cpplib.c (eval_if_expr): Return int.
9123 (do_xifdef): Rename do_ifdef.
9124 (handle_directive): Don't use CPP_PREPROCESSED.
9125 (cpp_get_token): Don't use CPP_C89.
9126 * fix-header.c: Don't use CPP_OPTIONS.
9127
9128 * cpplib.h: Move U_CHAR, enum node_type, struct
9129 file_name_list, struct ihash, is_idchar, is_idstart,
9130 is_numchar, is_numstart, is_hspace, is_space, CPP_BUF_PEEK,
9131 CPP_BUF_GET, CPP_FORWARD, CPP_PUTS, CPP_PUTS_Q, CPP_PUTC,
9132 CPP_PUTC_Q, CPP_NUL_TERMINATE, CPP_NUL_TERMINATE_Q,
9133 CPP_BUMP_BUFFER_LINE, CPP_BUMP_LINE, CPP_PREV_BUFFER,
9134 CPP_PRINT_DEPS, CPP_TRADITIONAL, CPP_PEDANTIC, and prototypes
9135 of _cpp_simplify_pathname, _cpp_find_include_file,
9136 _cpp_read_include_file, and _cpp_parse_expr to cpphash.h.
9137 Move struct if_stack to cpplib.c. Move struct cpp_pending to
9138 cppinit.c.
9139 Change all uses of U_CHAR to be unsigned char instead.
9140 Delete CPP_WARN_UNDEF, CPP_C89, and CPP_PREPROCESSED.
9141
9142 2000-03-08 Jason Merrill <jason@casey.cygnus.com>
9143
9144 * dwarf2out.c (dw_fde_struct): Add 'nothrow'.
9145 (dwarf2out_begin_prologue): Set it.
9146 (output_call_frame_info): Don't emit EH unwind info for leaves.
9147
9148 * flow.c (count_basic_blocks, find_basic_blocks_1): A rethrow
9149 can occur outside of an EH region.
9150 * except.c: Correct comments about rethrow behavior.
9151 (rethrow_symbol_map): Do nothing if !flag_new_exceptions.
9152
9153 2000-03-08 Andrew MacLeod <amacleod@cygnus.com>
9154
9155 * flow.c (make_edges): Always call make_eh_edge for calls.
9156
9157 2000-03-08 Zack Weinberg <zack@wolery.cumb.org>
9158
9159 * cpplib.h (parse_underflow_t, CPP_NULL_BUFFER): Delete.
9160 (struct cpp_buffer): Remove fname and underflow fields.
9161 (struct cpp_reader): Remove get_token field.
9162 (struct include_hash): Rename to struct ihash. Add typedef to
9163 IHASH.
9164 (struct if_stack): Remove fname field.
9165 (IF_STACK_FRAME): Rename to IF_STACK.
9166
9167 * cpperror.c (print_containing_files): Trust that there are no
9168 macro buffers below the top file buffer.
9169 * cppfiles.c: Replace all references to 'struct include_hash'
9170 with 'IHASH'. Rename initialize_input_buffer to
9171 init_input_buffer. Don't set or reference cpp_buffer->fname,
9172 use buffer->ihash->name instead.
9173 * cpphash.c (special_symbol): Use cpp_file_buffer. Use NULL
9174 not CPP_NULL_BUFFER.
9175 * cppinit.c: Use NULL not CPP_NULL_BUFFER, IF_STACK not
9176 IF_STACK_FRAME, IHASH not struct include_hash.
9177 * cpplib.c: Rename eval_if_expression to eval_if_expr. Remove
9178 null_underflow. Use IF_STACK not IF_STACK_FRAME, IHASH not
9179 struct include_hash, NULL not CPP_NULL_BUFFER. Remove all
9180 references to cpp_buffer->fname (delete entirely, or use
9181 ->ihash->name instead) and IF_STACK->fname.
9182 (cpp_push_buffer): Don't set new->underflow.
9183 (do_include): Use cpp_file_buffer.
9184
9185 * cpphash.c (collect_formal_parameters): Remove duplicate
9186 increment of argslen. Pedwarn in C99 mode if __VA_ARGS__ is
9187 used as a macro argument name. Don't append "..." to namebuf
9188 for varargs macros. After we're done scanning, go through
9189 namebuf and make it NUL separated, not comma separated.
9190 (_cpp_compare_defs): Remove register tag from variables.
9191 Expect defn->argnames to be NUL separated.
9192 (_cpp_dump_definition): Expect defn->argnames to be NUL
9193 separated and in forward order.
9194 * cpphash.h: Update documentation of argnames field.
9195
9196 2000-03-08 Richard Henderson <rth@cygnus.com>
9197
9198 * builtins.c (expand_builtin_strlen): Be prepared for strlensi
9199 to fail. Don't pre-expand the source operand.
9200
9201 * i386.md (strlensi): Initialize eoschar and align before use.
9202
9203 2000-03-08 Jason Merrill <jason@casey.cygnus.com>
9204
9205 * expr.c (expand_expr, case ARRAY_REF): Still check for missing
9206 CONSTRUCTOR element.
9207
9208 2000-03-08 Gavin Romig-Koch <gavin@cetus.cygnus.com>
9209
9210 * mips.c (mips_expand_prologue): If the last
9211 named argument is the vararg marker "va_list", treat it as
9212 an unnamed argument.
9213
9214 2000-03-08 Clinton Popetz <cpopetz@cygnus.com>
9215
9216 * dbxout.c (dbxout_parms): When correcting for promoted
9217 big-endian parameters, use the mode of the DECL_RTL rather
9218 than UNITS_PER_WORD.
9219
9220 2000-03-08 Nathan Sidwell <nathan@codesourcery.com>
9221
9222 * c-common.h (make_fname_decl): Declare.
9223 * c-common.c (make_fname_decl): Define.
9224 (declare_hidden_char_array): Remove.
9225 (declare_function_name): Use make_fname_decl.
9226 * c-decl.c (c_make_fname_decl): New function.
9227 (init_decl_processing): Set make_fname_decl.
9228
9229 Tue Mar 7 23:50:31 2000 Jeffrey A Law (law@cygnus.com)
9230
9231 * cccp.c (handle_directive): Initialize backslash_newlines_p.
9232
9233 2000-03-07 Philipp Thomas <pthomas@suse.de>
9234
9235 * po/POTFILES.in: Remove cppalloc.c from file list.
9236
9237 2000-03-07 Steve Chamberlain <sac@pobox.com>
9238
9239 * pj.c (pj_expand_prologue): current_function->args_info is
9240 now current_function_args_info.
9241
9242 * pj.h (STORE_FLAG_VALUE, USER_LABEL_PREFIX,
9243 LOCAL_LABEL_PREFIX, ASM_GENERATE_INTERNAL_LABEL,
9244 ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Define.
9245
9246 2000-03-08 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9247
9248 * config/c4x/c4x.h (PUT_SDB_TYPE): Define so that the type info is
9249 output as hexadecimal rather than the default octal.
9250
9251 2000-03-07 Zack Weinberg <zack@wolery.cumb.org>
9252
9253 * cpphash.c (special_symbol): Fix thinko in previous commit.
9254
9255 2000-03-07 Neil Booth <NeilB@earthling.net>
9256
9257 * cppexp.c (struct operation, left_shift, right_shift,
9258 cpp_parse_expr): Change some "char"s to "U_CHAR"s, and some
9259 "int"s to "unsigned int"s.
9260 * cpplib.c (detect_if_not_defined, do_assert, do_unassert):
9261 Similarly.
9262 * cpplib.h: Update for above.
9263 * mkdeps.c (deps_init, deps_calc_target): Cast pointers
9264 returned from allocations.
9265
9266 * cppinit.c (opt_comp, parse_options): New functions.
9267 (handle_option): Use parse_option to parse a single command
9268 line option, that possibly takes an argument.
9269 (cpp_handle_options): Sort the array of command line options on
9270 first invocation (non-ASCII hosts only).
9271 (print_help): Update.
9272
9273 2000-03-07 Zack Weinberg <zack@wolery.cumb.org>
9274
9275 * mkdeps.c (munge): Fix off-by-one bug and inconsistencies in
9276 backslash counting loops. Problem noted by Matt Kraai <kraai@ghs.com>.
9277
9278 * cppfiles.c (_cpp_find_include_file): Make sure ih->name is
9279 initialized.
9280 * cppinit.c (cpp_cleanup): Free imp->nshort also.
9281
9282 * cpperror.c (cpp_print_containing_files,
9283 cpp_print_file_and_line, v_cpp_message): Rename to
9284 print_containing_files, print_file_and_line, and v_message.
9285 * cppexp.c (cpp_parse_expr, cpp_parse_escape, cpp_lex): Rename
9286 to _cpp_parse_expr, parse_escape, and lex.
9287 (parse_charconst): Remove broken multibyte support.
9288 * cppfiles.c (include_hash): Make static.
9289 (cpp_included): New function.
9290 (merge_include_chains, find_include_file, finclude,
9291 simplify_pathname): Rename to _cpp_merge_include_chains,
9292 _cpp_find_include_file, _cpp_read_include_file, and
9293 _cpp_simplify_pathname.
9294 * cpphash.c (cpp_lookup, free_definition, delete_macro,
9295 cpp_install, create_definition, macroexpand, compare_defs,
9296 dump_definition): Rename to _cpp_lookup, _cpp_free_definition,
9297 _cpp_delete_macro, _cpp_install, _cpp_create_definition,
9298 _cpp_macroexpand, _cpp_compare_defs, and _cpp_dump_definition.
9299 * cppinit.c (cpp_handle_option): Rename to handle_option, make
9300 static.
9301 * cpplib.c: Remove extern prototype of cpp_parse_expr.
9302
9303 * cpphash.h: Update prototypes.
9304 * cpplib.h: Likewise. Prototype _cpp_parse_expr here.
9305
9306 2000-03-07 Andrew Haley <aph@cygnus.com>
9307
9308 * config/mips/mips.h (PTRDIFF_TYPE): Revert broken change;
9309 PTRDIFF_TYPE should be based solely on Pmode.
9310 (SIZE_TYPE): ditto.
9311
9312 2000-03-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9313
9314 * rtl.h (rtunion_def): Constify member `rtstr'.
9315 (emit_line_note_after, emit_line_note, emit_line_note_force,
9316 emit_note, decode_asm_operands): Constify.
9317
9318 * cse.c (canon_hash): Likewise.
9319
9320 * dbxout.c (dbxout_block): Likewise.
9321
9322 * diagnostic.c (file_and_line_for_asm, v_error_for_asm,
9323 v_warning_for_asm): Likewise.
9324
9325 * dwarfout.c (function_start_label): Likewise.
9326
9327 * emit-rtl.c (emit_line_note_after, emit_line_note, emit_note,
9328 emit_line_note_force): Likewise.
9329
9330 * final.c (last_filename, asm_insn_count, final_scan_insn,
9331 output_source_line): Likewise.
9332
9333 * function.h (struct emit_status): Likewise.
9334
9335 * gcse.c (hash_expr_1): Likewise.
9336
9337 * genattr.c (gen_attr, main): Likewise.
9338
9339 * genattrtab.c (struct function_unit, current_alternative_string,
9340 write_attr_valueq, n_comma_elts, next_comma_elt, attr_eq,
9341 attr_numeral, check_attr_test, check_attr_value,
9342 convert_set_attr_alternative, convert_set_attr,
9343 compute_alternative_mask, simplify_by_exploding, gen_attr,
9344 gen_unit): Likewise.
9345
9346 * genflags.c (gen_insn): Likewise.
9347
9348 * gengenrtl.c (type_from_format): Likewise.
9349
9350 * genopinit.c (gen_insn): Likewise.
9351
9352 * genoutput.c (n_occurrences, process_template, process_template):
9353 Likewise.
9354
9355 * ggc-page.c (ggc_set_mark, ggc_mark_if_gcable, ggc_get_size):
9356 Likewise.
9357
9358 * ggc-simple.c (ggc_set_mark, ggc_mark_if_gcable, ggc_get_size):
9359 Likewise.
9360
9361 * ggc.h (ggc_mark_string, ggc_mark, ggc_mark_if_gcable,
9362 ggc_set_mark, ggc_get_size): Likewise.
9363
9364 * objc/objc-act.c (build_module_descriptor, finish_objc): Likewise.
9365
9366 * optabs.c (init_one_libfunc): Likewise.
9367
9368 * output.h (assemble_start_function): Likewise.
9369
9370 * recog.c (decode_asm_operands): Likewise.
9371
9372 * toplev.c (rest_of_compilation): Likewise.
9373
9374 * tree.h (emit_line_note_after, emit_line_note,
9375 emit_line_note_force): Likewise.
9376
9377 * varasm.c (asm_output_bss, asm_output_aligned_bss,
9378 asm_emit_uninitialised, assemble_start_function,
9379 assemble_variable, const_hash, compare_constant_1,
9380 find_pool_constant, mark_constant_pool, assemble_alias): Likewise.
9381
9382 * xcoffout.h (DBX_FINISH_SYMBOL): Likewise.
9383
9384 * alpha/alpha.md (call_vms, call_value_vms): Likewise.
9385
9386 * arm/aof.h (ASM_OUTPUT_ASCII): Likewise.
9387
9388 * arm/aout.h (ASM_OUTPUT_ASCII): Likewise.
9389
9390 * arm/arm-protos.h (output_ascii_pseudo_op, arm_dllexport_name_p,
9391 arm_dllimport_name_p): Likewise.
9392
9393 * arm/arm.c (arm_encode_call_attribute, output_ascii_pseudo_op):
9394 Likewise.
9395
9396 * arm/arm.h (ASM_OUTPUT_MI_THUNK): Likewise.
9397
9398 * arm/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9399
9400 * arm/pe.c (arm_dllexport_name_p, arm_dllimport_name_p,
9401 arm_mark_dllexport, arm_mark_dllimport,
9402 arm_pe_encode_section_info): Likewise.
9403
9404 * arm/telf.h (ASM_OUTPUT_DEF_FROM_DECLS,
9405 ASM_FINISH_DECLARE_OBJECT): Likewise.
9406
9407 * arm/thumb.c (thumb_function_prologue): Likewise.
9408
9409 * arm/thumb.h (ASM_OUTPUT_ASCII): Likewise.
9410
9411 * avr/avr.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9412
9413 * clipper/clix.h (ASM_OUTPUT_ASCII): Likewise.
9414
9415 * fx80/fx80.h (ASM_OUTPUT_ASCII): Likewise.
9416
9417 * i386/cygwin.h (ASM_OUTPUT_SECTION_NAME): Likewise.
9418
9419 * i386/freebsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9420
9421 * i386/i386-interix.h (ASM_OUTPUT_LIMITED_STRING,
9422 ASM_OUTPUT_ASCII, ASM_OUTPUT_SECTION_NAME): Likewise.
9423
9424 * i386/i386-protos.h (asm_output_function_prefix): Likewise.
9425
9426 * i386/i386.c (asm_output_function_prefix): Likewise.
9427
9428 * i386/i386elf.h (ASM_OUTPUT_ASCII): Likewise.
9429
9430 * i386/osfrose.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9431
9432 * i386/ptx4-i.h (ASM_OUTPUT_ASCII): Likewise.
9433
9434 * i386/sco5.h (ASM_FINISH_DECLARE_OBJECT,
9435 ASM_OUTPUT_LIMITED_STRING, ASM_OUTPUT_ASCII,
9436 ASM_OUTPUT_SECTION_NAME): Likewise.
9437
9438 * i386/sysv4.h (ASM_OUTPUT_ASCII): Likewise.
9439
9440 * i860/paragon.h (ASM_OUTPUT_ASCII): Likewise.
9441
9442 * i860/sysv3.h (ASM_OUTPUT_ASCII): Likewise.
9443
9444 * m32r/m32r.c (m32r_encode_section_info): Likewise.
9445
9446 * mcore-elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9447
9448 * mcore/mcore.c (mcore_encode_section_info): Likewise.
9449
9450 * mips/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9451
9452 * mips/elf64.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9453
9454 * mips/iris6.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9455
9456 * mips/mips.h (ASM_OUTPUT_IDENT): Likewise.
9457
9458 * mips/mips.md (movdi, movsi): Likewise.
9459
9460 * mips/netbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9461
9462 * netbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9463
9464 * openbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
9465
9466 * ptx4.h (ASM_FINISH_DECLARE_OBJECT, ASM_OUTPUT_LIMITED_STRING,
9467 ASM_OUTPUT_ASCII): Likewise.
9468
9469 * rs6000/rs6000.c (rs6000_allocate_stack_space, output_epilog,
9470 output_mi_thunk, output_toc): Likewise.
9471
9472 * rs6000/rs6000.md (movsi): Likewise.
9473
9474 * rs6000/sysv4.h (ASM_OUTPUT_INT, ASM_OUTPUT_SECTION_NAME): Likewise.
9475
9476 * tahoe/harris.h (ASM_OUTPUT_ASCII): Likewise.
9477
9478 * v850/v850.c (print_operand, print_operand_address,
9479 v850_encode_data_area): Likewise.
9480
9481 2000-03-07 Clinton Popetz <cpopetz@cygnus.com>
9482
9483 * config/mips/mips.md (zero_extendsidi2): Always force operand
9484 one to memory for mips16.
9485
9486 Mon Mar 6 15:22:29 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9487
9488 * tree.h (INT_CST_LT, INT_CST_LT_UNSIGNED): Remove unneeded casts.
9489 (struct tree_int_cst): int_cst_low is now unsigned HOST_WIDE_INT.
9490 (attribute_hash_list, type_hash_canon): hashcode is now unsigned.
9491 (type_hash_lookup, type_hash_add, type_hash_list): Likewise.
9492 (min_precision): Result is unsigned.
9493 (add_double, neg_double, mul_double): Low word is unsigned.
9494 (lshift_double, rshift_double, lrotate_double): Likewise.
9495 (rrotate_double, div_and_round_double): Likewise.
9496 (tree_floor_log2, compare_tree_int): New functions.
9497 (preserve_rtl_expr_temps): New declaration.
9498 * c-common.c (declare_hidden_char_array): Use compare_tree_int.
9499 (decl_attributes): Use tree_log2 to find alignment.
9500 Check for TREE_INT_CST_HIGH for format args.
9501 (min_precision): Now unsigned.
9502 Use tree_floor_log2.
9503 (truthvalue_conversion): Delete long-disabled code.
9504 * c-decl.c (finish_struct): Clean up tests on field width.
9505 (finish_function): Use compare_tree_int.
9506 * c-pragma.c (handle_pragma_token): Use tree_log2 for alignment.
9507 * c-typeck.c (comptypes): Use tree_int_cst_equal.
9508 (default_conversion, digest_init): Use compare_tree_int.
9509 (build_binary_op): Use integer_all_onesp and compare_tree_int.
9510 Fix type errors in forming masks.
9511 * calls.c (initialize_argument_information): Use compare_tree_int.
9512 * dbxout.c (dbxout_type): Cast TREE_INT_CST_LOW to HOST_WIDE_INT.
9513 * except.c (expand_eh_region_start_tree): Use compare_tree_int.
9514 * expr.c (is_zeros_p, case INTEGER_CST): Use integer_zerop.
9515 (store_field): Use compare_tree_int.
9516 (expand_expr, case CONSTRUCTOR): Use TYPE_SIZE_UNIT.
9517 (expand_expr, case ARRAY_REF): Use compare_tree_int.
9518 (do_jump, case BIT_AND_EXPR): Use tree_floor_log2.
9519 (do_store_flag): Use compare_tree_int.
9520 * fold-const.c (encode, decode): Low part is always unsigned.
9521 (force_fit_type, add_double, neg_double, mul_double): Likewise.
9522 (lshift_double, rshift_double, lrotate_double): Likewise.
9523 (rrotate_double, div_and_round_double, int_const_binop): Likewise.
9524 (fold_convert): Use compare_tree_int.
9525 (operand_equal_p, case INTEGER_CST): Use tree_int_cst_equal.
9526 (invert_truthvalue, case INTEGER_CST): Likewise.
9527 (fold): Use compare_tree_int; add casts for unsigned TREE_INT_CST_LOW.
9528 * mkdeps.c (deps_dummy_targets): Make I unsigned.
9529 * rtl.h (add_double, neg_double, mul_double): Low words are unsigned.
9530 (lshift_double, rshift_double, lrotate_double, rrotate_double):
9531 Likewise.
9532 * stmt.c (expand_decl): Use compare_tree_int and mode_for_size_tree.
9533 (expand_end_case): Use compare_tree_int.
9534 (estimate_case_costs): Cast TREE_INT_CST_LOW to HOST_WIDE_INT.
9535 * stor-layout.c (mode_for_size_tree): Use compare_tree_int.
9536 (layout_decl): Likewise.
9537 (layout_record, layout_union): Make sizes unsigned.
9538 (layout_type, case VOID_TYPE): TYPE_SIZE must be bitsizetype.
9539 (layout_type, case QUAL_UNION_TYPE): Use compare_tree_int.
9540 * tree.c (struct type_hash): hashcode is unsigned.
9541 (build_type_attribute_variant, type_hash_list): Likewise.
9542 (type_hash_lookup, type_hash_add, type_hash_canon): Likewise.
9543 (attribute_hash_list, build_array_type, build_method_type): Likewise.
9544 (build_complex_type): Likewise.
9545 (real_value_from_int_cst): Remove unneeded casts.
9546 (integer_all_onesp): Add casts.
9547 (tree_floor_log2, compare_tree_int): New functions.
9548 (build_index_type): Use tree_int_cst_sgn.
9549 * varasm.c (assemble_variable): Use compare_tree_int.
9550
9551 2000-03-06 Jason Merrill <jason@casey.cygnus.com>
9552
9553 * cpphash.c (collect_expansion): Also catch ## at start of macro.
9554
9555 * varasm.c (make_decl_rtl): Don't add a number to members of
9556 local classes.
9557 (make_function_rtl): Likewise.
9558
9559 2000-03-06 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
9560
9561 * gcse.c (compute_can_copy): Adjust if/else blocks from rth's
9562 patch from 2000-01-28.
9563
9564 2000-03-06 Clinton Popetz <cpopetz@cygnus.com>
9565
9566 * config/sh/sh.c: (barrier_align): Handle a delay slot that is
9567 filled with an insn from the jump target.
9568
9569 2000-03-07 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9570
9571 * config/c4x/c4x-protos.h (c4x_global_name): Constify char *.
9572 (c4x_external_ref): Likewise.
9573 * config/c4x/c4x.c (struct name_list): Likewise.
9574
9575 1999-12-16 Ben Collins <bcollins@debian.org>
9576
9577 * Makefile.in: Pass a new MULTILIB_EXCLUSIONS option as the sixth
9578 argument to genmultilib.
9579 * genmultilib: accept new MULTILIB_EXCLUSIONS option and output
9580 the contents into the multilib.h header.
9581 * gcc.c: Declare multilib_exclusions for the specs file.
9582 (set_multilib_dir): Use it.
9583 (print_multilib_info): Likewise.
9584 * t-linux64: Declare arguments for new MULTILIB_EXCLUSIONS option
9585 to pass to genmultilib.
9586
9587 2000-03-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9588
9589 * builtins.c (built_in_class_names, built_in_names): Constify a
9590 char*.
9591
9592 * gmon-sol2.c (monstartup, moncontrol): Cast ptrs to long, not
9593 int.
9594 (_mcleanup): Ensure value matches format specifier in sprintf.
9595
9596 * cpphash.c (special_symbol): Don't needlessly cast away
9597 const-ness.
9598
9599 * cppinit.c (base_name): Delete unused prototype.
9600
9601 * mkdeps.c (deps_init): Make definition K&R safe.
9602
9603 * tree.h (built_in_class_names, built_in_names): Constify a
9604 char*.
9605
9606 2000-03-06 Jakub Jelinek <jakub@redhat.com>
9607
9608 * config/sparc/sparc.c (eligible_for_epilogue_delay): Accept
9609 floating point instructions for epilogue delay.
9610
9611 * config/sparc/sparc.h (ASM_ARCH64_SPEC): Pass -no-undeclared-regs
9612 to gas if it supports .register pseudo.
9613
9614 * real.h (MAX_LONG_DOUBLE_TYPE_SIZE): Define to
9615 LONG_DOUBLE_TYPE_SIZE if not defined.
9616 Use MAX_LONG_DOUBLE_TYPE_SIZE instead of
9617 LONG_DOUBLE_TYPE_SIZE in preprocessor if clauses.
9618 * real.c: Likewise.
9619 * gengenrtl.c: Likewise.
9620 * print-rtl.c: Likewise.
9621 * rtl.c: Likewise.
9622 * config/sparc/sol2-sld-64.h (TARGET_DEFAULT): Set
9623 MASK_LONG_DOUBLE_128.
9624 * config/sparc/sol2.h (TARGET_DEFAULT): Likewise.
9625 * config/sparc/sp64-elf.h (TARGET_DEFAULT): Likewise.
9626 * config/sparc/linux64 (TARGET_DEFAULT): Likewise.
9627 (SUBTARGET_SWITCHES): Define.
9628 (CPP_ARCH32_SPEC): Define __LONG_DOUBLE_128__ if compiling
9629 with -mlong-double-128.
9630 (LONG_DOUBLE_TYPE_SIZE): Define depending on target_flags.
9631 (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
9632 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on CPP macros.
9633 (CC1_SPEC): Include -mlong-double-{64,128} as needed.
9634 * config/sparc/linux.h (SUBTARGET_SWITCHES): Define.
9635 (CPP_SUBTARGET_SPEC): Define __LONG_DOUBLE_128__ if compiling
9636 with -mlong-double-128.
9637 (LONG_DOUBLE_TYPE_SIZE): Define depending on target_flags.
9638 (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
9639 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on CPP macros.
9640 * config/sparc/sparc.h (MASK_LONG_DOUBLE_128,
9641 TARGET_LONG_DOUBLE_128): Define.
9642 * config/sparc/linux-aout.h (LONG_DOUBLE_TYPE_SIZE): Remove.
9643 * config/sparc/sparc.c (sparc_override_options): Disallow 64bit
9644 long double on TARGET_ARCH64.
9645
9646 2000-03-06 Mark Mitchell <mark@codesourcery.com>
9647
9648 * function.c (free_temps_for_rtl_expr): Don't free slots
9649 that have been pushed into a higher level.
9650
9651 Revert this patch:
9652 2000-03-05 Mark Mitchell <mark@codesourcery.com>
9653
9654 2000-03-05 Mark Mitchell <mark@codesourcery.com>
9655
9656 * basic-block.h (ALLOCA_REG_SET): Remove.
9657 (INITIALIZE_REG_SET): New macro.
9658 * flow.c (update_life_info): Use it.
9659 (calculate_global_regs_live): Likewise.
9660 (propagate_block): Likewise.
9661 * global.c (build_insn_chain): Likewise.
9662 * haifa-sched.c (schedule_region): Likewise.
9663
9664 2000-03-05 Stephane Carrez <stcarrez@worldnet.fr>
9665
9666 * dwarf2out.c (UNALIGNED_WORD_ASM_OP): Support 2 bytes pointer.
9667 (ASM_OUTPUT_DWARF_ADDR_CONST): Use UNALIGNED_WORD_ASM_OP.
9668 (DWARF_ARANGES_PAD_SIZE): New define.
9669 (output_aranges): Use it to pad the address range header.
9670 (DWARF_ROUND): Fix for non power of 2 rounding.
9671
9672 2000-03-05 Jason Merrill <jason@casey.cygnus.com>
9673
9674 * mkdeps.c (deps_calc_target): Remove incorrect 'const'.
9675
9676 2000-03-05 Mark Mitchell <mark@codesourcery.com>
9677
9678 * tree.def (RTL_EXPR): Update documentation.
9679 * tree.h (RTL_EXPR_HAS_NO_SCOPE): New macro.
9680 * expr.c (expand_expr): Handle RTL_EXPR_HAS_NO_SCOPE.
9681 * function.c (preserve_rtl_expr_temp): New function.
9682 (preserve_rtl_expr_temps): Likewise.
9683 (preserve_rtl_expr_result): Use it.
9684
9685 Revert this patch:
9686 2000-03-04 Mark Mitchell <mark@codesourcery.com>
9687
9688 2000-03-04 Thomas Schuster <Thomas.Schuster@gmx.net>
9689
9690 * regmove.c (copy_src_to_dest) Do not create src->dest move
9691 for unchanging destination.
9692
9693 2000-03-04 Mark Mitchell <mark@codesourcery.com>
9694
9695 * function.h (struct sequence_stack): Remove rtl_expr.
9696 (struct emit_staus): Likewise.
9697 (seq_rtl_expr): Remove.
9698 * tree.h (free_temps_for_rtl_expr): Don't declare.
9699 (start_sequence_for_rtl_expr): Likewise.
9700 * rtl.h (preserve_rtl_expr_result): Likewise.
9701 * emit-rtl.c (start_sequence): Don't set sequence_rtl_expr.
9702 (start_sequence_for_rtl_expr): Remove.
9703 (push_topmost_sequence): Don't save sequence_rtl_expr.
9704 (pop_topmost_sequence): Remove comment about not restoring it.
9705 (end_sequence): Don't set seq_rtl_expr.
9706 (init_emit): Don't initialize it.
9707 (mark_sequence_stack): Don't mark it.
9708 (mark_emit_status): Likewise.
9709 * except.c (protect_with_terminate): Use
9710 start_sequence_for_rtl_expr, not start_sequence.
9711 * expr.c (expand_expr, case RTL_EXPR): Don't call
9712 preserve_rtl_expr_result or free_temps_for_rtl_expr.
9713 * function.c (assign_stack_temp_for_type): Don't set rtl_expr.
9714 (preserve_rtl_expr_result): Remove.
9715 (free_temps_for_rtl_expr): Likewise.
9716 (pop_temp_slots): Likewise.
9717 (mark_temp_slot): Don't mark the rtl_expr.
9718 * stmt.c (expand_start_stmt_expr): Use start_sequence, not
9719 start_sequence_for_rtl_expr.
9720
9721 2000-03-04 Zack Weinberg <zack@wolery.cumb.org>
9722
9723 * mkdeps.c, mkdeps.h: New files.
9724 * po/POTFILES.in: Add them.
9725 * Makefile.in (LIBCPP_OBJS): Add mkdeps.o.
9726 (cpplib.o, cppinit.o): Depend on mkdeps.h.
9727 (mkdeps.o): New target.
9728
9729 * cppfiles.c: Delete deps_output.
9730 * cppinit.c: Include mkdeps.h. Delete known_suffixes,
9731 OBJECT_SUFFIX, and base_name.
9732 (cpp_cleanup): Use deps_free. Free ihash->name when clearing
9733 the include hash.
9734 (initialize_dependency_output): Use deps_init,
9735 deps_add_target, deps_calc_target, and deps_add_dep. Remove
9736 all the unnecessary string bashing.
9737 (cpp_finish): Use deps_write. Remove an unnecessary nesting
9738 level.
9739 * cpplib.c (do_include): Use deps_add_dep.
9740 * cpplib.h (struct cpp_reader): Replace deps_buffer,
9741 deps_allocated_size, deps_size, deps_column members with
9742 single pointer to a struct deps. Delete prototype of
9743 deps_output.
9744
9745 * cppinit.c: Fix thinko in previous patch.
9746
9747 Sat Mar 4 11:32:30 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9748
9749 * machmode.h (mode_for_size, smallest_mode_for_size): SIZE now signed.
9750 * stor-layout.c (mode_for_size, smallest_mode_for_size): Likewise.
9751 (mode_for_size_tree): New function.
9752 (layout_decl, layout_type): Call it and clean up BLKmode checks.
9753 * tree.h (mode_for_size_tree): New declaration.
9754
9755 * toplev.c (debug_ignore_block): Mark arg BLOCK as possibly unused.
9756
9757 2000-03-04 Jason Merrill <jason@casey.cygnus.com>
9758
9759 * stmt.c (is_body_block): Move...
9760 * dwarfout.c, dwarf2out.c: ...from here.
9761 * tree.h: Declare it.
9762 * emit-rtl.c (remove_unncessary_notes): Don't remove the body block.
9763 * final.c (final_start_function): Do call remove_unnecessary_notes
9764 when scheduling.
9765
9766 2000-03-03 Zack Weinberg <zack@wolery.cumb.org>
9767
9768 * config/vax/xm-vms.h: Define OBJECT_SUFFIX and EXECUTABLE_SUFFIX.
9769
9770 * cpplib.h (_dollar_ok): New macro.
9771 (is_idchar, is_idstart): Use it.
9772 (IStable): Rename to _cpp_IStable. Declare it const if
9773 gcc >=2.7 or C99. Delete all references to FAKE_CONST.
9774 (is_idchar, is_idstart, is_numchar, is_numstart, is_hspace,
9775 is_space): Update for renamed IStable.
9776
9777 * cppinit.c: Delete all references to FAKE_CONST and CAT
9778 macros. Define init_IStable as empty macro if gcc >=2.7 or
9779 C99. Change TABLE() to ISTABLE and hardcode name of table.
9780 (cpp_start_read): Don't change the IStable based on
9781 dollars_in_ident.
9782
9783 * cpphash.c (unsafe_chars): Add pfile argument. All callers
9784 changed. Handle '$' for char1 correctly.
9785 * cpplib.c (cpp_get_token): Use is_numchar when parsing numbers.
9786
9787 * cppexp.c (tokentab2): Make const.
9788 (cpp_lex): Make toktab const.
9789 * cppinit.c (include_defaults_array): Make const.
9790 (initialize_standard_includes): Make default_include const.
9791
9792 2000-03-03 Jason Merrill <jason@casey.cygnus.com>
9793
9794 * dwarf2out.c (dwarf2out_frame_debug): Add cast to silence warning.
9795 (dwarf2out_decl): Functions can now have DECL_IGNORED_P.
9796 (gen_decl_die): Likewise.
9797 * dwarfout.c (dwarfout_file_scope_decl): Likewise.
9798 (output_decl): Likewise.
9799
9800 * varasm.c (make_function_rtl): If we change the name used in the
9801 rtl, update DECL_ASSEMBLER_NAME accordingly.
9802 (make_decl_rtl): Likewise.
9803
9804 * toplev.c (rest_of_compilation): Tweak formatting.
9805
9806 * toplev.c (rest_of_compilation): find_loop_tree_blocks before
9807 remove_unnecessary_notes.
9808 (debug_ignore_block): New fn.
9809 * toplev.h: Declare it.
9810 * emit-rtl.c (remove_unncessary_notes): Call it.
9811 * dwarf2out.c (dwarf2out_ignore_block): New fn.
9812 * dwarf2out.h: Declare it.
9813 * final.c (final_start_function): Don't call remove_unnecessary_notes
9814 if we did insn scheduling.
9815
9816 2000-03-03 Zack Weinberg <zack@wolery.cumb.org>
9817
9818 * cppinit.c (cpp_handle_option): Set opts->pedantic directly.
9819 * cpplib.h: Delete SET_CPP_PEDANTIC.
9820
9821 Fri Mar 3 14:56:12 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9822
9823 * expr.c (expand_expr, case COMPONENT_REF): Use bitfield case if
9824 result is a RECORD_TYPE.
9825
9826 2000-03-03 Jonathan Larmour <jlarmour@cygnus.co.uk>
9827
9828 * mips/elf.h (CTOR_LISTS_DEFINED_EXTERNALLY): Added.
9829
9830 2000-03-03 Richard Henderson <rth@cygnus.com>
9831
9832 * alpha.c (alpha_emit_set_const_1): Re-order cases to prefer
9833 addition over compliments over shifts.
9834
9835 Fri Mar 3 12:49:28 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
9836
9837 * reload1.c (reload_combine_note_use): Handle return register USEs.
9838 REG case: Handle multi-hard-register hard regs.
9839
9840 Fri Mar 3 07:38:34 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9841
9842 * md.texi: Document use of '*' in insn pattern name.
9843
9844 2000-03-03 Jason Merrill <jason@casey.cygnus.com>
9845
9846 * calls.c (special_function_p): operator new may not be malloc-like.
9847
9848 * gcse.c (dump_hash_table): Really fix error in last change.
9849
9850 2000-03-02 Denis Chertykov <denisc@overta.ru>
9851
9852 * avr.c (print_operand): Use print_operand_address instead of
9853 output_addr_const.
9854 * avr/libgcc.S: Cleanup code.
9855
9856 2000-03-02 Richard Henderson <rth@cygnus.com>
9857
9858 * alpha.c (alpha_emit_set_const_1): Also try c + small constant.
9859
9860 2000-03-02 Mark Mitchell <mark@codesourcery.com>
9861
9862 * tree.h (TYPE_ALIGN_UNIT): New macro.
9863
9864 2000-03-02 Clinton Popetz <cpopetz@cygnus.com>
9865
9866 * i386.c: (constant_call_address_operand): Reject CONST_INT.
9867
9868 2000-03-02 Jason Merrill <jason@casey.cygnus.com>
9869
9870 * cpplib.h (CPP_PEDANTIC): Only true if system_header_p is not set
9871 for the buffer.
9872 (SET_CPP_PEDANTIC): New macro.
9873 * cpplib.c (do_include): Don't bother checking system_header_p.
9874 (do_warning, do_ident, do_assert, do_unassert): Likewise.
9875 * cppinit.c (cpp_handle_option): Use SET_CPP_PEDANTIC.
9876
9877 * function.h (struct expr_status): Add x_arg_space_so_far.
9878 (arg_space_so_far): New macro.
9879 * expr.c (init_expr): Initialize it.
9880 * calls.c (emit_call_1): Reset it.
9881 (compute_argument_block_size, expand_call): Use it.
9882 (expand_call, store_one_arg): Increment it.
9883
9884 Thu Mar 2 17:27:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9885
9886 * varasm.c (output_constant): Strip off a CONVERT_EXPR to
9887 a UNION_TYPE.
9888
9889 2000-03-02 Zack Weinberg <zack@wolery.cumb.org>
9890
9891 * cppfiles.c (cpp_read_file): New function.
9892
9893 * cpphash.c (collect_expansion): Make sure to reset last_token
9894 to NORM when we hit a string. Handle trailing whitespace
9895 properly when the expansion is empty.
9896 (create_definition): Disable line commands while parsing the
9897 directive line.
9898 (dump_definition): If pfile->lineno == 0, output a line
9899 command ahead of the dump, and add a trailing newline.
9900
9901 * cppinit.c (append_include_chain): Add fifth argument, which
9902 indicates whether or not system headers are C++ aware.
9903 (initialize_standard_includes): New function,
9904 broken out of read_and_prescan. Pass 'cxx_aware' value from
9905 the include_defaults_array on to append_include_chain.
9906 (dump_special_to_buffer): Const-ify char array.
9907 (builtin_array): Don't dump __BASE_FILE__.
9908 (cpp_start_read): Use cpp_read_file. Reorder code for
9909 clarity. Don't output line commands here for -D/-A/-U
9910 switches. Don't call deps_output for files included with
9911 -include or -imacros.
9912
9913 * cpplib.c (do_define): Don't pay any attention to the second
9914 argument.
9915 (cpp_expand_to_buffer): Disable line commands while scanning.
9916 (output_line_command): Work in the file buffer.
9917 * cpplib.h: Remove no_record_file flag from struct cpp_reader.
9918 Fix formatting of comments. Prototype cpp_read_file.
9919
9920 Thu Mar 2 13:29:46 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9921
9922 * c-common.c (c_common_nodes_and_builtins): Make sizetype_endlink
9923 reference the language-equivalent of sizetype.
9924 * c-typeck.c (comptypes): Treat sizetype like its language equivalent.
9925 * fold-const.c (size_binop, size_diffop): Put back checks.
9926 * gcse.c (dump_hash_table): Fix minor error in last change.
9927 * stor-layout.c (set_sizetype): Set TYPE_DOMAIN of sizetype.
9928 Clear TYPE_{NEXT,MAIN}_VARIANT and TYPE_{POINTER,REFERENCE}_to of
9929 all sizetypes.
9930
9931 Thu Mar 2 12:48:45 MET 2000 Jan Hubicka <jh@suse.cz>
9932
9933 * calls.c (expand_call) Do not attempt to combine stack adjustments
9934 with inhibit_defer_pop set.
9935
9936 2000-03-01 Mark Mitchell <mark@codesourcery.com>
9937
9938 * stor-layout.c (layout_decl): Allow front-ends to explicitly set
9939 the DECL_SIZE for a FIELD_DECL.
9940
9941 2000-03-01 Bruce Korb <bkorb@gnu.org>
9942
9943 * fixinc/inclhack.tpl: remove unused symlinks
9944 * fixinc/README: GCC Maintainer info
9945 * fixinc/inclhack.sh: regen
9946 * fixinc/fixincl.sh: regen
9947
9948 2000-03-01 Zack Weinberg <zack@wolery.cumb.org>
9949
9950 * cpphash.c (collect_expansion): Trim trailing white space
9951 from macro definitions, but don't go past the last insertion
9952 point.
9953
9954 Wed Mar 1 12:14:31 MET 2000 Jan Hubicka <jh@suse.cz>
9955
9956 * i386.md (mulqi3): New pattern.
9957
9958 2000-02-29 Zack Weinberg <zack@wolery.cumb.org>
9959
9960 * cpplib.h (CPP_ASSERTION, CPP_STRINGIZE, CPP_TOKPASTE): New
9961 token types.
9962 (struct cpp_reader): Add parsing_if_directive and
9963 parsing_define_directive flags.
9964 (struct cpp_options): Remove output_conditionals flag.
9965 (check_macro_name): Delete prototype.
9966
9967 * cpphash.h (struct macrodef): Delete.
9968 (struct reflist): Separate from struct definition.
9969 (struct definition): Remove unused fields. Add column number.
9970 (create_definition): Returns a DEFINITION *. Takes a
9971 cpp_reader * and an int.
9972
9973 * cpphash.c (SKIP_WHITE_SPACE): Delete.
9974 (PEEKC): Copy defn from cpplib.c.
9975 (rest_extension, REST_EXTENSION_LENGTH): Delete.
9976 (struct arg): New.
9977 (struct arglist): Simplify.
9978 (collect_expansion): Rewrite. Get tokens by calling
9979 cpp_get_token. Add more error checking.
9980 (collect_formal_parameters): New function, broken out of
9981 create_definition and reworked to use get_directive_token.
9982 (create_definition): All real work is now in collect_expansion
9983 and collect_formal_parameters. do_define handles finding the
9984 macro name. Return a DEFINITION, not a MACRODEF.
9985 (macroexpand): Replace bcopy with memcpy throughout. Replace
9986 character-at-a-time copy loop with memcpy and pointer increments.
9987 (compare-defs): d1->argnames / d2->argnames might be null.
9988
9989 * cpplib.c (copy_rest_of_line): Delete function.
9990 (skip_rest_of_line): Do all the work ourselves.
9991 (skip_string): New function.
9992 (parse_string): Use skip_string.
9993 (get_macro_name): New function.
9994 (check_macro_name): Delete.
9995 (copy_comment): Use CPP_RESERVE and CPP_PUTC_Q.
9996 (cpp_skip_hspace): Use CPP_BUMP_LINE.
9997 (handle_directive): ICE if we're called on a macro buffer.
9998 (do_define): Determine macro name and type (funlike/objlike)
9999 here. Expunge all uses of MACRODEF.
10000 (cpp_push_buffer): Set line_base to NULL.
10001 (do_undef, read_line_number): Don't worry about getting a POP token.
10002 (eval_if_expression): Set/reset parsing_if_directive around
10003 cpp_parse_expr. Don't clear only_seen_white.
10004 (skip_if_group): Remove output_conditionals logic. Use
10005 skip_rest_of_line.
10006 (cpp_get_token): Return ASSERTION, STRINGIZE, and TOKPASTE
10007 tokens under appropriate conditions.
10008 (cpp_unassert): Call do_unassert not do_assert. Oops.
10009
10010 * cppexp.c (parse_defined): New function, break out of
10011 cpp_lex.
10012 (cpp_lex): We now get CPP_ASSERTION tokens and can check them
10013 ourselves, with cpp_defined.
10014 * cppinit.c (cpp_handle_option, print_help): Delete -ifoutput.
10015
10016 * gcc.dg/20000209-2.c: Turn off -pedantic-errors.
10017 * gcc.dg/strpaste-2.c: New.
10018
10019 2000-02-29 Mark Mitchell <mark@codesourcery.com>
10020
10021 * fold-const.c (size_binop): Don't asert inputs are the same and
10022 have TYPE_IS_SIZETYPE set.
10023 (size_diffop): Likewise.
10024
10025 2000-02-29 Jason Merrill <jason@casey.cygnus.com>
10026
10027 * dwarfout.c (output_block): Output abstract blocks even if they
10028 don't have TREE_ASM_WRITTEN set.
10029
10030 * calls.c (emit_library_call): Check for null REG.
10031
10032 2000-03-01 Martin von Loewis <loewis@informatik.hu-berlin.de>
10033
10034 * c-decl.c (current_function_decl): Move to toplev.c.
10035 (init_decl_processing): Don't add current_function_decl as a ggc
10036 root here.
10037 * dbxout.c (dbxout_symbol): Change return type to int.
10038 (dbxout_symbol_location, dbxout_syms): Likewise.
10039 (dbxout_block): Don't emit LBRAC/RBRAC pairs for blocks without
10040 any locals. Use current_function_func_begin_label if set.
10041 * dbxout.h (dbxout_symbol, dbxout_syms): Change return type.
10042 * dwarf2out.c (dwarf2out_begin_prologue): Set
10043 current_function_func_begin_label.
10044 * final.c (final_start_function): Reset it.
10045 * toplev.c (current_function_decl): Define it here.
10046 (current_function_func_begin_label): New variable.
10047 (main): Add both as ggc roots.
10048 * tree.h (current_function_func_begin_label): Declare.
10049
10050 Tue Feb 29 14:07:04 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10051
10052 * gcse.c: Cleanups throughout: mostly white-space, but also
10053 some minor rearrangement of code.
10054
10055 Tue Feb 29 10:45:59 2000 Jeffrey A Law (law@cygnus.com)
10056
10057 * calls.c (emit_library_call): Do not abort if FUNCTION_ARG
10058 returns a PARALLEL. Use emit_group_load and use_group_regs
10059 as needed.
10060 (emit_library_call_value): Similarly.
10061
10062 * pa/t-pa: Use quadlib.c instead of quadlib.asm.
10063 * pa/quadlib.asm: Remove.
10064 * pa/quadlib.c: New file.
10065
10066 * configure.in (hpux10, hpux11, PA32 mode): Use i128 float format.
10067 * configure: Rebuilt.
10068
10069 2000-02-29 Philip Blundell <pb@futuretv.com>
10070
10071 * config/arm/conix-elf.h: New file.
10072 * configure.in (arm*-*-conix*): New configuration.
10073 * configure: Regenerate.
10074
10075 2000-02-28 Jason Merrill <jason@casey.cygnus.com>
10076
10077 * dwarf2out.c (gen_block_die): Output abstract blocks even if they
10078 don't have TREE_ASM_WRITTEN set.
10079
10080 Mon Feb 28 21:07:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10081
10082 * Eliminate DECL_FIELD_SIZE.
10083 * builtins.c (built_in_class_names, built_in_names): New variables.
10084 * c-decl.c (finish_struct): Set specified size in DECL_SIZE.
10085 * expr.c (expand_expr, case COMPONENT_REF): Get field size from
10086 DECL_SIZE, not DECL_FIELD_SIZE.
10087 * print-tree.c (print_node): Remove code that prints extra blank
10088 lines in some cases.
10089 Properly handle inline and builtin function cases.
10090 * stor-layout.c (layout_decl): Get specified size from DEC_SIZE.
10091 * tree.h (built_in_class_named, built_in_names): New declarations.
10092 (union tree_decl): Rename internal unions to u1 and u2 and change
10093 some of their components.
10094 Add new field built_in_class.
10095 (DECL_ALIGN, DECL_INCOMING_RTL, DECL_SAVED_INSNS, DECL_FRAME_SIZE):
10096 Reflect above changes.
10097 (DECL_FUNCTION_CODE, DECL_BUILT_IN_CLASS): Likewise.
10098 (DECL_SET_FUNCTION_CODE, DECL_FIELD_SIZE): Deleted.
10099 * objc/objc-act.c (objc_copy_list): Use DECL_SIZE, not DECL_FIELD_SIZE.
10100 (encode_field_decl): Likewise; also remove obsolete test for bitfield.
10101
10102 2000-02-28 Dmitri Makarov <dim@windriver.com>
10103
10104 * extend.texi: Document ARM's support for long/short calls.
10105
10106 * invoke.texi: Document ARM's -mlong-calls command line switch.
10107
10108 * config/arm/arm-protos.h (arm_is_longcall_p): Add prototype.
10109 (arm_encode_call_attribute): Add prototype.
10110 (arm_set_default_type_attribute): Add prototype.
10111 (arm_strip_name_encoding): Add prototype.
10112
10113 * config/arm/arm.c (arm_init_cumulative_args): replace
10114 initialisation og 'long_calls' field with initialisation of
10115 'call_cookie' field.
10116 (enum arm_pragma_enum): New enum.
10117 (arm_pragma_long_calls): New static variable.
10118 (arm_process_pragma): Also process "#pragma long_calls_off".
10119 (arm_valid_type_attribute_p): Accept short_call attribute.
10120 (arm_comp_type_attributes): Check long/short call attributes.
10121 (arm_encode_call_attribute): New function: Encode long_call
10122 or short_call attribute in function name.
10123 (arm_set_default_type_attributes): New function: Assign
10124 default attributes to newly defined type.
10125 (current_file_function_operand): New function: Return true if
10126 the symbol is a function which has already been compiled.
10127 (arm_is_longcall_p): New function: Return true if the
10128 indicated function should be called via a long call.
10129 (arm_get_strip_length): New function. Returns number of
10130 prefix characters to be stripped from a function's name.
10131 (arm_strip_name_encoding): New function. Strip prefix characters
10132 from a function's name.
10133
10134 * config/arm/arm.h (CUMULATIVE_ARGS): Replace 'long_call' field
10135 with 'call_cookie'.
10136 (SHORT_CALL_FAG_CHAR): Define.
10137 (LONG_CALL_FAG_CHAR): Define.
10138 (ENCODED_SHORT_CALL_ATTR_P): Define.
10139 (ENCODED_LONG_CALL_ATTR_P): Define.
10140 (ARM_NAME_ENCODING_LENGTHS): Define.
10141 (STRIP_NAME_ENCODING): Define.
10142 (ASM_OUTPUT_LABELREF): Define, and use to strip name encoding.
10143 (ARM_ENCODE_CALL_TYPE): Define.
10144 (ENCODE_SECTION): Invoke ARM_ENCODE_CALL_TYPE.
10145 (ARM_DECLARE_FUNCTION_SIZE): Define.
10146 (SET_DEFAULT_TYPE_ATTRIBUTES): Define.
10147
10148 * config/arm/arm.md (call): Call arm_is_longcall_p to decide
10149 if a long call is needed.
10150 (call_value): Ditto.
10151 (call_symbol): Ditto.
10152
10153 * config/arm/elf.h (ASM_DECLARE_FUNCTION_SIZE): Add invocation of
10154 ARM_DECLARE_FUNCTION_SIZE.
10155
10156 * config/arm/pe.h (ARM_PE_FLAG_CHAR): Define.
10157 (SUBTARGET_NAME_ENCODING_LENGTHS): Define.
10158 (ARM_STRIP_NAME_ENCODING): Undefine.
10159 (STRIP_NAME_ENCODING): Undefine.
10160 (ASM_OUTPUT_LABELREF): Use arm_strip_name_encoding.
10161 (ASM_DECLARE_FUNCTION_NAME): Ditto.
10162 (ASM_OUTPUT_COMMON): Ditto.
10163 (ASM_DECLARE_OBJECT_NAME): Ditto.
10164
10165 * config/arm/pe.c (arm_dllexport_name_p): Check for
10166 ARM_PE_FLAG_CHAR.
10167 (arm_dllimport_name_p): Ditto.
10168 (arm_mark_dllexport): Use ARM_PE_FLAG_CHAR.
10169 (arm_mark_dllimport): Ditto.
10170
10171 Mon Feb 28 22:11:12 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
10172
10173 * sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Define.
10174
10175 2000-02-28 Mark Mitchell <mark@codesourcery.com>
10176
10177 * xcoffout.c (xcoffout_begin_function): Fix typo in previous change.
10178
10179 2000-02-28 Zack Weinberg <zack@wolery.cumb.org>
10180
10181 * tm.texi: Document new target switch, NO_BUILTIN_WCHAR_TYPE.
10182 * cppinit.c (builtin_array): Define __WCHAR_TYPE__ only if
10183 NO_BUILTIN_WCHAR_TYPE is not defined.
10184 (CPP_WCHAR_TYPE): Delete.
10185 * cccp.c (main): Don't change wchar_type if cplusplus.
10186 (special_symbol, initialize_builtins): Honor NO_BUILTIN_WCHAR_TYPE.
10187
10188 2000-02-28 Nick Clifton <nickc@cygnus.com>
10189
10190 * config/arm/arm-wince-pe.h (SIZE_TYPE): Define to "unsigned long".
10191
10192 Mon Feb 28 14:21:15 2000 Catherine Moore <clm@cygnus.com>
10193
10194 * config/pa/som.h (MAKE_DECL_ONE_ONLY): Define.
10195 (ASM_WEAKEN_LABEL): Define.
10196
10197 Mon Feb 28 13:07:19 MET 2000 Jan Hubicka <jh@suse.cz>
10198
10199 * expr.c (store_constructor): Do not emit USE.
10200 * rtl.h (stupid_life_analysis): Remove.
10201
10202 Mon Feb 28 07:03:27 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10203
10204 * function.c (number_blocks): Reset next_block_index based on
10205 what debugging format is used, not what is defined.
10206
10207 * lcm.c: Minor reformatting throughout.
10208 (reg_dies, reg_becomes_live): Properly handle multiple hard regs.
10209
10210 * toplev.c (rest_of_compilation): Account for time in
10211 optimize_mode_switching.
10212
10213 * jump.c (jump_optimize_1): Don't call delete_barrier_successors
10214 if only marking labels.
10215
10216 Mon Feb 28 12:53:57 MET 2000 Jan Hubicka <jh@suse.cz>
10217
10218 * calls.c (expand_call): Attempt to combine stack adjustments with
10219 pending stack adjustments.
10220
10221 Mon Feb 28 11:34:43 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
10222
10223 * loop.c (reg_in_basic_block_p): Don't abort when falling through
10224 to the end of the function.
10225
10226 2000-02-27 Mark Mitchell <mark@codesourcery.com>
10227
10228 * emit-rtl.c (remove_unncessary_notes): Remove notes for empty
10229 blocks.
10230 * final.c (next_block_index): Remove.
10231 (max_block_depth): Likewise.
10232 (pending_blocks): Likewise.
10233 (init_final): Don't initialize them.
10234 (final_start_function): Don't set next_block_index. Set up
10235 BLOCK_NUMBER.
10236 (final_scan_insn): Use BLOCK_NUMBER, not next_block_index.
10237 * function.h (number_blocks): New function.
10238 * function.c (get_block_vector): New function.
10239 (identify_blocks): Use it.
10240 (reorder_blocks): Set NOTE_BLOCK.
10241 (number_blocks): New function.
10242 * tree.def (BLOCK): Add documentation for TREE_ASM_WRITTEN flag.
10243 * tree.h (BLOCK_NUMBER): New macro.
10244 (tree_block): Add block_num field.
10245 * dbxout.c (next_block_number): Remove.
10246 (dbxout_init): Don't set it.
10247 (dbxout_block): Only output blocks that have TREE_ASM_WRITTEN
10248 set. Use BLOCK_NUMBER, rather than next_block_num, to determine
10249 block numbers.
10250 * toplev.c (rest_of_compilation): Always call
10251 find_loop_tree_blocks. Fix indentation.
10252 * dwarf2out.c (next_block_number): Remove.
10253 (gen_lexical_block_die): Use BLOCK_NUMBER, not next_block_number,
10254 to determine block numbers.
10255 (gen_inlined_subroutine_die): Likewise.
10256 (gen_block_die): Only output blocks that have TREE_ASM_WRITTEN set.
10257 (decls_for_scope): Don't increment next_block_number.
10258 * dwarfout.c (next_block_number): Remove.
10259 (output_lexical_block_die): Use BLOCK_NUMBER, not next_block_number,
10260 to determine block numbers.
10261 (output_inlined_subroutine_die): Likewise.
10262 (output_block): Only output blocks that have TREE_ASM_WRITTEN set.
10263 (output_decls_for_scope): Don't increment next_block_number.
10264 * sdbout.c (next_block_number): Remove.
10265 (sdbout_block): Use BLOCK_NUMBER.
10266 (sdbout_begin_block): Simplify.
10267 * xcoffout.c (next_block_number): Remove.
10268 (xcoffout_block): Use BLOCK_NUMBER, not next_block_number.
10269 (xcoffout_begin_block): Don't set next_block_number.
10270 (xcoffout_begin_function): Likewise. Use BLOCK_NUMBER, not
10271 next_block_number.
10272
10273 Sun Feb 27 16:40:33 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10274
10275 * builtins.c (c_strlen): Use size_diffop and return ssizetype value.
10276 (expand_builtin_strcpy): Pass correct type to size_binop.
10277 (expand_builtin_strcmp): Likewise.
10278 Clean up conditional structure.
10279 * c-decl.c (init_decl_processing): Don't call set_sizetype twice.
10280 (complete_array_type): Don't use size_binop for MAXINDEX.
10281 * c-typeck.c (c_sizeof): Use size_one_node and TYPE_SIZE_UNIT.
10282 (c_sizeof_nowarn, c_size_in_bytes): Likewise.
10283 (c_alignof): Use size_one_node.
10284 (build_unary_op): Pass arg of proper type to size_binop.
10285 (really_start_incremental_init, push_init_level): Use sizetype for
10286 constructor{,_bit,_unfilled}_index.
10287 (pop_init_label, output_init_element): Likewise.
10288 (output_pending_init_elements, process_init_element): Likewise.
10289 * calls.c (compute_argument_block_size): Field VAR is ssizetype.
10290 * expr.c (store_expr): Use size_int.
10291 (store_constructor): Use proper types for size_binop args.
10292 (get_inner_reference, expand_expr, case ARRAY_REF): Likewise.
10293 (expand_expr_unaligned): Likewise.
10294 (string_contant): Return object of sizetype.
10295 * expr.h (SUB_PARM_SIZE): Call size_diffop and pass proper types.
10296 (ARGS_SIZE_RTX): Call ARGS_SIZE_TREE.
10297 (ARGS_SIZE_TREE): Pass proper types to size_binop.
10298 * fold-const.c (int_const_binop): Refine when size_int is called.
10299 (fold_convert): Likewise.
10300 (size_int_wide): Rework to take KIND as arg, only take low order
10301 bits, handle new sizetype_tab datatype, and chain entries in
10302 size_table.
10303 (size_int_type_wide): New function.
10304 (size_binop): Validate types of arguments.
10305 (ssize_binop): Deleted.
10306 (size_diffop): New function.
10307 (extract_muldiv): Only fold division into multiplication for sizetypes.
10308 * function.c (assign_parms): Use size_diffop and make sure
10309 VAR field is of ssizetype; also pass proper type to size_binop.
10310 (locate_and_pad_parm, pad_to_arg_alignment): Likewise.
10311 (round_down): Deleted from here.
10312 * store-layout.c (sizetype_tab): Now an array.
10313 (sizetype_set, early_root_list): New variables.
10314 (variable_size): Use size_one_node.
10315 (round_up): Pass proper type to size_binop.
10316 (round_down): Moved to here and corrected as above.
10317 (layout_record): Pass proper arg types to size_binop.
10318 (layout_type): Likewise.
10319 If sizetype_set is zero, record the type just laid out.
10320 (make_unsigned_type): Don't call set_sizetype;
10321 (make_signed_type): Likewise; also, call fixup_signed_type.
10322 (initialize_sizetypes): New function.
10323 (set_sizetype): Make copy of types, set TYPE_IS_SIZETYPE, and
10324 set name of bitsizetype to "bit_size_type".
10325 Fix up type of sizes of all types made before call.
10326 * tm.texi (ROUND_TYPE_SIZE_UNIT): New macro.
10327 * tree.c (fix_sizetype): Deleted.
10328 (build_common_tree_nodes): Call initialize_sizetypes.
10329 (build_common_tree_nodes_2): Don't call fix_sizetype.
10330 * tree.h (TYPE_IS_SIZETYPE): New macro.
10331 (initialize_sizetype): New declaration.
10332 (enum size_type_kind): New type.
10333 (struct sizetype_tab): Deleted.
10334 (sizetype_tab): Now array; adjust sizetype macros.
10335 (size_diffop, size_int_type_wide): New functions.
10336 (size_int_wide): Change number of args and type; access macros changed.
10337 (ssize_int, sbitsize_int): New macros.
10338 * config/i960/i960.h (ROUND_TYPE_SIZE): Use size_int.
10339 (ROUND_TYPE_SIZE_UNIT): New macro.
10340
10341 2000-02-27 Zack Weinberg <zack@wolery.cumb.org>
10342
10343 * c-lex.c (putback_buffer): Make 'buffer' an unsigned char *.
10344
10345 Sun Feb 27 07:44:17 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10346
10347 * gcov-io.h (__fetch_long, __store_long, __read_long, __write_long):
10348 Mark as possibly unused.
10349
10350 * cse.c (cse_insn): Delete dead code involving tablejump.
10351 Pass CODE_LABEL, not LABEL_REF to gen_jump and reset INSN_CODE.
10352
10353 * Makefile.in (libcpp.a): Start by deleting it.
10354
10355 2000-02-27 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
10356
10357 * cpplib.h (enum file_change_code): Added rename_file.
10358 * cpplib.c (do_line): If a filename is given, set file_change to
10359 rename_file.
10360 (output_line_command): If file_change is rename_file, always
10361 output a # directive with the file name.
10362
10363 * cpplib.c (do_pragma): Accept #pragma without consecutive token.
10364
10365 2000-02-26 Mark Mitchell <mark@codesourcery.com>
10366
10367 * integrate.c (copy_decl_for_inlining): Preserve TREE_ADDRESSABLE
10368 when copying a PARM_DECL or RESULT_DECL.
10369
10370 2000-02-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10371
10372 * fix-header.c (recognized_function): Also fix prototypes for
10373 functions taking "void".
10374
10375 2000-02-26 Geoff Keating <geoffk@cygnus.com>
10376
10377 * reload1.c (do_output_reload): Check reg_reloaded_valid before
10378 looking at reg_reloaded_contents.
10379
10380 2000-02-26 Zack Weinberg <zack@wolery.cumb.org>
10381
10382 * Makefile.in (STMP_FIXINC): New toggle.
10383 (LIBGCC2_DEPS): Delete all references.
10384 (stmp-headers): Delete target. All references either deleted
10385 or changed to stmp-int-headers.
10386 (all.cross): Don't depend on stmp-headers or STMP_FIXPROTO.
10387 (LIBCPP_OBJS): Take out cppalloc.o.
10388 (cppalloc.o): Delete target.
10389 (stmp-int-hdrs): Depend on $(STMP_FIXINC).
10390 (gen-protos, fix-header): Link with libiberty.a.
10391 * build-make: Don't change FIXINCLUDES. Override STMP_FIXINC
10392 to empty.
10393
10394 * configure.in: Remove refs to strerror.
10395 * acconfig.h: Take out NEED_DECLARATION_STRERROR.
10396 * system.h: Take out strerror stanza.
10397
10398 * cpperror.c (my_strerror): Delete function.
10399 (cpp_error_from_errno, cpp_notice_from_errno): Use xstrerror.
10400 * cppmain.c (main): Call xmalloc_set_program_name first thing.
10401 * cppalloc.c: Delete file.
10402 * gen-protos.c: Don't provide xrealloc.
10403
10404 * fixinc/fixincl.c, fixinc/fixlib.c, fixinc/procopen.c: Use
10405 xstrerror throughout.
10406
10407 2000-02-26 Bruce Korb <bkorb@gnu.org>
10408
10409 * fixinc/inclhack.def (undefine_null): the bypass pattern needs to
10410 match for DOS headers, too.
10411 * fixinc/inclhack.sh,fixincl.x: Regenerate.
10412
10413 2000-02-26 Geoff Keating <geoffk@cygnus.com>
10414
10415 * config/elfos.h (ASM_OUTPUT_LABELREF): Don't define. The default
10416 is right for most ELF targets.
10417 * config/ns32k/ns32k.h (ASM_OUTPUT_LABELREF): Don't define.
10418 Let the default file use %U properly.
10419 * config/sh/elf.h (ASM_OUTPUT_LABELREF): Don't define. Use the
10420 default.
10421
10422 * config/fp-bit.c (pack_d): Properly handle rounding of denormal
10423 numbers.
10424
10425 Sat Feb 26 09:39:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10426
10427 * toplev.c (documented_lang_options): Correct spelling error.
10428 (decode_d_option, decode_f_option, main): Likewise.
10429
10430 * toplev.c (print_time): Avoid SIGFPE when all_time is zero.
10431
10432 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): Use .set at
10433 to tell assembler it is permitted to expand large constants.
10434
10435 2000-02-25 Mumit Khan <khan@xraylith.wisc.edu>
10436
10437 * protoize.c: (AUX_INFO_SUFFIX): New macro.
10438 (aux_info_suffix): Use.
10439 (SAVE_SUFFIX): New macro.
10440 (save_suffix): Use.
10441 (munge_compile_parms): Fix typo in NUL. DJGPP supports /dev/null.
10442 (gen_aux_info_file): Use aux_info_suffix instead of ".X".
10443 (edit_file): Handle 8.3 restriction for DOS/DJGPP filenames.
10444
10445 * invoke.texi (Running Protoize): Update documentation.
10446
10447 2000-02-25 Mark Elbrecht <snowball3@bigfoot.com>
10448
10449 * i386/djgpp.h (CPP_PREDEFINES): Remove Unix defines.
10450
10451 2000-02-25 John Wehle (john@feith.com)
10452
10453 * rtlanal.c (find_last_value): Allow NULL_RTX for valid_to.
10454
10455 2000-02-25 Anthony Green <green@cygnus.com>
10456
10457 * toplev.c (rest_of_compilation): Rebuild jump labels if
10458 combine_instructions has created a new direct jump.
10459 * combine.c (try_combine): Add new_direct_jump_p argument. Set it
10460 when appropriate.
10461 (combine_instructions): Call try_combine with new argument.
10462 Return non-null value when new direct jump instruction is created.
10463 * rtl.h: combine_instructions returns an int.
10464
10465 Fri Feb 25 19:49:08 2000 Jeffrey A Law (law@cygnus.com)
10466
10467 * cse.c (cse_insn): Replace the PATTERN of the insn with an new
10468 jump when changing a computed jump into a jump to a known
10469 target.
10470
10471 Fri Feb 25 19:22:44 2000 Graham Stott <grahams@rcp.co.uk>
10472
10473 * resource.c (mark_referenced_resources): Changed use SET_DEST (...)
10474 to XEXP (..., 0) on RTL nodes which are not SET or CLOBBER.
10475
10476 * i386.md (define_expand "clrstrsi"): Fix typo.
10477
10478 Fri Feb 25 18:49:39 2000 "K. Richard Pixley" <rich@microunity.com>
10479
10480 * rtl.texi: Fix typo.
10481
10482 Fri Feb 25 20:02:35 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
10483
10484 * sh.c (calc_live_regs): Multiply value assigned to *COUNT_PTR by
10485 UNITS_PER_WORD. Change caller initial_elimination_offset.
10486 (rounded_frame_size): Take into account that argument pushed has
10487 changed. Fix TARGET_ALIGN_DOUBLE problem.
10488
10489 2000-02-25 Geoff Keating <geoffk@cygnus.com>
10490
10491 * haifa-sched.c (schedule_block): Explain the real reason
10492 we delete REG_SAVE_NOTEs on the first insn of a block.
10493 Don't delete REG_SAVE_NOTES for NOTE_INSN_SETJMP.
10494
10495 2000-02-24 Mark Mitchell <mark@codesourcery.com>
10496
10497 * input.h (push_srcloc): New function.
10498 (pop_srcloc): Likewise.
10499 * toplev.c (push_srcloc): Define it.
10500 (pop_srcloc): Likewise.
10501
10502 2000-02-24 Richard Henderson <rth@cygnus.com>
10503
10504 * flow.c (life_analysis): When collecting reg info, clear
10505 regs_ever_live.
10506
10507 Thu Feb 24 22:06:52 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
10508
10509 Fix bug exposed by reload.c no longer rounding the frame
10510 size to BIGGEST_ALIGNMENT:
10511 * sh.c (rounded_frame_size): New function.
10512 (sh_expand_prologue, sh_expand_epilogue): Use it.
10513 (initial_elimination_offset): Likewise.
10514
10515 Thu Feb 24 20:04:11 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
10516
10517 Fix breakage from 6th Feb thread_prologue_and_epilogue_insns change:
10518 * sh-protos.h (sh_need_epilogue): Declare.
10519 * sh.c (sh_need_epilogue_known): New static variable.
10520 (sh_need_epilogue): New function.
10521 (function_epilogue): Clear need_epilogue_known.
10522 * sh.md (return): Split into expander / insn pattern.
10523 Make the expander conditional on ! sh_need_epilogue ().
10524
10525 2000-02-24 Nathan Sidwell <nathan@codesourcery.com>
10526
10527 * machmode.h (get_mode_alignment): Declare.
10528 (GET_MODE_ALIGNMENT): Call it.
10529 * stor-layout.c (get_mode_alignment): New function. Make
10530 sure alignment is always power of 2.
10531
10532 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
10533
10534 * i386.h: Remove useless definition of "I386" and misleading
10535 comment above it.
10536
10537 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
10538
10539 * tree.h (TREE_SET_PERMANENT): New macro. Document conditions
10540 under which TREE_PERMANENT will be set.
10541 * tree.c (make_node, copy_node, make_tree_vec, tree_cons,
10542 build1): Use TREE_SET_PERMANENT.
10543 * print-tree.c (print_node): Don't report value of
10544 TREE_PERMANENT if ggc_p is true.
10545
10546 * c-common.c (c_get_alias_set): Don't use TREE_PERMANENT to
10547 decide whether to give a type a new alias set.
10548 * objc/objc-act.c (build_objc_string_object): Never copy the string.
10549 * tree.c (make_node): Set DECL_IN_SYSTEM_HEADER irrespective
10550 of value of 'obstack'.
10551
10552
10553 2000-02-24 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10554
10555 * config/c4x/c4x.c (c4x_process_after_reload): Split all insns.
10556
10557 2000-02-23 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
10558
10559 * cpplib.h (enum cpp_token): Added CPP_WCHAR and CPP_WSTRING.
10560 * cpplib.c (cpp_get_token): Produce them.
10561 * cppexp.c (cpp_lex): Handle them.
10562
10563 2000-02-23 Nick Clifton <nickc@cygnus.com>
10564
10565 * config/arm/arm.c (arm_comp_type_attributes): Simply and
10566 comment tests on type attributes.
10567
10568 Wed Feb 23 16:42:21 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
10569
10570 * final.c (shorten_branches): Make value passed to LOOP_ALIGN
10571 conform to documentation.
10572 * sh.h (LOOP_ALIGN): If aligning loops, call sh_loop_align
10573 to check for special cases.
10574 * sh-protos.h (sh_loop_align): Declare.
10575 * sh.c (sh_loop_align): Define.
10576
10577 2000-02-22 Andrew Haley <aph@cygnus.com>
10578
10579 * config/mips/mips.h (GAS_ASM_SPEC): Pass -mgp32/-mgp64 to gas.
10580 (SIZE_TYPE): Is 32 bits when using -mgp32.
10581 (PTRDIFF_TYPE): Ditto.
10582
10583 Wed Feb 23 07:26:27 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10584
10585 * diagnostic.c (init_output_buffer): Handle case of null PREFIX.
10586
10587 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
10588
10589 * config/i386/i386.h: If IN_TARGET_LIBS is defined, make
10590 BIGGEST_FIELD_ALIGNMENT a constant.
10591
10592 2000-02-21 Jason Merrill <jason@casey.cygnus.com>
10593
10594 * dwarf2out.c (output_line_info): Put the marker for the end of
10595 the line number info at the actual end.
10596 (gen_struct_or_union_type_die): Use decl_function_context
10597 to check for local classes.
10598 * dwarfout.c (output_type): Likewise.
10599
10600 Tue Feb 22 01:38:57 2000 Jeffrey A Law (law@cygnus.com)
10601
10602 * pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Handle pass-by-reference
10603 for arguments with a mode, but no type.
10604 (FUNCTION_ARG_CALLEE_COPIES): Similarly.
10605 * t-pa (LIB2FUNCS_EXTRA): Add quadlib.asm.
10606 * pa/long_double.h: New file.
10607 * configure.in (hpux10, hpux11 configurations): hpux10 and hpux11
10608 both have 128bit wide long doubles.
10609 * configure: Rebuilt.
10610
10611 2000-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10612
10613 * defaults.h (ASM_OUTPUT_ASCII): Constify a char*.
10614
10615 * flow.c (get_common_dest, chain_reorder_blocks, make_reorder_chain,
10616 fixup_reorder_chain, skip_insns_between_block): Add static prototypes.
10617 (life_analysis): Wrap variable `i' with macro ELIMINABLE_REGS.
10618
10619 * haifa-sched.c (rank_for_schedule): Don't cast away const-ness.
10620
10621 * integrate.c (compare_blocks, find_block): Likewise.
10622
10623 * rtl.c (fatal_with_file_and_line): Add ATTRIBUTE_PRINTF_2.
10624
10625 * rtl.h (set_file_and_line_for_stmt): Constify a char*.
10626
10627 * stmt.c (stmt_status, set_file_and_line_for_stmt,
10628 expand_asm_operands): Likewise.
10629
10630 Mon Feb 21 17:06:27 2000 Jason Eckhardt <jle@cygnus.com>
10631
10632 * predict.c (estimate_probability): Added the pointer heuristic to
10633 the collection of static branch predictors.
10634
10635 2000-02-21 Catherine Moore <clm@cygnus.com>
10636
10637 * config/mips/mips.h (ASM_SPEC): Add -mfix700.
10638 * invoke.texi (-mfix7000): Document.
10639
10640 2000-02-21 Gabriel Dos Reis <gdr@codesourcery.com>
10641
10642 * diagnostic.c (init_output_buffer): Make it possible to output at
10643 least 32 characters if we're given a too long prefix.
10644
10645 2000-02-20 Mark Mitchell <mark@codesourcery.com>
10646
10647 * varasm.c (initializer_constant_valid_p): Call
10648 lang_expand_constant to simplify the constant.
10649
10650 2000-02-20 Bruce Korb <bkorb@gnu.org>
10651
10652 * fixinc/inclhack.def(stdio_va_list):
10653 typedef needs to be disabled.
10654 * fixinc/inclhack.sh: regen
10655 * fixinc/fixincl.x: regen
10656
10657 2000-02-20 Geoff Keating <geoffk@cygnus.com>
10658
10659 * print-rtl.c (print_rtx): Don't print addresses when
10660 flag_dump_unnumbered.
10661
10662 2000-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10663
10664 * sparc.c (sparc_output_scratch_registers): Mark parameter with
10665 ATTRIBUTE_UNUSED.
10666 (sparc_va_arg, sparc_flat_output_function_prologue,
10667 sparc_flat_output_function_epilogue): Cast value to unsigned in
10668 comparison.
10669 (sparc_emit_float_lib_cmp): Remove unused variable `cmp'.
10670
10671 * sparc.md: Add default case in switch.
10672
10673 2000-02-19 Richard Henderson <rth@cygnus.com>
10674
10675 * c-typeck.c (add_pending_init): Don't abort for multiple
10676 fields at the same offset.
10677 (pending_init_member): Test the correct member.
10678
10679 2000-02-19 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10680
10681 * except.c (start_dynamic_handler) : Use TYPE_MODE (integer_type_node)
10682 instead of SImode.
10683 (start_catch_handler) : Same.
10684
10685 2000-02-19 Brad Lucier (lucier@math.purdue.edu)
10686
10687 * Makefile.in: Have flow.o depend on $(EXPR_H)
10688
10689 Sat Feb 19 18:43:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10690
10691 * c-common.c (decl_attributes): Set DECL_SIZE_UNIT.
10692 * c-decl.c (duplicate_decls, finish_enum): Likewise.
10693 (finish_decl): Remove -Wlarger-than code from here.
10694 * flags.h (id_clash_len): Now int.
10695 (larger_than_size): Now HOST_WIDE_INT.
10696 * fold-const.c (size_int_wide): No more HIGH parm; NUMBER is signed.
10697 Clean up checking to see if in table.
10698 (make_bit_field_ref): Remove extra parm to bitsize_int.
10699 * ggc-common.c (ggc_mark_tree_children): Mark DECL_SIZE_UNIT.
10700 * print-tree.c (print_node): Print DECL_SIZE_UNIT and TYPE_SIZE_UNIT.
10701 * stmt.c (expand_decl): Use DECL_SIZE_UNIT for stack checking size
10702 and for computing size of decl.
10703 * stor-layout.c (layout_decl): Set DECL_SIZE_UNIT.
10704 Move -Wlarger-than code to here.
10705 (layout_record): Remove extra arg to bitsize_int.
10706 Set TYPE_BINFO_SIZE_UNIT.
10707 (layout_union): Remove extra arg to bitsize_int.
10708 Use proper type for size of QUAL_UNION.
10709 (layout_type): Remove extra arg to bitsize_int.
10710 * toplev.c (id_clash_len): Now int.
10711 (larger_than_size): Now HOST_WIDE_INT.
10712 (decode_W_option): Clean up id-clash and larger-than- cases.
10713 * tree.c (get_identifier, maybe_get_identifier): Remove unneeded casts.
10714 (expr_align, case FUNCTION_DECL): DECL_ALIGN is not defined.
10715 * tree.h (BINFO_SIZE_UNIT, TYPE_BINFO_SIZE_UNIT, DECL_SIZE_UNIT): New.
10716 (struct tree_decl): New field size_unit.
10717 (size_int_wide): No HIGH operand; NUMBER is now signed.
10718 (size_int_2): Deleted.
10719 (size_int, bitsize_int): Don't use it and rework args.
10720 * varasm.c (assemble_variable, output_constructor): Use DECL_SIZE_UNIT.
10721
10722 Fri Feb 18 20:01:58 2000 Jeffrey A Law (law@cygnus.com)
10723
10724 * pa/quadlib.asm (_U_QFgt, _U_Qfge): Fix flags for _U_Qfcmp call.
10725
10726 2000-02-18 Geoff Keating <geoffk@cygnus.com>
10727
10728 * invoke.texi (Warning Options): Add an explanation of why
10729 you might want the -Wfloat-equal flag.
10730
10731 Fri Feb 18 20:08:57 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10732
10733 * bitmap.c (bitmap_operation): Avoid using -1 for index since unsigned.
10734 * cppinit.c (new_pending_define): Add cast to avoid warning.
10735 * expmed.c (extract_bit_field): Likewise.
10736 * flow.c (enum reorder_skip_type): New type.
10737 (skip_insns_between_blcok): New it.
10738 Rework to avoid warning about possibly undefined variable.
10739 * function.c (assign_parms): Make thisparm_boundary unsigned.
10740 * genrecog.c (write_switch): Cast XWINT result to int.
10741 * lcm.c: Many static fcns and vars now #ifdef OPTIMIZE_MODE_SWITCHING.
10742 * mips-tfile.c (init_file): Make two versions of FDR intializer:
10743 one for MIPS and one for Alpha.
10744 (get_tag, copy_object): Add casts to avoid warnings.
10745 * optabs.c (init_one_libfunc): Cast NAME to (char *).
10746 * reload.c (find_reloads): Make TYPE enum reload_type.
10747 * sbitmap.c (dump_sbitmap): J is unsigned; don't use "1L".
10748 * unroll.c (unroll_loop): Initialize UNROLL_NUMBER.
10749 * varasm.c (compare_constant_1): Add cast to avoid warning.
10750 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Cast FUNC
10751 to (char *).
10752 (alpha_expand_unaligned_load, alpha_expand_unaligned_store):
10753 Cast switch operand of size to int.
10754 (alpha_expand_epilogue): Always initialize fp_offset and sa_reg.
10755 * config/alpha/alpha.h (INITIAL_ELIMINATION_OFFSET): Add abort
10756 in unhandled case.
10757
10758 2000-02-18 Nick Clifton <nickc@cygnus.com>
10759
10760 * config/arm/elf.h (ASM_OUTPUT_ALIGN): Do not generate
10761 anything for an alignment of zero.
10762
10763 * config/arm/thumb.h (ASM_OUTPUT_ALIGN): Do not generate
10764 anything for an alignment of zero.
10765
10766 2000-02-18 Martin von Loewis <loewis@informatik.hu-berlin.de>
10767
10768 * gcc.texi (Bug Reporting): Refer to bugs.html.
10769 (Bug Lists): Likewise.
10770 * system.h (GCCBUGURL): New preprocessor define.
10771 * rtl.c (fancy_abort): Use it.
10772 * gcc.c (main): Likewise.
10773
10774 2000-02-18 Richard Henderson <rth@cygnus.com>
10775
10776 * flow.c (INSN_VOLATILE, SET_INSN_VOLATILE, uid_volatile): Remove.
10777 (life_analysis_1): Subsume into ...
10778 (life_analysis): ... here. Force PROP_REG_INFO off after reload.
10779 Use update_life_info for the relaxation.
10780 (update_life_info): Update REG_BASIC_BLOCK for registers live on
10781 entry and regs_live_at_setjmp.
10782 (set_noop_p): Simplify.
10783 (notice_stack_pointer_modification_1): Renamed from s/_1//.
10784 (record_volatile_insns): Split into ...
10785 (delete_noop_moves): ... here,
10786 (notice_stack_pointer_modification): ... here,
10787 (insn_dead_p): ... and here.
10788 (propagate_block): Don't query INSN_VOLATILE.
10789 (mark_used_regs): Mind !PROP_REG_INFO.
10790 * toplev.c (rest_of_compilation): Call mark_constant_function here,
10791 not in life_analysis.
10792
10793 Fri Feb 18 01:29:22 EST 2000 John Wehle (john@feith.com)
10794
10795 * loop.c (canonicalize_condition): New function,
10796 broken out of get_condition.
10797 (get_condition): Use it.
10798 * expr.h (canonicalize_condition): Prototype it.
10799
10800 * tree.h (tree_int_cst_msb): Declare.
10801 * tree.c (tree_int_cst_msb): New function.
10802
10803 2000-02-17 Mark Mitchell <mark@codesourcery.com>
10804
10805 * stmt.c (set_file_and_line_for_stmt): Don't crash if cfun->stmt
10806 isn't set.
10807
10808 * invoke.texi (-fmessage-length=n): Document.
10809
10810 2000-02-17 Jason Merrill <jason@casey.cygnus.com>
10811
10812 * bitmap.c (bitmap_operation): Don't leak bitmap elements.
10813
10814 2000-02-17 Mark Mitchell <mark@codesourcery.com>
10815
10816 * function.c (thread_prologue_and_epilogue_insns): Put a line note
10817 after the prologue.
10818
10819 2000-02-17 Nick Clifton <nickc@cygnus.com>
10820
10821 * config/arm/thumb.c: Replace includes of system headers with
10822 #include "system.h".
10823
10824 2000-02-16 Richard Henderson <rth@cygnus.com>
10825
10826 * configure.in (alpha-linux*, alpha-netbsd) [extra_parts]:
10827 Add crtbeginS.o and crtendS.o.
10828 * alpha/elf.h (STARTFILE_SPEC): Use crtbeginS.o.
10829 (ENDFILE_SPEC): Use crtendS.o.
10830 * alpha/t-crtbe (crtbeginS.o, crtendS.o): New targets.
10831
10832 * alpha/crtbegin.asm (__do_frame_takedown): Merge into ...
10833 (__do_global_dtors_aux): ... here. Call __cxa_finalize if
10834 shared and present.
10835 (__dso_handle): New variable.
10836 * alpha/crtend.asm (__do_global_ctors_aux): Remove runtime
10837 bias to __CTOR_END__.
10838
10839 2000-02-16 Richard Henderson <rth@cygnus.com>
10840
10841 * Makefile.in (s-crtS, crtbeginS, crtendS): Prefix usage with $(T).
10842
10843 Wed Feb 16 21:40:04 2000 Hans-Peter Nilsson <hp@bitrange.com>
10844
10845 * longlong.h (__clz_tab): Declare as static to match definition.
10846
10847 2000-02-16 Mark Elbrecht <snowball3@bigfoot.com>
10848
10849 * i386/xm-djgpp.h (LIBSTDCXX): Delete. Moved to config/i386/djgpp.h.
10850 (XREF_FILE_NAME): Define.
10851
10852 * i386/djgpp.h (DATA_SECTION_ASM_OP): Define.
10853 (EH_FRAME_SECTION_ASM_OP): Define.
10854 (IDENT_ASM_OP): Define.
10855 (TEXT_SECTION_ASM_OP): Define.
10856 (CPP_SPEC): Define.
10857 (CTORS_SECTION_ASM_OP): Define.
10858 (CTOR_SECTION_FUNCTION): Use it.
10859 (DTORS_SECTION_ASM_OP): Define.
10860 (DTOR_SECTION_FUNCTION): Use it.
10861
10862 2000-02-16 Zack Weinberg <zack@wolery.cumb.org>
10863
10864 * reg-stack.c (emit_swap_insn): Do not put a new insn before a
10865 NOTE_BASIC_BLOCK.
10866
10867 * flow.c (dump_regset, debug_regset, dump_bb, debug_bb,
10868 debug_bb_n): New functions.
10869 (dump_flow_info, print_rtl_with_bb): Use dump_regset.
10870 * basic-block.h: Prototype new functions.
10871
10872 Wed Feb 16 21:07:53 2000 Denis Chertykov <denisc@overta.ru>
10873
10874 * configure.in: Add support for avr target.
10875 * configure: Rebuilt.
10876
10877 * invoke.texi: Add AVR invocation docs.
10878 * install.texi: Add information about AVR.
10879 * md.texi: Add AVR constraint letters description.
10880 * extend.texi: Add description for AVR specific attributes.
10881
10882 2000-02-16 Jason Merrill <jason@casey.cygnus.com>
10883
10884 * fixinc/fixinc.svr4: Wrap byteorder.h with extern "C".
10885
10886 2000-02-16 Nick Clifton <nickc@cygnus.com>
10887
10888 * emit-rtl.c (emit_insn): Move RTL check into make_insn_raw.
10889 (make_insn_raw): Move RTL check here.
10890
10891 2000-02-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10892
10893 * version.c: Include gansidecl.h and version.h.
10894
10895 * version.h: Wrap entire file in macro __GCC_VERSION_H__.
10896
10897 * configure.in (gcc_version): When setting, narrow search to
10898 lines containing `version_string'.
10899
10900 * Makefile.in (mainversion): Likewise.
10901 (GCC_H): New variable.
10902 (gcc.h): Delete target.
10903 (gcc.o, gccspec.o, cppspec.o): Depend on $(GCC_H), not gcc.h.
10904 (version.o): Depend on version.h.
10905 (dbxout.o): Don't depend on gcc.h.
10906
10907 Wed Feb 16 15:04:49 2000 Hans-Peter Nilsson <hp@bitrange.com>
10908 Michael Meissner <meissner@cygnus.com>
10909
10910 * md.texi (Simple Constraints): Add item about whitespace.
10911 * genoutput.c (strip_whitespace): New.
10912 (scan_operands) [MATCH_OPERAND, MATCH_SCRATCH]: Call
10913 strip_whitespace for constraints.
10914 Test pointer using NULL, not 0.
10915
10916 2000-02-16 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
10917
10918 * cpplib.c (do_line): Pedwarn for #line > 32767.
10919
10920 * c-lex.c (readescape): Warn about '\x', but do not reject it.
10921
10922 2000-02-15 Jonathan Larmour <jlarmour@redhat.co.uk>
10923
10924 * gcc.c (default_compilers): Add new __GNUC_PATCHLEVEL__ define
10925 to default cpp spec.
10926 (do_spec_1): Add support for %v3 spec used by __GNUC_PATCHLEVEL__.
10927 * cpp.texi: Document __GNUC_PATCHLEVEL__.
10928 * cpp.1: Likewise.
10929
10930 * objc/lang-specs.h: Add new __GNUC_PATCHLEVEL__ define to
10931 default spec.
10932
10933 2000-02-15 Denis Chertykov <denisc@overta.ru>
10934
10935 * configure.in: Add support for avr target.
10936
10937 Wed Feb 16 03:21:43 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
10938
10939 * sh.h (OVERRIDE_OPTIONS): Don't set sh_addr_diff_vec_mode.
10940 (sh_addr_diff_vec_mode): Don't declare.
10941 * sh.c (sh_addr_diff_vec_mode): Delete.
10942
10943 Wed Feb 16 01:27:52 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
10944
10945 * sh.md (mulsi3_highpart): Add REG_EQUAL note to last insn.
10946
10947 Wed Feb 16 00:58:06 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
10948
10949 * sh.md (udivsi3_i1, divsi3_i1, umulhisi3_i, mulhisi3_i): Name.
10950 (smulsi3_highpart_i): Name.
10951 (udivsi3): Wrap emitted insns in REG_LIBCALL / REG_RETVAL notes.
10952 (divsi3, mulhisi3, umulhisi3, mulsidi3, umulsidi3): Likewise.
10953 (smulsi3_highpart, umulsi3_highpart): Likewise.
10954
10955 (mulsidi3_i, umulsidi3_i): Make rtl describe operation
10956 correctly independent of endianness.
10957 (mulsidi3, umulsidi3): Now define_insn. Hide details that
10958 confuse the optimizers.
10959 (mulsidi3+1, umulsidi3+1): New define_split.
10960
10961 Tue Feb 15 23:22:26 2000 Andrew Haley <aph@cygnus.com>
10962
10963 * config/sh/sh.md: Guard insn splits against illegal registers.
10964 * config/sh/sh.h: Correct comment about macros.
10965
10966 Tue Feb 15 22:30:36 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
10967 Andrew MacLeod <amacleod@cygnus.com>
10968
10969 * Makefile.in (lcm.o): Depend on insn-attr.h.
10970 * basic-block.h (optimize_mode_switching): Declare.
10971 * lcm.c (tm_p.h, insn-attr.h): #include.
10972 (seginfo, bb_info): New structs.
10973 (antic, transp, comp, delete, insert) : New file-scope static variables.
10974 (new_seginfo, add_seginfo, make_preds_opaque, reg_dies): New functions.
10975 (reg_becomes_live, optimize_mode_switching): Likewise.
10976 * tm.texi: Add description of mode switching macros.
10977 * toplev.c (rest_of_compilation): Call optimize_mode_switching.
10978
10979 * sh-protos.h (remove_dead_before_cse): Remove prototype.
10980 (fldi_ok, fpscr_set_from_mem): New prototypes.
10981 * sh.h (OPTIMIZATION_OPTION): Remove sh_flag_remove_dead_before_cse set.
10982 (CONST_DOUBLE_OK_FOR_LETTER_P, SECONDARY_INPUT_RELOAD_CLASS):
10983 Disable fldi for (TARGET_SH4 && ! TARGET_FMOVD).
10984 (sh_flag_remove_dead_before_cse): Remove declaration.
10985 (NUM_MODES_FOR_MODE_SWITCHING, OPTIMIZE_MODE_SWITCHING): New macros.
10986 (MODE_USES_IN_EXIT_BLOCK, MODE_NEEDED, MODE_AT_ENTRY): Likewise.
10987 (MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
10988 * sh.c (broken_move): Disable fldi for (TARGET_SH4 && ! TARGET_FMOVD).
10989 (barrier_align): Allow for JUMP_INSNS containing a parallel.
10990 (machine_dependent_reorg): Remove sh_flag_remove_dead_before_cse set.
10991 (fldi_ok): New function.
10992 (get_fpscr_rtx): Add fpscr_rtx as GC root.
10993 (emit_sf_insn): Only generate fpu switches when optimize < 1.
10994 (emit_df_insn): Likewise.
10995 (expand_fp_branch, emit_fpscr_use, remove_dead_before_cse): Delete.
10996 (sh_flag_remove_dead_before_cse): Delete.
10997 (get_free_reg, fpscr_set_from_mem): New functions.
10998 * sh.md (movdf, movsf): Remove no_new_pseudos code.
10999 (return): Remove emit_fpscr_use / remove_dead_before_cse calls.
11000
11001 2000-02-15 Loren Rittle <ljrittle@acm.org>
11002
11003 * ginclude/stddef.h: Correct usage of _BSD_RUNE_T_ for FreeBSD.
11004
11005 2000-02-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11006
11007 * Makefile.in (TREE_H, collect2.o, gcc.h, mips-tfile.o, cccp.o,
11008 cpphash.o, cppinit.o, protoize.o, unprotoize.o): Depend on version.h.
11009
11010 * cccp.c: Include version.h and/or don't declare `version_string'.
11011 * collect2.c: Likewise.
11012 * alpha.c: Likewise.
11013 * arm/aof.h: Likewise.
11014 * arm/coff.h: Likewise.
11015 * arm/elf.h: Likewise.
11016 * arm/pe.h: Likewise.
11017 * arm/tcoff.h: Likewise.
11018 * arm/telf.h: Likewise.
11019 * arm/tpe.h: Likewise.
11020 * arm/vxarm.h: Likewise.
11021 * convex/convex.c: Likewise.
11022 * i386/dgux.c: Likewise.
11023 * i386/sun386.h: Likewise.
11024 * m88k/m88k.c: Likewise.
11025 * mcore/mcore-pe.h: Likewise.
11026 * mips/mips.h: Likewise.
11027 * romp/romp.h: Likewise.
11028 * sh/sh.c: Likewise.
11029 * cpphash.c: Likewise.
11030 * cppinit.c: Likewise.
11031 * dwarf2out.c: Likewise.
11032 * dwarfout.c: Likewise.
11033 * gcc.c: Likewise.
11034 * gcc.h: Likewise.
11035 * mips-tfile.c: Likewise.
11036 * protoize.c: Likewise.
11037 * toplev.c: Likewise.
11038 * tree.h: Likewise.
11039
11040 * version.c (version_string): Constify a char*.
11041
11042 * version.h: New file.
11043
11044 2000-02-14 Nick Clifton <nickc@cygnus.com>
11045
11046 * configure.in: Add mcore-elf and mcore-pe targets.
11047 * configure: Regenerate.
11048
11049 * NEWS: Add note that MCore port has been contributed.
11050
11051 * invoke.texi: Document command line switches for MCore port.
11052 * install.texi: Add MCore to list of supported targets.
11053
11054 2000-02-14 Geoff Keating <geoffk@cygnus.com>
11055
11056 * collect2.c (main) [COLLECT_EXPORT_LIST]: If we have frames,
11057 then we will need to import the frame handling functions.
11058 (scan_prog_file) [COLLECT_EXPORT_LIST]: We will also need
11059 to import the frames themselves.
11060
11061 Mon Feb 14 13:31:01 2000 Stan Cox <scox@cygnus.com>
11062 Jason Eckhardt <jle@cygnus.com>
11063
11064 * basic_block.h: Added prototype for reorder_basic_blocks.
11065 * toplev.c: Changes to add -freorder-blocks and graph dump after
11066 block reordering is done.
11067 * flow.c (reorder_block_def): New structure for use during block
11068 reordering.
11069 (REORDER_BLOCK_*): New macros to access members of above structure.
11070 (skip_insns_between_block, get_common_dest, chain_reorder_blocks,
11071 make_reorder_chain, fixup_reorder_chain, reorder_basic_blocks): New
11072 functions for block reordering.
11073
11074 Mon Feb 14 11:24:44 2000 Hans-Peter Nilsson <hp@bitrange.com>
11075
11076 * gcc.texi (Passes): Fix typo.
11077 * md.texi (Standard Names): Ditto.
11078 * tm.texi (Storage Layout): Ditto.
11079
11080 2000-02-13 Zack Weinberg <zack@wolery.cumb.org>
11081
11082 * cpplib.c (do_define): Only free the old definition if it
11083 actually had one.
11084
11085 2000-02-13 Neil Booth <NeilB@earthling.net>
11086
11087 * cppfiles.c (read_and_prescan): When emitting deferred
11088 newlines, test speccase[] again instead of checking each
11089 possible whitespace character in turn. When we encounter \r,
11090 look behind for \n first, then ahead.
11091
11092 2000-02-13 Zack Weinberg <zack@wolery.cumb.org>
11093
11094 * cse.c (cse_altered): New internal flag.
11095 (cse_insn): Set it if we changed an insn.
11096 (cse_main): Clear cse_altered before each basic block.
11097 Only garbage collect if cse_altered is true afterward.
11098
11099 Sun Feb 13 14:12:28 2000 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11100
11101 * sparc/sol2.h (LIB_SPEC): Link -ldl if profiling.
11102
11103 Sun Feb 13 13:21:55 2000 Jeffrey A Law (law@cygnus.com)
11104
11105 * combine.c (simplify_comparison): Fix typo.
11106
11107 Sun Feb 13 12:57:52 2000 Neil Booth <NeilB@earthling.net>
11108
11109 * prefix.c (concat, lookup_key): Use xmalloc and xrealloc
11110 consistently.
11111
11112 2000-02-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11113
11114 * flow.c (flow_loop_tree_node_add): Use better algorithm by passing
11115 previously inserted node instead of root node. Caller changed.
11116
11117 2000-02-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11118
11119 * basic-block.h (FLOW_LOOP_FIRST_BLOCK, FLOW_LOOP_LAST_BLOCK): Delete.
11120
11121 2000-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11122
11123 * crtstuff.c (__do_global_ctors_aux, __reg_frame_ctor,
11124 __dereg_frame_dtor): Add prototype argument.
11125
11126 * gthr-dce.h (__gthread_active_p, __gthread_once): Likewise.
11127
11128 * gthr-posix.h (__gthread_active_p, __gthread_once): Likewise.
11129
11130 * gthr-solaris.h (__gthread_active_p, __gthread_once): Likewise.
11131
11132 * gthr-vxworks.h (__gthread_once): Likewise.
11133
11134 * gthr-win32.h (__gthread_active_p, __gthread_once): Likewise.
11135
11136 Sat Feb 12 01:44:26 MET 2000 Jan Hubicka <jh@suse.cz>
11137
11138 * i386.c (ix86_emit_restore_regs_using_mov): Break out from ...
11139 (ix86_expand_epilogue): ... here. Use mov instead of add to restore
11140 stack pointer in functions w/o saved registers, output LEAVE more often
11141 on TARGET_USE_LEAVE machines.
11142
11143 2000-02-07 Dmitri Makarov <dim@wrs.com> & Bernd Schmidt <bernds@redhat.com>
11144
11145 * config/arm/arm.c (arm_init_cumulative_args); New function:
11146 Initlaise the CUMULATIE_ARGS strcuture for a function
11147 defintion.
11148 (arm_function_arg): New function: Determine where to place a
11149 function's argument. Also handles deciding the function's
11150 call cookie.
11151 (current_file_function_operand): New function: Return true if
11152 the symbol is a function which has already been compiled.
11153 (arm_is_long_call_p): New function: Return true if the
11154 indicated function should be called via a long call.
11155 (arm_valid_type_attribute_p): New function: Return true if the
11156 attribute is a valid, arm specific, attribute.
11157 (arm_comp_type_attribute): New function: Return true if the
11158 two types have compatable, arm specific, attributes.
11159
11160 * config/arm/arm.h (CUMULATIVE_ARGS): Redefine to be a
11161 structure.
11162 (FUNCTION_ARG): Redefine to call arm_function_arg.
11163 (FUNCTION_ARG_PARTIAL_NREGS): Redefine to use correct
11164 structure field.
11165 (INIT_CUMULATIVE_ARGS): Redefine to call
11166 arm_init_cumulative_args.
11167 (FUNCTION_ARG_ADVANCE): Redefine to use correct structure
11168 field.
11169 (SETUP_INCOMING_VARARGS): Redefine to use correct structure
11170 field.
11171 (ARM_MARK_NEARBY_FUNCTION): New macro: Mark already compiled
11172 functions.
11173 (ENCODE_SECTION): Add call to ARM_MARK_NEARBY_FUNCTION.
11174 (VALID_MACHINE_TYPE_ATTRIBUTE): Define.
11175 (COMP_TYPE_ATTRIBUTES): Define.
11176
11177 * config/arm/arm.md (call): Call arm_is_long_call_p to decide
11178 if a long call is needed.
11179 (call_value): Call arm_is_long_call_p to decide if a long call
11180 is needed.
11181 (call_symbol): Call arm_is_long_call_p to decide if a long call
11182 is needed.
11183
11184 * config/arm/arm-protos.h: Add prototype for arm_is_long_call_p.
11185
11186 2000-02-11 Denis Chertykov <denisc@overta.ru>
11187
11188 * README.AVR: New file with information about the avr ports.
11189 * config/avr: New directory with avr port files.
11190
11191 2000-02-11 Andreas Jaeger <aj@suse.de>
11192
11193 * fixinc/Makefile.in (FIXINC_DEFS): Remove unneeded @fixinc_defs@.
11194
11195 2000-02-11 Zack Weinberg <zack@wolery.cumb.org>
11196
11197 * cpphash.c: Fix formatting, update commentary.
11198 (dump_definition): Take three separate arguments instead of a
11199 MACRODEF structure argument.
11200 * cpphash.h: Update prototype of dump_definition.
11201 * cppinit.c (cpp_finish): Update call of dump_definition.
11202
11203 * cpplib.c (do_define): Always create new hash entry with
11204 T_MACRO type. Remove redundant check for redefinition of
11205 poisoned identifier. Update call of dump_definition.
11206 (do_undef): Don't call check_macro_name. Rename sym_length to
11207 len.
11208 (do_error, do_warning): Don't use copy_rest_of_line or
11209 SKIP_WHITE_SPACE.
11210 (do_warning): Don't use pedwarn for the actual warning,
11211 only the notice about its not being in the standard. (Fixes
11212 bug with #warning in system headers.)
11213 (do_ident): Stricter argument checking - accept only a single
11214 string after #ident. Also, macro-expand the line.
11215 (do_xifdef): Use cpp_defined. De-obfuscate.
11216
11217 (do_pragma): Split out specific pragma handling to separate
11218 functions. Use get_directive_token. Update commentary. Do
11219 not pass on #pragma once or #pragma poison to the front end.
11220 (do_pragma_once, do_pragma_implementation, do_pragma_poison,
11221 do_pragma_default): New.
11222
11223 Feb 11 12:30:53 2000 Jeffrey A Law (law@cygnus.com)
11224
11225 * jump.c (jump_optimize_1): The first operand in a relational
11226 can be a CONST_INT.
11227 * optabs.c (emit_conditional_move): Handle relationals which
11228 have a known true/false result.
11229
11230 2000-02-11 Geoff Keating <geoffk@cygnus.com>
11231
11232 * function.c (thread_prologue_and_epilogue_insns): Don't insert
11233 a RETURN insn into a block which already ends with a jump.
11234
11235 2000-02-11 Geoff Keating <geoffk@cygnus.com>
11236
11237 * haifa-sched.c (BUF_LEN): Increase a lot.
11238
11239 2000-02-11 Nick Clifton <nickc@cygnus.com>
11240
11241 * configure.in: Add tm_p_file specification for thumb targets.
11242 * configure: Regenerate.
11243
11244 * config/arm/thumb-protos.h: New file: Prototypes for exported
11245 functions defined in thumb.c.
11246
11247 2000-02-11 Robert Lipe <robertl@sco.com>
11248
11249 * Makefile.in (bootstrap-lean): Remove additional files.
11250 (bootstrap2-lean): Likewise.
11251 (VOL_FILES): List of files for above.
11252
11253 2000-02-11 Nathan Sidwell <nathan@acm.org>
11254
11255 * cpphash.c (special_symbol): Remove spurious argument to
11256 cpp_lookup.
11257
11258 2000-02-11 Joel Sherrill (joel@OARcorp.com>
11259
11260 * configure.in: (i*86-*-rtems*): Swapped elf and coff
11261 stanzas.
11262 * configure: Rebuilt.
11263
11264 2000-02-11 Rodney Brown <RodneyBrown@pmsc.com>
11265
11266 * pa-protos.h: Wrap function_arg_padding in TREE_CODE #ifdef.
11267
11268 Fri Feb 11 02:59:05 2000 Jeffrey A Law (law@cygnus.com)
11269
11270 * pa.c, pa.h: Remove trigraph sequences within comments.
11271
11272 Fri Feb 11 02:51:56 2000 Pavel Roskin <pavel_roskin@geocities.com>
11273
11274 * invoke.texi (PPC Options): -mno-new-mnenomics -> -mold-mnemonics.
11275
11276 Fri Feb 11 02:48:30 2000 Brad Lucier (lucier@math.purdue.edu)
11277
11278 * sbitmap.h: Make SBITMAP_ELT_BITS unsigned.
11279
11280 2000-02-11 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11281
11282 * config/c4x/c4x.c (fp_zero_operand): Check for CONST_DOUBLE.
11283
11284 2000-02-11 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11285
11286 * config/c4x/c4x.h (ASM_GLOBALIZE_LABEL): Use c4x_global_label.
11287 (ASM_OUTPUT_EXTERNAL): Use c4x_external_ref.
11288 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
11289 (ASM_FILE_END): Use c4x_file_end.
11290 * config/c4x/c4x.c (c4x_global_label): New function.
11291 (c4x_external_ref, c4x_file_end): Likewise.
11292
11293 * config/c4x/c4x-protos.h (c4x_global_label): Add prototype.
11294 (c4x_external_ref, c4x_end_file): Likewise.
11295
11296 2000-02-10 Zack Weinberg <zack@wolery.cumb.org>
11297
11298 * cppexp.c: Don't include cpphash.h.
11299 (parse_charconst, cpp_lex): Use cpp_defined.
11300 (cpp_lex): Use get_directive_token throughout. Remove
11301 unnecessary cases from switch. Move assertion-handling code
11302 down to OTHER case.
11303 (cpp_parse_expr): If we see '+' or '-', check the context to
11304 determine if they are unary or binary operators. Streamline
11305 the jumps a bit. Do not call skip_rest_of_line.
11306
11307 * cpplib.c: Make skip_rest_of_line and cpp_skip_hspace
11308 static. Export get_directive_token. Update commentary.
11309 (cpp_defined): New function.
11310 (do_define): Remove reference to T_PCSTRING. Call
11311 free_definition to release memory for old definition, when
11312 redefining a macro.
11313 (eval_if_expression): Set only_seen_white to 0 before calling
11314 cpp_parse_expr. Call skip_rest_of_line after it returns.
11315 (cpp_read_check_assertion): Don't preserve a pointer into the
11316 token buffer across a call to cpp_get_token.
11317
11318 * Makefile.in (cppexp.o): Don't depend on cpphash.h.
11319 * cppfiles.c (redundant_include_p): Use cpp_defined.
11320 * cpphash.c (free_definition): New function.
11321 (delete_macro): Use it. Update commentary.
11322 * cpphash.h: Typedef HASHNODE here. Prototype cpp_lookup and
11323 free_definition.
11324 * cpplib.h: Don't typedef HASHNODE here. Delete T_PCSTRING
11325 from enum node_type. Prototype cpp_defined and get_directive_token.
11326 Don't prototype cpp_lookup, skip_rest_of_line, or cpp_skip_hspace.
11327
11328 * fix-header.c (check_macro_names): Use cpp_defined.
11329 (read_scan_file): Set inhibit_warnings and inhibit_errors in
11330 the options structure.
11331
11332 2000-02-10 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11333
11334 * c-pragma.c (maximum_field_alignment): Remove duplicate declaration.
11335
11336 2000-02-10 Jason Merrill <jason@casey.cygnus.com>
11337
11338 * dwarf2out.c (add_abstract_origin_attribute): Check TREE_CODE (origin)
11339 rather than die->die_tag.
11340
11341 Thu Feb 10 16:26:49 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11342
11343 * combine.c (make_extraction, force_to_mode): Avoid warning on
11344 mixed-signedness conditionals.
11345 (make_field_assignment, nonzero_bits): Likewise.
11346 * expmed.c (store_fixed_bit_field): ALIGN arg now unsigned.
11347 (store_split_bit_field, extract_split_bit_field): Likewise.
11348 (extract_fixed_bit_field, store_bit_field,
11349 * expr.c: Change alignment to be unsigned everywhere.
11350 (move_by_pieces, store_constructor_field, store_constructor):
11351 Alignment parm is unsigned.
11352 (emit_block_move, emit_group_load, emit_group_store): Likewise.
11353 (clear_storage, emit_push_insn, compare_from_rtx): Likewise.
11354 (do_compare_rtx_and_jump): Likewise.
11355 (move_by_pieces_ninsns, clear_by_pieces): Likewise.
11356 Compare align with GET_MODE_ALIGNMENT.
11357 (expand_expr_unaligned): Pointer to alignment is pointer to unsigned.
11358 (get_inner_reference): Likewise.
11359 (copy_blkmode_from_reg, emit_push_insn): Remove unneeded casts.
11360 (expand_assignment): Local vars for alignment now unsigned.
11361 (store_constructor, store_field, expand_expr, do_jump): Likewise.
11362 (do_compare_and_jump): Likewise.
11363 (store_field): Call new function expr_align.
11364 * expr.h (emit_block_move, emit_group_load, emit_group_store):
11365 Alignment arg now unsigned.
11366 (clear_storage, emit_push_insn, compare_from_rtx): Likewise.
11367 (do_compare_rtx_and_jump, store_bit_field): Likewise.
11368 (extract_bit_field): Likewise.
11369 * fold-const.c (add_double): Add cast to eliminate signedness warning.
11370 * machmode.h (GET_MODE_ALIGNMENT): Result is unsigned.
11371 (get_best_mode): Alignment arg is unsigned.
11372 * rtl.h (move_by_pieces): Likewise.
11373 * store-layout.c (maximum_field_alignment, set_alignment):
11374 Now unsigned.
11375 (layout_decl): Alignment arg is now unsigned.
11376 Remove unneeded casts.
11377 (layout_record, layout_union, layout_type): Remove unneeded casts.
11378 Local alignment variables now unsigned.
11379 (get_best_mode): Alignment arg now unsigned.
11380 * tree.c (expr_align): New function.
11381 * tree.h (expr_align): Likewise.
11382 (maximum_field_alignment, set_alignment): Now unsigned.
11383 (get_inner_reference): Alignment argument is now pointer to unsigned.
11384 * varasm.c (assemble_variable): Add cast to eliminate warning.
11385
11386 Thu Feb 10 12:56:47 2000 Jim Wilson <wilson@cygnus.com>
11387
11388 * expmed.c (store_bit_field): If op0 and fieldmode are the same size,
11389 then store directly into op0.
11390
11391 * calls.c (expand_call): When emitting a NOTE_INSN_SETJMP, search for
11392 the CALL_INSN, and emit the note immediately after it.
11393
11394 2000-02-10 Nick Clifton <nickc@cygnus.com>
11395
11396 * config/arm/thumb.md (epilogue): Include a (return) in the
11397 generated insn, and emit it using emit_jump_insn not
11398 emit_insn.
11399
11400 Thu Feb 10 18:28:59 MET 2000 Jan Hubicka <jh@suse.cz>
11401
11402 * function.c (assign_temp): Change zero-sized arrays to size 1.
11403 * integrate.c (expand_inline_function): Do not update
11404 stack_alignment_needed
11405 * i386.c (compute_frame_size): Remove #ifdef PREFERRED_FRAME_BOUNDARY,
11406 add some sanity checking, remove optimization for function with
11407 zero frame size.
11408
11409 2000-02-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11410
11411 * flow.c (mark_regs_live_at_end): Delete unused variables.
11412
11413 * ggc-page.c (ggc_page_print_statistics): bzero -> memset.
11414
11415 * integrate.c (copy_rtx_and_substitute): Wrap variable `alignment'
11416 in macro FRAME_GROWS_DOWNWARD.
11417
11418 * stmt.c (expand_end_bindings): Delete unused variable.
11419
11420 * unroll.c (iteration_info): Mark parameter `loop' with
11421 ATTRIBUTE_UNUSED.
11422
11423 2000-02-10 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
11424
11425 * fixinc/server.c (load_data): Return NULL if the marker line is
11426 not found.
11427 (run_shell): If load_data returns NULL, retry the command once, in
11428 a new shell.
11429
11430 * configure: Rebuilt.
11431
11432 2000-02-09 Bruce Korb <bkorb@gnu.org>
11433
11434 * gcc/fixincludes: ** DELETED **
11435 * gcc/fixcpp: ** DELETED **
11436 * gcc/fixinc-nt.sed: ** DELETED **
11437 * gcc/just-fixinc: ** DELETED **
11438 * gcc/Makefile.in: Removed out-dated commentary
11439 * gcc/configure.in: Removed fast-fixincludes disablement.
11440 * MAINTAINERS(Ian Taylor) moved to "Write after approval" group.
11441
11442 2000-02-09 Clinton Popetz <cpopetz@cygnus.com>
11443 * function.c (thread_prologue_and_epilogue_insns): Uncomment
11444 last change.
11445
11446 2000-02-09 Richard Henderson <rth@cygnus.com>
11447
11448 * jump.c (delete_insn): Don't delete user labels at -O0.
11449
11450 2000-02-09 Robert Lipe <robertl@sco.com>
11451
11452 * Makefile.in (gen-protos): Don't depend on HOST_LIBDEPS.
11453 Don't link with HOST_LIBS.
11454
11455 2000-02-09 Zack Weinberg <zack@wolery.cumb.org>
11456
11457 * configure.in: Correct --help text for --with-dwarf2.
11458 Put tm-dwarf2.h after other tm files, if it's requested.
11459 * configure: Regenerate.
11460 * config/tm-dwarf2.h: #undef PREFERRED_DEBUGGING_TYPE before
11461 defining it.
11462
11463 2000-02-09 Zack Weinberg <zack@wolery.cumb.org>
11464
11465 * cpplib.h: Provide HASHNODE typedef and forward decl of
11466 struct hashnode only. Kill cpp_hashnode typedef. MACRODEF,
11467 DEFINITION, struct hashnode, struct macrodef, struct
11468 definition, scan_decls prototype, default defn of
11469 INCLUDE_LEN_FUDGE moved elsewhere.
11470
11471 * cpphash.h: MACRODEF, DEFINITION, struct macrodef, struct
11472 definition, and struct hashnode moved here. Remove the unused
11473 'predefined' field from struct definition. Replace the 'args'
11474 union with its sole member. All users updated (cpphash.c).
11475 Delete HASHSTEP and MAKE_POS macros, and hashf prototype. Add
11476 multiple include guard.
11477
11478 * cpphash.c (hashf): Make static; use better algorithm; drop
11479 HASHSIZE parameter; return an unsigned int.
11480 (cpp_lookup): Drop HASH parameter. PFILE parameter is
11481 used. Calculate HASHSIZE modulus here.
11482 (cpp_install): Drop HASH parameter. Calculate HASHSIZE modulus
11483 here.
11484 (create_definition): Drop PREDEFINITION parameter.
11485 * cpplib.c (do_define): Don't calculate a hash value here.
11486 Don't pass (keyword == NULL) to create_definition.
11487
11488 * scan.h: Prototype scan_decls here.
11489 * cppfiles.c: Move INCLUDE_LEN_FUDGE default defn here.
11490 * cppexp.c, cppfiles.c, cppinit.c, cpplib.c, fix-header.c: All
11491 callers of cpp_lookup and cpp_install updated.
11492
11493 * cpphash.c (macarg): Hoist all the flag diddling out of the
11494 function...
11495 (macroexpand): ... and out of the loop that calls macarg.
11496 Skip over the initial paren before macro arguments with
11497 cpp_get_non_space_token; point may be some distance before
11498 that paren. Abort if it's not there.
11499
11500 * cpplib.c (parse_clear_mark): Delete function.
11501 (parse_set_mark, parse_goto_mark): Make static.
11502 (ACTIVE_MARK_P): New macro.
11503 (skip_block_comment, skip_line_comment): Do not bump the line
11504 if ACTIVE_MARK_P is true.
11505 (cpp_pop_buffer): The buffer to be popped may not have an
11506 active mark.
11507 (cpp_get_token): When looking for the initial paren before
11508 macro arguments, only set a mark in a file buffer, Always
11509 return to that mark before proceeding to call macroexpand or
11510 return a NAME token.
11511
11512 * cpplib.h: Remove prototypes of parse_set_mark,
11513 parse_clear_mark, parse_goto_mark.
11514 (struct cpp_options): Rename 'put_out_comments' to
11515 'discard_comments' and invert its sense.
11516 * cppinit.c, cpphash.c, cpplib.c: All users of
11517 put_out_comments changed to use discard_comments, with
11518 opposite sense.
11519
11520 2000-02-09 Clinton Popetz <cpopetz@cygnus.com>
11521
11522 * function.c (thread_prologue_and_epilogue_insns): Don't delete
11523 the edge from a block that both jumps and falls through to the
11524 fallthru block.
11525
11526 2000-02-09 Scott Bambrough <scottb@netwinder.org>
11527
11528 * config/arm/arm.md (movsi): In PIC mode, make sure that a
11529 constant source address is legitimate.
11530
11531 2000-02-09 Philip Blundell <pb@futuretv.com>
11532
11533 * config/arm/arm.c (legitimize_pic_address): Handle LABEL_REF
11534 correctly.
11535
11536 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Allow anything when
11537 generating PIC.
11538 (LEGITIMATE_PIC_OPERAND): Disallow references to labels.
11539
11540 2000-02-09 Zack Weinberg <zack@wolery.cumb.org>
11541
11542 * cpplib.c (cpp_define, cpp_undef): Make sure the stacked buffer
11543 ends with a newline and a NUL. Don't be so clever manipulating
11544 strings.
11545
11546 Wed Feb 9 14:18:08 MET 2000 Jan Hubicka <jh@suse.cz>
11547
11548 * reload1.c (reload) Align stack frame to cfun->stack_alignment_needed,
11549 not to BIGGEST_ALIGNMENT.
11550
11551 2000-02-08 Geoff Keating <geoffk@cygnus.com>
11552
11553 * dwarf2.h (DW_CFA_GNU_negative_offset_extended): New constant.
11554 * dwarf2out.c (dwarf_cfi_name): Print name of new constant.
11555 (reg_save): Use DW_CFA_GNU_negative_offset_extended when needed.
11556 (output_cfi): Handle output of DW_CFA_GNU_negative_offset_extended.
11557 * frame.c (execute_cfa_insn): Handle
11558 DW_CFA_GNU_negative_offset_extended.
11559
11560 2000-02-08 Richard Henderson <rth@cygnus.com>
11561
11562 * flow.c (tidy_fallthru_edges): Split out from ...
11563 (delete_unreachable_blocks): ... here.
11564 (find_basic_blocks): Use it.
11565
11566 Tue Feb 8 15:51:50 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11567
11568 * stmt.c (expand_decl): Do set RTX_UNCHANGING_P for TREE_READONLY.
11569
11570 2000-02-08 Zack Weinberg <zack@wolery.cumb.org>
11571
11572 * Makefile.in (GEN_PROTOS_OBJS): Remove libcpp.a.
11573 (gen_protos.o): Don't depend on cpplib.h or cpphash.h.
11574 (fix-header.o): Don't depend on cpphash.h.
11575
11576 * scan.c (hashstr): New function.
11577 * scan.h: Prototype it.
11578 * fix-header.c: Don't include cpphash.h. Use hashstr.
11579 * gen-protos.c: Don't include cpphash.h or cpplib.h. Use
11580 hashstr. Report hash table statistics. Add private
11581 definition of xrealloc.
11582
11583 2000-02-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11584
11585 * i386.h (TARGET_SWITCHES): Fix typo in option name.
11586
11587 2000-02-08 Clinton Popetz <cpopetz@cygnus.com>
11588
11589 * function.c (thread_prologue_and_epilogue_insns): Don't replace
11590 jumps with returns unless they are jumps to the fallthru block.
11591
11592 Tue Feb 8 07:53:55 2000 Jan Hubicka <jh@suse.cz>
11593
11594 * i386.md (addqi3_cc): Fix contraints.
11595
11596 Tue Feb 8 01:39:45 2000 Hans-Peter Nilsson <hp@bitrange.com>
11597
11598 * function.c (emit_return_into_block): Wrap in #ifdef HAVE_return.
11599
11600 2000-02-07 Mark Mitchell <mark@codesourcery.com>
11601
11602 * cpplib.c (cpp_get_token): Call CPP_BUMP_LINE after reading a
11603 carriage return after a macro name.
11604
11605 2000-02-07 Fred Fish <fnf@be.com>
11606
11607 * i386/beos-elf.h: (ASM_IDENTIFY_GCC): Define to nothing
11608 so the gcc2_compiled symbol doesn't confuse BeOS debuggers.
11609
11610 2000-02-07 Zack Weinberg <zack@wolery.cumb.org>
11611
11612 * cppfiles.c (deps_output): Count spacers in deps_column.
11613
11614 2000-02-07 Neil Booth <NeilB@earthling.net>
11615
11616 * cppinit.c (initialize_dependency_output): If there is no
11617 suffix, don't try to look for known suffixes. Use strrchr.
11618 (cpp_start_read): Remove duplicate initialization.
11619
11620 Mon Feb 7 18:36:41 MET 2000 Jan Hubicka <jh@suse.cz>
11621
11622 * calls.c (compute_argument_block_size): New argument
11623 preferred_stack_boundary.
11624 (expand_call): update cfun->preferred_stack_boundary, update call of
11625 compute_argument_block_size
11626 (emit_library_call): Increate cfun->preferred_stack_boundary
11627 to PREFERRED_STACK_BOUNDARY
11628 (emit_library_call_value): Likewise.
11629 * explow.c (allocate_dynamic_stack_spave): Likewise.
11630 * function.c (prepare_function_start): Set
11631 cfun->preferred_stack_boundary
11632 * function.h (struct function): Add preferred_stack_boundary field.
11633 * integrate.c (expand_inline_function): Update
11634 cfun->preferred_stack_boundary and cfun->stack_alignment_needed.
11635 (copy_rtx_and_substitute): Align frame to stack_alignment_needed only.
11636 * i386.c (compute_frame_size): Use cfun->preferred_stack_boundary.
11637
11638 2000-02-06 Zack Weinberg <zack@wolery.cumb.org>
11639
11640 * cpplib.c (my_strerror, cpp_error, cpp_error_with_line,
11641 cpp_error_from_errno, cpp_warning, cpp_warning_with_line,
11642 cpp_pedwarn, cpp_pedwarn_with_line,
11643 cpp_pedwarn_with_file_and_line): Move to cpperror.c.
11644 (cpp_print_file_and_line, v_cpp_error, v_cpp_warning,
11645 v_cpp_error_with_line, v_cpp_warning_with_line,
11646 cpp_message_from_errno, cpp_perror_with_name): Delete.
11647
11648 * cpperror.c (cpp_print_containing_files): Take starting
11649 buffer as argument.
11650 (cpp_file_line_for_message): Rename to cpp_print_file_and_line.
11651 (v_cpp_message): Now called directly by all entry points.
11652 Remove -1 case.
11653 (cpp_pfatal_with_name, cpp_message): Delete.
11654 (cpp_notice_from_errno, cpp_ice): New functions.
11655 (cpp_notice): Is now for reporting error conditions, just
11656 without an associated file.
11657 (cpp_error, cpp_error_with_line): Don't do anything if
11658 opts->inhibit_errors is on.
11659 (cpp_pedwarn_with_file_and_line): Take column argument also.
11660
11661 * cpplib.h: Update prototypes of exported functions.
11662 (struct cpp_options): Add inhibit_errors.
11663
11664 * cppalloc.c, cppfiles.c: Use fprintf not cpp_notice for
11665 non-error messages. Include intl.h.
11666
11667 * cppinit.c, cppmain.c: Likewise. Also, use
11668 cpp_notice_from_errno instead of cpp_perror_with_name or
11669 cpp_pfatal_with_name, and cpp_notice instead of cpp_message.
11670
11671 * cppexp.c, cpphash.c, cppinit.c, cpplib.c: Use cpp_ice to
11672 report internal errors.
11673
11674 * cpplib.c (do_define): Switch bcopy to memcpy.
11675 Give cpp_pedwarn_with_file_and_line a dummy column argument.
11676
11677 * cpplib.c (copy_rest_of_line): Revert previous change: don't
11678 bail out early if we hit a line comment.
11679
11680 2000-02-06 Richard Henderson <rth@cygnus.com>
11681
11682 * flow.c (flow_delete_insn, make_edge, remove_edge): Export.
11683 * basic-block.h: Declare them.
11684 * emit-rtl.h (active_insn_p): New.
11685 (next_active_insn, prev_active_insn): Use it.
11686 * rtl.h: Declare it.
11687 * function.c (emit_return_into_block): New.
11688 (thread_prologue_and_epilogue_insns): Insert return insns instead
11689 of epilogues when possible.
11690 * jump.c (jump_optimize_1): Remove code to insert a return insn
11691 on the fallthru to the exit block.
11692
11693 * i386.c (ix86_can_use_return_insn_p): Fail for large poped args
11694 and for non-empty stack frames.
11695 * i386.md (return): Expand to return-pop as needed.
11696
11697 2000-02-06 Richard Henderson <rth@cygnus.com>
11698
11699 * simplify-rtx.c (simplify_relational_operation): Canonicalize
11700 constant to op1 for testing.
11701
11702 2000-02-06 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11703
11704 * config/c4x/c4x.md (*ldi_on_overflow): New pattern.
11705 (fixuns_truncqfqi2): Use it.
11706
11707 2000-02-06 Richard Henderson <rth@cygnus.com>
11708
11709 * i386.c (ix86_agi_dependant): Handle pro_epilogue_adjust_stack
11710 as a TYPE_LEA insn.
11711
11712 * i386.md (widening and peepholes): Mask the constant instead of
11713 using gen_lowpart.
11714
11715 2000-02-05 Zack Weinberg <zack@wolery.cumb.org>
11716
11717 * cppfiles.c (read_and_prescan) [case SPECCASE_QUESTION]: Bump
11718 input pointer before possibly branching off to the backslash
11719 code.
11720 * cpphash.c (macroexpand): Correctly delete \r escapes when
11721 stringifying parameters.
11722 * cpplib.c (copy_rest_of_line): Go directly to skip_block_comment
11723 if we can; bail out early if we hit a line comment.
11724 (handle_directive): Treat '# 123' in an .S file just like
11725 '# <punctuation>'. Discard the shifted '#' if we hit '#\n'.
11726 Return 1 for '# not_a_directive'.
11727 (get_directive_token): Pop macro buffers here, so that
11728 cpp_get_token can't sneakily move past a newline.
11729 Add sanity checks.
11730 (cpp_get_token): goto randomchar if handle_directive returns 0.
11731
11732 * cppalloc.c: Update copyright.
11733 * cpplib.c: Merge all the static function prototypes into one
11734 block.
11735 * cpplib.h: Remove #if 0 block.
11736
11737 * cpperror.c: Remove #ifdef EMACS block.
11738 * cppmain.c: Likewise.
11739 * cpphash.c: Remove #if 0 blocks.
11740 * cppinit.c: Remove #if 0 blocks, and the -lint option.
11741 * cpplib.c: Remove #if 0 blocks and code referencing
11742 pcp_inside_if or for_lint. Remove duplicate error message.
11743 Fix error messages for #else after #else or #elif. Reformat.
11744 Remove archaic TODO list.
11745 * cpplib.h: Remove pcp_inside_if and for_lint flags.
11746
11747 2000-02-05 Zack Weinberg <zack@wolery.cumb.org>
11748
11749 * i386/osf1elf.h: Add missing backslash to multiline string.
11750
11751 2000-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11752
11753 * longlong.h [sparc] (udiv_qrnnd): Avoid stringifying macro arg.
11754
11755 2000-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11756
11757 * Makefile.in (c-common.o): Depend on $(EXPR_H).
11758
11759 * c-common.c: Include expr.h.
11760
11761 * c-pragma.c (mark_align_stack): Add prototype.
11762
11763 * caller-save.c (add_stored_regs): Likewise.
11764
11765 * combine.c (record_promoted_value): Likewise.
11766
11767 * i386.c (ix86_sched_reorder_pentium, ix86_sched_reorder_ppro):
11768 Likewise.
11769
11770 * cppinit.c (new_pending_define): Likewise.
11771
11772 * cpplib.c (skip_block_comment, skip_line_comment): Likewise.
11773
11774 * dwarf2out.c (save_rtx, splice_child_die, reverse_die_lists,
11775 AT_class, AT_flag, AT_int, AT_unsigned, AT_string, AT_ref, AT_loc,
11776 AT_addr, AT_lbl, get_AT_ref, free_AT, free_die, local_scope_p,
11777 class_scope_p): Likewise.
11778
11779 * dwarf2out.h (dwarf2out_set_demangle_name_func,
11780 dwarf2out_add_library_unit_info): Likewise.
11781
11782 * ggc.h (ggc_page_print_statistics): Likewise.
11783
11784 * haifa-sched.c (propagate_deps): Likewise.
11785
11786 * reg-stack.c (next_flags_user, record_label_references): Likewise.
11787
11788 * rtl.h (set_stack_check_libfunc): Likewise.
11789
11790 * toplev.h (set_fatal_function): Likewise.
11791
11792 * toplev.c (set_fatal_function): Delete prototype.
11793
11794 * diagnostic.c: Deconstify functions returning malloc'ed ptrs.
11795
11796 2000-02-05 Geoff Keating <geoffk@cygnus.com>
11797
11798 * ginclude/ppc-asm.h (FUNC_START): Use USER_LABEL_PREFIX.
11799 (FUNC_END): Likewise.
11800
11801 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11802
11803 * caller-save.c: Include tm_p.h.
11804
11805 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11806
11807 * Makefile.in (libgcc.a): Add $(LIBGCC1) to libgcc.a after $(LIBGCC2).
11808
11809 2000-02-04 Neil Booth <NeilB@earthling.net>
11810
11811 * cccp.c (main): Check 'dir' for a NULL pointer before passing
11812 it to strcmp.
11813
11814 2000-02-04 Zack Weinberg <zack@wolery.cumb.org>
11815
11816 * recog.h: Remove NO_MD_PROTOTYPES ifdefs.
11817 * genflags.c: Use the max_operand_1 logic from genemit.c to
11818 calculate how many arguments gen_insn prototypes have. Remove
11819 NO_MD_PROTOTYPES ifdefs from the generated file.
11820 * genoutput.c: Don't define NO_MD_PROTOTYPES in the generated
11821 file. Cast gen_insn initializers to insn_gen_fn.
11822 * config/alpha/vms.h: Don't define NO_MD_PROTOTYPES.
11823 * gcc.texi: Remove documentation of NO_MD_PROTOTYPES.
11824
11825 2000-02-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11826
11827 * fixinc/Makefile.in (HDR): Add machname.h.
11828 (clean): Likewise.
11829
11830 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11831
11832 * config/c4x/c4x.h (c4x_compare_op0, c4x_compare_op1): Move ...
11833 (c4x_regclass_map, c4x_caller_save_map, c4x_rpts_cycles): Ditto.
11834 (c4x_cpu_version): Ditto.
11835 * config/c4x/c4x-protos.h: ... here.
11836
11837 2000-02-04 Jason Merrill <jason@casey.cygnus.com>
11838
11839 * dwarf2out.c (add_abstract_origin_attribute): Don't call
11840 gen_abstract_function on our context if we're a nested function.
11841
11842 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11843
11844 * config/c4x/c4x.md (fixuns_truncqfqi2): Rewrite.
11845 * config/c4x/libgcc.S (ufix_truncqfhi2n): Fix.
11846
11847 2000-02-04 Bruce Korb <bkorb@gnu.org>
11848
11849 * fixinc/genfixes(machname.h):
11850 Move the functionality from gen-machine.h into this file.
11851 UNdef MN_NAME_PAT if there are no names to change.
11852 Also, be a little kinder when AutoGen is not present.
11853
11854 * fixinc/Makefile.in(machname.h):
11855 Change the generation rule to use genfixes.
11856
11857 * fixinc/fixfixes.c(machine_name):
11858 machine_name_fix's functionality now dependent upon whether
11859 MN_NAME_PAT is defined.
11860
11861 * fixinc/fixtests.c(machine_name):
11862 ditto.
11863
11864 * fixinc/fixlib.c(mn_get_regexps): conditional on definition
11865 of MN_NAME_PAT.
11866
11867 * fixinc/fixlib.h(mn_get_regexps):
11868 ditto
11869
11870 * fixinc/gen-machine.h: DELETED
11871
11872 2000-02-04 Jan Hubicka <jh@suse.cz>
11873 Richard Henderson <rth@cygnus.com>
11874
11875 * i386.c (SAVE_REGS_FIRST): Remove.
11876 (ix86_initial_elimination_offset): Handle only SAVE_REGS_FIRST mode.
11877 (ix86_compute_frame_size): Likewise.
11878 (ix86_expand_prologue): Likewise. Use pro_epilogue_adjust_stack.
11879 (ix86_emit_restore_regs): Remove.
11880 (ix86_emit_epilogue_esp_adjustment): Use pro_epilogue_adjust_stack
11881 when a frame pointer is in use.
11882 (ix86_expand_epilogue): Handle only SAVE_REGS_FIRST mode. Use mov
11883 instead of pop to restore a register when profitable; emit leave
11884 when profitable.
11885 (ix86_attr_length_default): Handle pro_epilogue_adjust_stack
11886 as a TYPE_LEA insn.
11887 (ix86_adjust_cost): Handle pro_epilogue_adjust_stack as TYPE_ALU.
11888 * i386.md (prologue_allocate_stack): Remove.
11889 (epilogue_deallocate_stack): Remove.
11890 (pro_epilogue_adjust_stack): New.
11891
11892 2000-02-04 Richard Henderson <rth@cygnus.com>
11893
11894 * function.c (diddle_return_value): Rework to use a callback function.
11895 Use current_function_return_rtx if it's been set up.
11896 (do_clobber_return_reg, clobber_return_register): New.
11897 (do_use_return_reg, use_return_register): New.
11898 (expand_function_end): Use them.
11899 * stmt.c (expand_null_return): Likewise.
11900 * function.h: Declare them.
11901 * flow.c (mark_regs_live_at_end): Use diddle_return_value.
11902 (mark_reg): Change arguments as appropriate for callback.
11903 * integrate.c (expand_inline_function): Revert 19 Jan change.
11904
11905 Fri Feb 4 20:25:42 2000 Hans-Peter Nilsson <hp@bitrange.com>
11906
11907 * tm.texi (Values in Registers): Fix typo: "fo" "for".
11908 (Misc): Say the scheduler, not the Haifa scheduler.
11909
11910 2000-02-04 Clinton Popetz <cpopetz@cygnus.com>
11911
11912 * jump.c (mark_jump_label): Add in_mem param, check SYMBOL_REFs
11913 when in_mem is set. Update all callers.
11914
11915 2000-02-04 Richard Henderson <rth@cygnus.com>
11916
11917 * i386/openbsd.h (INT_ASM_OP): Define.
11918
11919 Fri Feb 4 10:51:30 2000 Hans-Peter Nilsson <hp@bitrange.com>
11920
11921 * tm.texi: Fix various typos.
11922
11923 Thu Feb 3 17:17:32 2000 Steve Ellcey <sje@cup.hp.com>
11924
11925 * config/pa/pa-hpux11.h (LIB_SPEC): Correct typo in !p case.
11926 (MD_STARTFILE_PREFIX_1): New macro.
11927
11928 Thu Feb 3 15:08:13 MET 2000 Jan Hubicka <jh@suse.cz>
11929
11930 * i386.md (movstrsi, clrstrsi): Support variable sized copies, align
11931 destination when needed.
11932 (strmovsi, strsetsi): New expander.
11933 (strmovsi_1, strsetsi_1): New pattern.
11934 * i386.h (MASK_NO_ALIGN_STROP, MASK_INLINE_ALL_STROP,
11935 TARGET_ALIGN_STRINGOPS, TARGET_INLINE_ALL_STRINGOPS): New macros.
11936 (TARGET_SWITCHES) Add align-stringops and inline-all-stringops.
11937 * invoke.texi (align-stringops, inline-all-stringops): Document.
11938
11939 Wed Feb 2 23:04:47 2000 Krister Walfridsson <cato@df.lth.se>
11940
11941 * i386/netbsd.h (INT_ASM_OP): Define.
11942
11943 2000-02-02 Zack Weinberg <zack@wolery.cumb.org>
11944
11945 * cpplib.h (cpp_reader): Add new flag, no_directives.
11946 * cpphash.c (macarg): Set it.
11947 * cpplib.c (handle_directive): If no_directives is on and we
11948 find a directive, issue an error and discard the line.
11949
11950 Wed Feb 2 13:07:10 2000 Jim Wilson <wilson@cygnus.com>
11951
11952 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Delete 'E' check for
11953 FP constants. Add ! TARGET_FPU check for FP constants.
11954
11955 2000-02-02 Clinton Popetz <cpopetz@cygnus.com>
11956
11957 * flow.c (find_basic_blocks): Don't kill label_value_list
11958 here.
11959 (cleanup_cfg): Kill it here.
11960
11961 Wed Feb 2 08:12:30 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11962
11963 * expr.c (store_field): Ensure ALIGN is no stricter than the
11964 alignment of EXP.
11965
11966 2000-02-02 Richard Henderson <rth@cygnus.com>
11967
11968 * jump.c (delete_insn): Partially revert 19 Jan change;
11969 don't convert unused code labels to notes at -O0.
11970
11971 2000-02-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11972
11973 * toplev.c (rest_of_compilation): Run rebuild_jump_labels after
11974 split_all_insns to recreate REG_LABEL notes for flow2 pass.
11975
11976 2000-02-01 Richard Henderson <rth@cygnus.com>
11977
11978 * i386.c (general_no_elim_operand): New.
11979 (nonmemory_no_elim_operand): New.
11980 (ix86_expand_move): Copy eliminable operands before a push.
11981 * i386-protos.h: Declare new functions.
11982 * i386.h (CAN_ELIMINATE): Simplify.
11983 (PREDICATE_CODES): Update.
11984 * i386.md (push insns): Don't allow eliminable register operands.
11985
11986 2000-02-01 Richard Henderson <rth@cygnus.com>
11987
11988 * flow.c (mark_regs_live_at_end): Follow expand_function_end and
11989 replace BLKmode with DECL_RTL's mode.
11990
11991 2000-02-01 Zack Weinberg <zack@wolery.cumb.org>
11992
11993 * frame.c (find_fde): Convert for loop to do-while so compiler
11994 sees it's always executed at least once.
11995 * libgcc2.c (BBINBUFSIZE): Kill.
11996 (__bb_init_prg): Use fgets.
11997 (__bb_exit_trace_func): Don't paste strings.
11998 * unroll.c (unroll_loop): Initialize unroll_type, not
11999 unroll_number, and tweak logic to match.
12000
12001 * i386.c (ix86_expand_int_movcc): Add explicit 'return 0' in
12002 all failure paths.
12003 (ix86_flags_dependant): Likewise. Disentangle control flow.
12004 (ix86_sched_reorder): Break guts out to
12005 ix86_sched_reorder_pentium and ix86_sched_reorder_ppro.
12006 (ix86_sched_reorder_ppro): Initialize pair2 and insnp before
12007 any possible use.
12008
12009 * i386.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Don't
12010 use string concatenation. Don't save and restore esi.
12011
12012 * fixinc/Makefile.in (fixincl.sh): Don't depend on inclhack.def.
12013 (machname.h): Remove script to separate file. Use two-step
12014 sequence so target is not created if script fails.
12015 * fixinc/gen-machname.h: New file. Handle case where no non-reserved
12016 identifiers are defined.
12017 * fixinc/fixlib.c (mn_get_regexps): Return a flag: if MN_NAME_PAT is
12018 an empty string, machine_name doesn't need to do anything at
12019 all.
12020 (is_cxx_header): Add more cases to regexp.
12021 * fixinc/fixlib.h: Update prototype.
12022 * fixinc/fixtests.c, fixinc/fixfixes.c: Update callers of
12023 mn_get_regexps.
12024 * fixinc/fixincl.c: Define NO_BOGOSITY.
12025
12026 * fixinc/inclhack.def (no_double_slash, else_endif_label): Ifdef out.
12027 (hp_sysfile): Add missing comma.
12028 (math_exception): Put the wrapper ifdefs at the beginning and
12029 the end of the file.
12030 * fixinc/fixincl.x, fixinc/inclhack.sh: Regenerate.
12031
12032 2000-02-01 Richard Henderson <rth@cygnus.com>
12033
12034 * sparc.c (fp_zero_operand): Turn into a normal predicate.
12035 Use CONST0_RTX. Update all callers.
12036 * sparc.h, sparc-protos.h: Update accordingly.
12037 * sparc.md (fp mov insns): Use fp_zero_operand directly
12038 where applicable.
12039
12040 Wed Feb 2 02:59:45 2000 Hans-Peter Nilsson <hp@bitrange.com>
12041
12042 * tm.texi (Values in Registers): Fix typo in HARD_REGNO_NREGS
12043 example.
12044
12045 2000-02-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12046
12047 * Makefile.in (specs.ready): New target.
12048 (fixinc.sh): Depend on `specs.ready' instead of `specs'.
12049
12050 2000-02-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12051
12052 * fixinc.irix: Use unique filenames for writing into /tmp,
12053 * fixinc.ptx: Likewise.
12054 * fixinc.sco: Likewise.
12055 * fixinc.svr4: Likewise.
12056 * fixinc.winnt: Likewise.
12057
12058 2000-02-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12059
12060 * tsystem.h: New file.
12061
12062 * Makefile.in (libgcc2.a, stmp-multilib, crtbegin.o, crtend.o,
12063 s-crtS): Depend on tsystem.h.
12064
12065 * crtstuff.c: Include tsystem.h.
12066 * frame.c: Likewise.
12067 * libgcc2.c: Likewise.
12068
12069 Tue Feb 1 19:53:27 CET 2000 Jan Hubicka <jh@suse.cz>
12070
12071 * builtins.c (expand_builtin_memset): Expand for variable sized
12072 lengths too.
12073
12074 2000-02-01 David Billinghurst <David.Billinghurst@riotinto.com.au>
12075
12076 * config/mips/iris6.h (SUBTARGET_ASM_SPEC) : Default ISA based
12077 on ABI.
12078
12079 Tue Feb 1 00:57:40 2000 Hans-Peter Nilsson <hp@bitrange.com>
12080
12081 * dwarfout.c (SHORT_TYPE_SIZE): Correct default.
12082
12083 * tm.texi (Type Layout): Correct entry for CHAR_TYPE_SIZE.
12084
12085 2000-01-31 Chandra Chavva <cchavva@cygnus.com>
12086
12087 * combine.c (try_combine) [HAVE_cc0]: Trying to check the missed
12088 case 3->2 combining (combining with splitting) in which 2 is CC0
12089 setter/user and 3 is user. The rest of cases 2->1 and 3->2 are
12090 checked at the begining of the function with the aid of calling
12091 function 'can_combine_p'.
12092
12093 2000-01-31 Dave Brolley <brolley@redhat.com>
12094
12095 * cccp.c (struct argdata): Redeclare 'newlines' field as 'int'.
12096
12097 2000-01-31 Jason Merrill <jason@casey.cygnus.com>
12098
12099 * jump.c (redirect_jump): Move a NOTE_INSN_FUNCTION_END to the
12100 new label.
12101
12102 2000-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12103
12104 * gansidecl.h (PROTO, VPROTO, PVPROTO): Delete macros.
12105
12106 * sbitmap.h (sbitmap_first_set_bit, sbitmap_last_set_bit):
12107 PROTO -> PARAMS.
12108
12109 2000-01-30 Zack Weinberg <zack@wolery.cumb.org>
12110
12111 * i386/386bsd.h, i386/beos-pe.h, i386/bsd386.h, i386/crtdll.h,
12112 i386/cygwin.h, i386/dgux.h, i386/djgpp-rtems.h, i386/djgpp.h,
12113 i386/freebsd.h, i386/gnu.h, i386/i386-aout.h, i386/i386-coff.h,
12114 i386/i386-interix.h, i386/i386elf.h, i386/linux.h, i386/lynx-ng.h,
12115 i386/lynx.h, i386/mach.h, i386/mingw32.h, i386/moss.h,
12116 i386/netbsd.h, i386/next.h, i386/openbsd.h, i386/osf1elf.h,
12117 i386/ptx4-i.h, i386/rtems.h, i386/rtemself.h, i386/sco.h,
12118 i386/sequent.h, i386/sun.h, i386/sysv4.h, i386/uwin.h, i386/vsta.h,
12119 i386/vxi386.h, i386/win-nt.h, i386/win32.h:
12120 Remove -Di386 -Acpu(i386) -Amachine(i386) from CPP_PREDEFINES.
12121
12122 * i386/osf1elf.h, i386/scodbx.h, i386/seq-sysv3.h, i386/sysv5.h:
12123 Add %(cpp_cpu) to CPP_SPEC.
12124
12125 * i386/osf1elf.h, i386/osfelf.h, i386/osfrose.h:
12126 Add %(cc1_cpu) to CC1_SPEC.
12127
12128 2000-01-28 Ulrich Drepper <drepper@redhat.com>
12129
12130 * c-decl.c (c_decode_option): Accept optional numeric argument to
12131 -Wformat and set warn_format.
12132 * c-common.c: Don't emit warning about non-constant printf format
12133 string unless warn_format > 1.
12134
12135 2000-01-30 Richard Henderson <rth@cygnus.com>
12136
12137 * alpha.md (return_internal): Allow after reload only.
12138
12139 2000-01-30 Richard Henderson <rth@cygnus.com>
12140
12141 * i386.c (ix86_compute_frame_size): Omit padding1 if the
12142 local frame size is zero.
12143
12144 2000-01-30 Richard Henderson <rth@cygnus.com>
12145
12146 * alpha.c (alpha_expand_epilogue): Don't emit the return insn.
12147 * alpha.h (EPILOGUE_USES): New. Mark $26 live.
12148 * alpha.md (return): Turn into an expander.
12149 (return_internal): Don't use $26.
12150 (epilogue): Emit the return insn.
12151
12152 2000-01-30 Richard Henderson <rth@cygnus.com>
12153
12154 * alpha.md (negtf2, abstf2): Fix word order thinko.
12155 (extendsftf2): New.
12156 (trunctfsf2): Avoid intermediate rounding errors.
12157
12158 2000-01-30 Zack Weinberg <zack@wolery.cumb.org>
12159
12160 * cppfiles.c (find_position): Drop 'colp' argument, return the
12161 new line base.
12162 (read_and_prescan): Adjust to match. Don't ever manipulate
12163 line or line_base except via find_position.
12164
12165 2000-01-29 Zack Weinberg <zack@wolery.cumb.org>
12166
12167 * c-parse.in: Apply Ulrich's changes from c-parse.y.
12168 * c-parse.y, objc/objc-parse.y, c-parse.c, objc/objc-parse.c:
12169 Regenerate.
12170
12171 2000-01-29 Zack Weinberg <zack@wolery.cumb.org>
12172
12173 * cpperror.c (cpp_file_line_for_message): If 'line' is zero,
12174 just print "<command line>". If 'filename' is null or an
12175 empty string, print "<stdin>" for the filename.
12176 * cpplib.c (do_define): Don't print the 'location of the
12177 previous definition' message if we're still parsing the
12178 command line.
12179 (cpp_pedwarn_with_file_and_line): Always call
12180 cpp_file_line_for_message.
12181
12182 2000-01-29 Mark Mitchell <mark@codesourcery.com>
12183
12184 * flow.c (mark_regs_live_at_end): Fix typo.
12185
12186 2000-01-28 Ulrich Drepper <drepper@redhat.com>
12187
12188 * c-common.c: Adjust variable names, comments, help strings to c99.
12189 * c-lex.c: Likewise.
12190 * c-parse.y: Likewise.
12191 * c-tree.h: Likewise.
12192 * cccp.c: Likewise.
12193 * cpplib.h: Likewise.
12194 * c-decl.c: Likewise. Recognize options with names "*99" as well.
12195 * cppinit.c: Likewise.
12196
12197 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12198
12199 * c4x.h (INIT_TARGET_OPTABS): Add all missing local optab entries.
12200 * c4x.c: Define the optab rtx values.
12201 (c4x_add_gc_roots): Add the ggc roots for these optab rtx values.
12202 (c4x_emit_libcall): Use new optab rtx values.
12203 (c4x_emit_libcall3): Likewise.
12204 (c4x_emit_libcall_mulhi): Likewise.
12205 * c4x-protos.h: Add prototypes for optab rtx values and change
12206 prototypes for above c4x_emit_libcall functions.
12207
12208 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12209
12210 * c4x.c (c4x_output_ascii): Restrict line length of output when TI
12211 syntax is used.
12212 (c4x_function_prologue): Use regnames intead of float_reg_names when
12213 TI syntax is used.
12214 (c4x_function_epilogue): Likewise.
12215 (c4x_print_operand): Likewise.
12216 * c4x.h (HOST_WIDE_INT_PRINT_HEX): Redefine.
12217 * c4x.md (set_high): Disable for TARGET_TI.
12218
12219 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12220
12221 * c4x.h (PREFERRED_RELOAD_CLASS): Change to restrict the reloading
12222 of framepointer + constant to ADDR_REGS class.
12223 * c4x.md (addqi3, addqi3_noclobber_reload): Update.
12224 * c4x.c (std_or_reg_operand): New function.
12225 * c4x-protos.h (std_or_reg_operand): Prototype it.
12226
12227 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12228
12229 * t-c4x: Change qi,qf,di,df into si,sf,hi,hf to generate same
12230 object names as libgcc2.c.
12231 * libgcc.S: Use newly defined names.
12232
12233 Fri Jan 7 19:48:04 CET 2000 Jan Hubicka <jh@suse.cz>
12234 * sbitmap.c (sbitmap_first_set_bit, sbitmap_last_set_bit): New
12235 function.
12236 * sbitmap.h (sbitmap_first_set_bit, sbitmap_last_set_bit): Declare.
12237 * basic_block.h (FLOW_LOOP_FIRST_BLOCK): New macro.
12238 (FLOW_LOOP_LAST_BLOCK): Likewise.
12239
12240 2000-01-21 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12241
12242 * basic-block.h (struct loop): New fields 'first' and 'last'.
12243 * flow.c (flow_loops_find): Compute loop->first and loop->last.
12244 (flow_loops_dump): Use loop->first to check for NOTE_INSN_LOOP_BEG
12245 and loop->last to check for NOTE_INSN_LOOP_END.
12246
12247 Fri Jan 28 10:57:58 2000 Jason Eckhardt <jle@cygnus.com>
12248
12249 * predict.c (estimate_probability): Use the new FIRST and LAST fields
12250 of the loop descriptor rather than HEADER and LATCH. Also added
12251 missing break statements as well making some coding style modifications
12252 as suggested by Michael Hayes.
12253
12254 2000-01-28 Richard Henderson <rth@cygnus.com>
12255
12256 * flow.c (find_basic_blocks): Remove do_cleanup argument.
12257 Break out that code ...
12258 (cleanup_cfg): ... here.
12259 (commit_one_edge_insertion): Detect a return instruction being
12260 emitted to an edge. Emit a barrier following; clear fallthru.
12261 (commit_edge_insertions): Verify CFG consistency.
12262 * function.c (expand_function_start): Kill unused variable.
12263 (expand_function_end): Likewise.
12264 (thread_prologue_and_epilogue_insns): Use insert_insn_on_edge
12265 to insert the epilogue.
12266
12267 * gcse.c (gcse_main): Adjust for find_basic_blocks change.
12268 (delete_null_pointer_checks): Likewise.
12269 * output.h: Likewise.
12270 * reg-stack.c (reg_to_stack): Likewise.
12271 * toplev.c (rest_of_compilation): Likewise. Run
12272 thread_prologue_and_epilogue_insns after rebuilding the CFG.
12273
12274 2000-01-28 Richard Henderson <rth@cygnus.com>
12275
12276 * Makefile.in (flow.o): Revert 24 Jan change.
12277 * flow.c (mark_regs_live_at_end): Likewise. Force BLKmode
12278 FUNCTION_VALUE result to DECL_RESULT's mode.
12279
12280 * haifa-sched.c (schedule_insns): Don't recompute reg info
12281 after reload.
12282
12283 2000-01-28 Zack Weinberg <zack@wolery.cumb.org>
12284
12285 * configure.in: Make --enable-cpplib the default.
12286 * configure: Regenerate.
12287 * gcc.dg/990119-1.c: No longer expected to fail.
12288
12289 2000-01-28 Bernd Schmidt <bernds@cygnus.co.uk>
12290
12291 * jump.c (jump_optimize_1): Delete an optimization that is also done
12292 by merge_blocks in flow.
12293
12294 2000-01-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12295
12296 * diagnostic.c (build_message_string, output_printf,
12297 line_wrapper_printf): Add ATTRIBUTE_PRINTF_*.
12298 (build_location_prefix): Fix non-literal format string.
12299
12300 2000-01-27 Richard Henderson <rth@cygnus.com>
12301
12302 * alpha.md (trunctfsf2): New.
12303
12304 2000-01-27 Andrew Hobson <ahobson@eng.mindspring.net>
12305
12306 * configure.in (alpha-dec-osf5): Enable MASK_SUPPORT_ARCH.
12307
12308 2000-01-27 Zack Weinberg <zack@wolery.cumb.org>
12309
12310 * cppinit.c (cpp_handle_option): Recognize C++ comments under
12311 -std=gnu89.
12312 * cpplib.c (skip_block_comment, skip_line_comment): Split code
12313 out of...
12314 (skip_comment) ... here. Permit C++ comments in system
12315 headers always. Warn about C++ comments in user code under
12316 -std=gnu89 -pedantic.
12317 (copy_comment): Use skip_comment.
12318 (cpp_skip_hspace, cpp_get_token): skip_comment can no longer
12319 return EOF.
12320 (consider_directive_while_skipping, do_else, do_endif): Call
12321 validate_else unconditionally.
12322 (validate_else): Check CPP_PEDANTIC here. Accept non-comment
12323 text after the conditional in a system header.
12324 * cpplib.h (struct cpp_buffer): Add flag
12325 warned_cplusplus_comments.
12326
12327 2000-01-27 Geoffrey Keating <geoffk@cygnus.com>
12328
12329 * emit-rtl.c (unshare_all_rtl): Unshare virtual parameters too.
12330 Use unshare_all_rtl_1.
12331 (unshare_all_rtl_again): New function.
12332 (unshare_all_rtl_1): New function split out of unshare_all_rtl.
12333
12334 * function.c (purge_addressof_1): Use unshare_all_rtl_again
12335 rather than resetting the 'used' flags ourself.
12336
12337 * toplev.c (rest_of_compilation): Add current_function_decl
12338 to the unshare_all_rtl call.
12339 * tree.h: Prototype unshare_all_rtl.
12340 * rtl.h: Prototype unshare_all_rtl_again here.
12341
12342 2000-01-27 Geoffrey Keating <geoffk@cygnus.com>
12343
12344 * genoutput.c (output_prologue): Include ggc.h in generated
12345 files.
12346 * Makefile.in (insn-output.o): Depends on ggc.h.
12347
12348 2000-01-27 Ian Dall <ian@sibyl.beware.dropbear.id.au>
12349 Hans-Peter Nilsson <hp@bitrange.com>
12350
12351 * ns32k/xm-ns32k.h (memcpy, memset, memcmp): Delete.
12352 Remove redundant include of xm-ns32k.h.
12353 * ns32k/xm-genix.h (memcpy, memset, memcmp): Add definitions.
12354 Remove redundant include of xm-ns32k.h.
12355 * ns32k/xm-netbsd.h (memcpy, memset, memcmp): No longer undefine.
12356 Remove redundant include of xm-ns32k.h.
12357 * ns32k/netbsd.h (TARGET_DEFAULT): Enable multiply-add instructions.
12358
12359 * ns32k/ns32k.h: Update comment on multiply-add instructions.
12360 (TARGET_SWITCHES): Add documentation strings.
12361 (DWARF_FRAME_REGNUM): Override default definition.
12362 (REG_CLASS_CONTENTS): Add comments.
12363 (SUBSET_P): Format to reduce line length.
12364 (SMALL_REGISTER_CLASSES): Make a run time option.
12365 (GO_IF_NONINDEXED_ADDRESS): Reformat.
12366 (GO_IF_LEGITIMATE_ADDRESS): Ensure that cfun is non NULL before
12367 dereferencing it. Braces to avoid "ambiguous else" were misplaced.
12368 (regclass_map): fix typo in comment.
12369 * ns32k/ns32k.c: Add spaces before parentheses for consistant style.
12370 Prefer gen_rtx_FOO(...) to gen_rtx(FOO,...).
12371 (trace, reg_or_mem_operand): Delete, unused function.
12372 (calc_address_cost): Small offsets are cheaper than large ones.
12373 (expand_block_move): Generate more efficient code when bytes is a
12374 known at compile time.
12375 * ns32k/ns32k.md: Alternate constraints for multiply-add instructions.
12376 (udivmodsi4, udivmodhi4, udivmodqi4): Use nonimmediate_operand
12377 instead of reg_or_mem_operand.
12378
12379 * ns32k/ns32k.md: Use nonimmediate_operand or stricter for outputs,
12380 not general_operand. Similarly use "=rm" or stricter, not "=g".
12381 For input operands, use stricter constraints than "g" if not
12382 general_operand. Similarly use stricter predicate than
12383 "general_operand" when stricter constraints than "g" are present,
12384 except for matching constraints.
12385 (movstrsi): Use "memory_operand" for operands 0 and 1.
12386 (truncsiqi2, truncsihi2, trunchiqi2): Remove.
12387 (udivmoddisi4_internal): Use nonimmediate_operand for operand 0,
12388 not reg_or_mem_operand.
12389 (udivmoddisi4): Ditto.
12390 Use nonimmediate_operand for operand 1, not reg_or_mem_operand.
12391 Use nonimmediate_operand for operand 3, not register_operand.
12392 (udivmoddiqi4_internal): Use register_operand for operand 1, not
12393 reg_or_mem_operand.
12394
12395 2000-01-27 Fred Fish <fnf@be.com>
12396
12397 * gthr-posix.h: Fix typo; compatibily -> compatibility.
12398 * gthr-single.h: Likewise.
12399 * gthr-solaris.h: Likewise.
12400 * gthr-vxworks.h: Likewise.
12401 * gthr-win32.h: Likewise.
12402 * gthr.h: Likewise.
12403
12404 2000-01-27 Zack Weinberg <zack@wolery.cumb.org>
12405
12406 * cppinit.c: Add " (cpplib)" to end of string printed by
12407 -v / --version.
12408
12409 2000-01-27 Richard Henderson <rth@cygnus.com>
12410
12411 * alpha.c (alpha_emit_conditional_move): Use VOIDmode when
12412 testing for a signed comparison.
12413 (alpha_emit_floatuns): New.
12414 * alpha-protos.h: Declare it.
12415 * alpha.md (floatunsdisf2, floatunsdidf2): New.
12416 (extendsfdf2): Tidy.
12417
12418 2000-01-27 Jakub Jelinek <jakub@redhat.com>
12419
12420 * config/sparc/linux64.h (CC1_SPEC): If compiling -m32 with -g but
12421 no -g option specifying debugging format, default to -gstabs+.
12422
12423 Wed Jan 26 22:19:14 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
12424
12425 * calls.c (special_function_p): New argument fork_or_exec.
12426 (expand_call): When profile_arc_flag is set and the function
12427 is in the fork_or_exec group, call __bb_fork_func first.
12428 * libgcc2.c, _bb module (__bb_fork_func): New function.
12429 (__bb_exit_func): If fcntl F_SETLKW is available, use it to lock
12430 output file.
12431 * config/svr4.h (TARGET_HAS_F_SETLKW): Define.
12432 * tree.h (special_function_p): Update prototype.
12433
12434 2000-01-26 Richard Henderson <rth@cygnus.com>
12435
12436 * alpha.c (alpha_split_tfmode_pair): New.
12437 * alpha-protos.h: Declare it.
12438 * alpha.md (abstf2, negtf2): New.
12439 (movtf insn): Add input G constraint.
12440 (movtf splitter): Use alpha_split_tfmode_pair.
12441
12442 2000-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12443
12444 * i386/cygwin.h: PROTO -> PARAMS.
12445
12446 2000-01-26 Jakub Jelinek <jakub@redhat.com>
12447
12448 * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Handle
12449 TARGET_ARCH32 again. Handle ORDERED, UN* and LTGT comparisons
12450 using _Qp_cmp/_Q_cmp and testing the return value.
12451 (print_operand): Call reverse_condition_maybe_unordered if
12452 we are handling CCFPmode or CCFPEmode.
12453 Handle ORDERED, UN* and LTGT comparisons.
12454 * config/sparc/sparc.md (cmptf): Use even on TARGET_ARCH32
12455 if not TARGET_HARD_QUAD.
12456 (seq, sne, sgt, slt, sge, sle, beq, bne, bgt, blt, bge, ble,
12457 bunordered, bordered, bungt, bunlt, buneq, bunge, bunle, bltgt):
12458 Call sparc_emit_float_lib_cmp even on TARGET_ARCH32.
12459 Adjust gen_b* calls so that they reflect return comparison of
12460 sparc_emit_float_lib_cmp.
12461
12462 2000-01-26 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
12463
12464 * config/alpha/alpha.c (alpha_emit_xfloating_cvt): Do not assume
12465 incoming operands array is large enough for one more operand.
12466 (alpha_emit_xfloating_arith): Likewise.
12467
12468 2000-01-25 Zack Weinberg <zack@wolery.cumb.org>
12469
12470 * fixinc/Makefile.in (machname.h): SunOS 4 sed can't handle a
12471 file with one line and no trailing newline.
12472 Patch by Kaveh Ghazi <ghazi@caip.rutgers.edu>.
12473 * fixinc/fixtests.c (machine_name_test): Fix fencepost error
12474 checking if the match is on the line.
12475 * fixinc/gnu-regex.c: Provide regerror not __regerror.
12476
12477 2000-01-25 Richard Henderson <rth@cygnus.com>
12478
12479 * sparc.c (output_cbranch): Fix accidental squashing of the
12480 fp branch pre-delay nop.
12481
12482 2000-01-25 Richard Henderson <rth@cygnus.com>
12483
12484 * tree.def (UNNE_EXPR): Remove.
12485 * c-typeck.c (build_binary_op): Don't handle it.
12486 * expr.c (expand_expr, do_jump, do_store_flag): Likewise.
12487
12488 * rtl.def (UNNE): Remove.
12489 (LTGT): Add.
12490 * jump.c (reverse_condition): Update accordingly.
12491 (swap_condition): Likewise.
12492 (comparison_dominates_p): Handle unordered comparisons.
12493 (reverse_condition_maybe_unordered): New.
12494 * rtl.h (reverse_condition_maybe_unordered): Declare.
12495
12496 * sparc.c (select_cc_mode): Update for UNNE/LTGT.
12497 (output_cbranch): Use reverse_condition_maybe_unordered and LTGT.
12498 * sparc.h (REVERSIBLE_CC_MODE): Always true. Update docs.
12499 * sparc.md (bltgt): New.
12500
12501 2000-01-25 Nick Clifton <nickc@redhat.com>
12502
12503 * emit-rtl.c (emit_insn): Only check machine class insns for
12504 improper emission of a RETURN.
12505
12506 2000-01-25 Richard Henderson <rth@cygnus.com>
12507
12508 * Makefile.in (flow.o): Depend on $(EXPR_H).
12509 * flow.c (mark_regs_live_at_end): Use hard_function_value, i.e.
12510 duplicate the structure of diddle_return_value for keeping regs live.
12511
12512 2000-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12513
12514 * loop.c (current_loop_info): Delete.
12515 (consec_sets_invariant_p): Add loop argument, update callers.
12516 (get_condition_for_loop): Likewise.
12517 (count_nonfixed_reads, update_giv_derive): Likewise.
12518 (simplify_giv_expr, general_induction_var): Likewise.
12519 (consec_sets_giv, recombine_givs): Likewise.
12520 (move_movables): Delete loop_start and loop_end arguments,
12521 add loop argument, and update callers.
12522 (find_mem_givs, check_final_value): Likewise.
12523 (record_giv, maybe_eliminate_biv, maybe_eliminate_biv_1): Likewise.
12524 (loop_invariant_p): Rename from invariant_p, add loop argument, and
12525 update callers.
12526 (basic_induction_var): Add loop argument, delete loop_level argument,
12527 and update callers.
12528 * unroll.c (iteration_info): Delete loop_start and loop_end arguments,
12529 add loop argument, and update callers.
12530 (find_splittable_regs, find_splittable_givs): Likewise.
12531 (reg_dead_after_loop, loop_find_equiv_value): Likewise.
12532 (final_biv_value, final_giv_value, back_branch_in_range_p): Likewise.
12533 (biv_total_increment): Delete loop_start and loop_end arguments;
12534 update callers.
12535 (precondition_loop_p): Delete loop_start and loop_info arguments;
12536 update callers.
12537 * loop.h (get_condition_for_loop): Add loop argument.
12538 (biv_total_increment): Delete loop_start and loop_end arguments.
12539 (precondition_loop_p): Delete loop_start and loop_info arguments;
12540 add loop argument.
12541 (final_biv_value): Delete loop_start and loop_end arguments;
12542 add loop argument.
12543 (final_giv_value, back_branch_in_range_p): Likewise.
12544
12545 2000-01-25 Gavin Romig-Koch <gavin@cygnus.com>
12546
12547 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Fix for mips16.
12548
12549 2000-01-25 Gavin Romig-Koch <gavin@cygnus.com>
12550
12551 * Makefile.in (c-gperf.h) : Change the "See" pointer to
12552 point to the new "generated_files" doc.
12553
12554 2000-01-25 Clinton Popetz <cpopetz@cygnus.com>
12555
12556 * config/fp-bit.c (_unord_f2): Fix typo.
12557
12558 2000-01-25 Zack Weinberg <zack@wolery.cumb.org>
12559
12560 * c-common.c, c-decl.c, c-lang.c, c-lex.c, c-parse.in, c-pragma.c,
12561 c-typeck.c, objc/objc-act.c: Remove all references to obstack
12562 functions obsoleted by GC, such as push_obstacks_nochange,
12563 end_temporary_allocation, savealloc, saveable_tree_cons, etc.
12564 and code which existed only to decide whether or not to call
12565 them. Remove now-unused NESTED argument from start_function;
12566 all callers changed. Do not change behavior based on ggc_p.
12567 The use of the ixp_obstack in c-iterate.c and the util_obstack
12568 in objc/objc-act.c remain; these are not obsoleted by garbage
12569 collection.
12570 * c-tree.h: Update prototype for start_function.
12571
12572 * c-parse.y, c-parse.c, objc/objc-parse.c, objc/objc-parse.y: Rebuild.
12573
12574 2000-01-25 Clinton Popetz <cpopetz@cygnus.com>
12575
12576 * config/mips/mips.md (zero_extendsidi2_internal): Disable for
12577 mips16.
12578
12579 2000-01-25 Richard Henderson <rth@cygnus.com>
12580
12581 * sparc-protos.h (select_cc_mode): Declare.
12582 * sparc.c (select_cc_mode): New. Handle unordered compares.
12583 (output_cbranch): Always reverse via code change. Handle
12584 unordered compares. Factor tests and string updates.
12585 * sparc.h (SELECT_CC_MODE): Split out to select_cc_mode.
12586 (REVERSIBLE_CC_MODE): Also exclude CCFPmode.
12587 * sparc.md (bunordered, bordered): New.
12588 (bungt, bunlt, buneq, bunge, bunle): New.
12589
12590 2000-01-25 Richard Henderson <rth@cygnus.com>
12591
12592 * dwarf2out.c (dwarf2out_init): Use ggc_add_rtx_varray_root.
12593 * ggc-common.c (ggc_add_rtx_varray_root): New.
12594 (ggc_mark_rtx_varray): New.
12595 (ggc_mark_rtx_varray_ptr): New. Shift all ggc_mark_foo_ptr
12596 functions down below ggc_mark_foo.
12597 * ggc.h (ggc_add_rtx_varray_root, ggc_mark_rtx_varray): Declare.
12598
12599 2000-01-25 Richard Henderson <rth@cygnus.com>
12600
12601 * alpha.c (secondary_reload_class): Don't allocate a secondary
12602 for integral mode memories into FLOAT_REGS. Rearrange the more
12603 complicated memory expression inward.
12604
12605 2000-01-25 Zack Weinberg <zack@wolery.cumb.org>
12606
12607 * inclhack.def: Fixes to play nicer with FreeBSD, and
12608 corrections to comments.
12609 (cxx_unready): Add select expression.
12610 (irix_sockaddr): Add bypass expression.
12611 (machine_ansi_h_va_list): New fix.
12612 (stdio_va_list): No need to edit _BSD_VA_LIST_.
12613 Split out addition of "#include <stdarg.h>" to...
12614 (stdio_stdarg_h): ... here.
12615 (systypes_for_aix): Rename to systypes_stdlib_size_t. Apply
12616 to stdlib.h also. Do not munge _BSD_SIZE_T_.
12617 (sysz_stdlib_for_sun): Delete duplicate fix for unprotected
12618 size_t.
12619 (ultrix_ifdef): Tighten up select expression.
12620
12621 * fixincl.tpl: Exorcise 'exesel'. Rewrite calculations of
12622 re_ct and max_mach to avoid use of shell. Make printed names
12623 match names in inclhack.def. Use static copyright date.
12624 Don't count c_test and test expressions as requiring regex_t
12625 slots. Add some commentary.
12626 * inclhack.tpl: Do not include the 'This script contains N
12627 fixup scripts' line if PROGRAM is defined. Use static
12628 copyright date.
12629
12630 2000-01-24 Jason Merrill <jason@casey.cygnus.com>
12631
12632 * dwarf2out.c: include "varray.h", not dyn-string.h.
12633 (ASM_OUTPUT_DWARF2_ADDR_CONST, ASM_NAME_TO_STRING): Lose.
12634 (addr_const_to_string, addr_to_string): Lose.
12635 (ASM_OUTPUT_DWARF_ADDR_CONST): Copy from dwarfout.c.
12636 (struct dw_val_struct): val_addr is now an rtx.
12637 (add_AT_addr, AT_addr, free_AT, output_aranges): Adjust.
12638 (used_rtx_varray): New varray.
12639 (dwarf2out_init): Initialize it.
12640 (save_rtx): New fn.
12641 (mem_loc_descriptor, add_const_value_attribute): Call it instead of
12642 addr_to_string.
12643 * arm/telf.h, arm/unknown-elf.h, mn10200.h, mn10300.h,
12644 sparc/sp64-elf.h: Remove definition of ASM_OUTPUT_DWARF2_ADDR_CONST.
12645 * Makefile.in (dwarf2out.o): Update dependencies.
12646
12647 2000-01-24 Richard Henderson <rth@cygnus.com>
12648
12649 * i386.c (i386_dwarf_output_addr_const): New.
12650 * i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): New.
12651
12652 * dwarf2out.c (mem_loc_descriptor): Call ASM_SIMPLIFY_DWARF_ADDR
12653 if defined.
12654 * dwarfout.c (output_mem_loc_descriptor): Likewise.
12655 * i386.c (i386_simplify_dwarf_addr): New.
12656 * i386.h (ASM_SIMPLIFY_DWARF_ADDR): New.
12657
12658 Mon Jan 24 16:56:10 2000 Jim Wilson <wilson@cygnus.com>
12659
12660 * dwarf2out.c (gen_struct_or_union_type_die): Set complete if
12661 TYPE_STUB_DECL is NULL.
12662
12663 2000-01-24 Richard Henderson <rth@cygnus.com>
12664
12665 * builtins.c (expand_tree_builtin): Move ...
12666 * c-common.c (expand_tree_builtin): ... here.
12667
12668 2000-01-25 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12669
12670 * loop.h (LOOP_INFO): New accessor macro.
12671 * basic-block.h (struct loop): Rename field `info' to `aux'.
12672 * loop.c (scan_loop): Replace loop->info with LOOP_INFO (loop).
12673 (prescan_loop, strength_reduce, check_dbra_loop, insert_bct): Likewise.
12674 * unroll.c (loop_iterations, unroll_loop): Likewise.
12675
12676 2000-01-24 Christopher Faylor <cgf@cygnus.com>
12677
12678 * config/i386/t-cygwin: Accomodate new winsup directory layout
12679 when searching for include files.
12680
12681 2000-01-24 Richard Henderson <rth@cygnus.com>
12682
12683 * rtl.def: Add unordered fp comparisions.
12684 * tree.def: Likewise.
12685 * tree.h: Add ISO C 9x unordered fp comparision builtins.
12686
12687 * builtins.c (expand_tree_builtin): New function.
12688 * c-typeck.c (build_function_call): Use it.
12689 (build_binary_op): Support unordered compares.
12690 * c-common.c (c_common_nodes_and_builtins): Add unordered compares.
12691
12692 * combine.c (known_cond): Handle reverse_condition returning UNKNOWN.
12693 (reversible_comparison_p): Allow UNORDERED/ORDERED to be reversed.
12694 * cse.c (fold_rtx): Check FLOAT_MODE_P before reversing.
12695 (record_jump_equiv): Handle reverse_condition returning UNKNOWN.
12696 * jump.c (reverse_condition): Don't abort for UNLE etc, but
12697 return UNKNOWN.
12698 (swap_condition): Handle unordered compares.
12699 (thread_jumps): Check can_reverse before reversing.
12700 * loop.c (get_condition): Likewise. Allow UNORERED/ORDERED to be
12701 reversed for FP.
12702
12703 * optabs.c (can_compare_p): New argument CODE. Verify branch or
12704 setcc is present before acking for cmp_optab. Update all callers.
12705 (prepare_float_lib_cmp, init_optabs): Handle UNORDERED.
12706 * expmed.c (do_cmp_and_jump): Update for can_compare_p.
12707 * expr.c (expand_expr): Likewise. Support unordered compares.
12708 (do_jump, do_store_flag): Likewise.
12709 * expr.h (enum libfunc_index): Add unordered compares.
12710
12711 * Makefile.in (FPBIT_FUNCS): Add _unord_sf.
12712 (DPBIT_FUNCS): Add _unord_df.
12713 * config/fp-bit.c (_unord_f2): New.
12714 * fp-test.c (main): Try unordered compare builtins.
12715
12716 * alpha-protos.h (alpha_fp_comparison_operator): Declare.
12717 * alpha.c (alpha_comparison_operator): Check mode properly.
12718 (alpha_swapped_comparison_operator): Likewise.
12719 (signed_comparison_operator): Likewise.
12720 (alpha_fp_comparison_operator): New.
12721 (alpha_emit_conditional_branch): Handle unordered compares.
12722 * alpha.h (PREDICATE_CODES): Update.
12723 * alpha.md (fp compares): Use alpha_fp_comparison_operator.
12724 (bunordered, bordered): New.
12725
12726 2000-01-24 Richard Henderson <rth@cygnus.com>
12727
12728 * alpha.c (alpha_emit_xfloating_cvt): Thinko in operand manipulation.
12729 * alpha.md (movtf): New expander, insn, and splitter.
12730
12731 Mon Jan 24 19:49:47 MET 2000 Jan Hubicka <jh@suse.cz>
12732
12733 * reg-stack.c (subst_stack_regs_pat): Handle correctly USEs of
12734 dead registers.
12735
12736 Mon Jan 24 17:37:31 MET 2000 Jan Hubicka <jh@suse.cz>
12737
12738 * i386.h (FIRST_PSEUDO_REGISTER): Set to 21.
12739 (FIXED_REGISTERS, CALL_USED_REGISTERS,
12740 REG_ALLOC_ORDER): Add frame pointer
12741 (FRAME_POINTER_REGNUM): Set to 20
12742 (HARD_FRAME_POINTER_REGNUM): New macro.
12743 (ELIMINABLE_REGS): Eliminate ARG_POINTER and FRAME_POINTER
12744 to HARD_FRAME_POINTER.
12745 (REGNO_OK_FOR_BASE_P): Accept FRAME_POINTER_REGNUM
12746 (REG_OK_FOR_INDEX_NONSTRICT_P): Likewise.
12747 (REG_OK_FOR_BASE_NONSTRICT_P): Likewise.
12748 (HI_REGISTER_NAMES): Add "frame".
12749 (CAN_ELIMINATE): Handle FRAME_POINTER_REGNUM elimination.
12750 (debug_reg): Handle FRAME_POINTER_REGNUM.
12751 (reg_class): Add arg pointer and frame pointer to NON_Q_REGS,
12752 GENERAL_REGS and INDEX_REGS.
12753 * i386.c (SAVED_REGS_FIRST): new macro.
12754 (AT_BP): Use hard_frame_pointer_rtx instead of frame_pointer_rtx
12755 (ix86_decompose_address, memory_address_length): Likewise.
12756 (regclass_map): Add frame pointer.
12757 (call_insn_operand): Handle frame_pointer_rtx.
12758 (reg_no_sp_operand): Likewise.
12759 (ix86_decompose_address): Handle frame_pointer_rtx as stack_pointer_rtx.
12760 (print_operand, legitimize_pic_address): Fix formating.
12761 (ix86_compute_frame_size): Make static, update prototype, new
12762 parameters padding1, padding2, use ix86_nsaved_regs, use
12763 stack_alignment_needed.
12764 (ix86_initial_elimination_offset): Handle FRAME_POINTER_REGNUM
12765 to HARD_FRAME_POINTER_REGNUM conversions.
12766 (ix86_expand_prologue): Handle SAVED_REGS_FIRST prologues.
12767 (ix86_expand_epilogue): Handle SAVED_REGS_FIRST epilogues.
12768 (print_reg): Abort on FRAME_POINTER_REGNUM
12769
12770 Mon Jan 24 16:50:08 MET 2000 Jan Hubicka <jh@suse.cz>
12771
12772 * i386.h (PREDICATE_CODES): Add aligned_operand.
12773 * i386.c (aligned_operand): New function.
12774 (ix86_aligned_p): Kill.
12775 * i386.md (movhi_1): Emit mov for aligned operands.
12776 (promoting peep2s): Use aligned_operand.
12777
12778 2000-01-23 Zack Weinberg <zack@wolery.cumb.org>
12779
12780 * fixinc/fixfixes.c (fix_char_macro_uses): Correct regular
12781 expression to allow underscores in macro names.
12782 (fix_char_macro_defines): Increment scanning pointer.
12783
12784 2000-01-23 Richard Henderson <rth@cygnus.com>
12785
12786 * alpha/osf.h (TARGET_HAS_XFLOATING_LIBS): Define.
12787 * alpha/osf5.h: New file.
12788 * configure.in (alpha-*-osf5): Add it to tm_file.
12789
12790 * emit-rtl.c (operand_subword): Support TFmode on a 64-bit target.
12791
12792 * alpha-protos.h (alpha_emit_xfloating_arith): Declare.
12793 (alpha_emit_xfloating_cvt, function_arg): Declare.
12794 * alpha.c (alpha_emit_conditional_branch): Call
12795 alpha_emit_xfloating_compare for TFmode compares.
12796 (alpha_lookup_xfloating_lib_func): New.
12797 (alpha_compute_xfloating_mode_arg): New.
12798 (alpha_emit_xfloating_libcall): New.
12799 (alpha_emit_xfloating_arith): New.
12800 (alpha_emit_xfloating_compare): New.
12801 (alpha_emit_xfloating_cvt): New.
12802 (print_operand): Add default abort case.
12803 (function_arg): Mind FUNCTION_ARG_PASS_BY_REFERENCE.
12804 * alpha.h (TARGET_HAS_XFLOATING_LIBS): New.
12805 (BIGGEST_ALIGNMENT): Increase to 128 bits.
12806 (RETURN_IN_MEMORY): True for TF/TCmode.
12807 (ALPHA_ARG_SIZE): TF/TCmode is passed indirect.
12808 (FUNCTION_ARG): Move to function_arg.
12809 (FUNCTION_ARG_PASS_BY_REFERENCE): New.
12810 (ASM_OUTPUT_LONG_DOUBLE): New.
12811 (ASM_OUTPUT_DOUBLE): Always output bits.
12812 * alpha.md (addtf3, divtf3, multf3, subtf3, cmptf): New.
12813 (fix_trunctfdi2, floatditf2, floatunsditf2): New.
12814 (extenddftf2, trunctfdf2): New.
12815
12816 2000-01-23 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
12817
12818 * config/sparc/sol2-sld-64.h (TRANSFER_FROM_TRAMPOLINE): Moved...
12819 * config/sparc/sol2.h: ... here.
12820
12821 2000-01-24 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12822
12823 * basic-block.h (struct loops): New field `levels'.
12824 * flow.c (flow_loops_level_compute): Traverse all outer loops.
12825 (flow_loop_level_compute): Initialise level to 1.
12826 (flow_loops_find): Set loops->levels.
12827 (flow_loops_dump): Print loops->levels.
12828
12829 2000-01-23 Richard Henderson <rth@cygnus.com>
12830
12831 * libgcc2.c (dwarf_reg_size_table): Size with DWARF_FRAME_REGISTERS.
12832 (throw_helper): Iterate over DWARF_FRAME_REGISTERS.
12833
12834 2000-01-23 Richard Henderson <rth@cygnus.com>
12835
12836 * i386.c (dbx_register_map, svr4_dbx_register_map): New.
12837 * i386.h (DBX_REGISTER_NUMBER): Use them.
12838 * i386/beos-elf.h, i386/freebsd-elf.h, i386/i386elf.h: Likewise.
12839 * i386/linux.h, i386/osfrose.h, i386/ptx4-i.h: Likewise.
12840 * i386/rtemself.h, i386/sco5.h, i386/sysv4.h: Likewise.
12841 * i386/sequent.h: Kill incorrect comment.
12842
12843 2000-01-23 Mark Mitchell <mark@codesourcery.com>
12844
12845 * ggc-page.c (struct page_entry): Make `context_depth' an
12846 `unsigned short'.
12847 (struct globals): Likewise.
12848
12849 2000-01-23 Clinton Popetz <cpopetz@cygnus.com>
12850
12851 * loop.c (check_dbra_loop): When checking a loop for
12852 reversability, check the source of any stores to ensure
12853 they don't depend on an initial value.
12854
12855 2000-01-23 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12856
12857 * config/c4x/c4x.h (ASM_OUTPUT_BSS): Redefine.
12858
12859 2000-01-22 Zack Weinberg <zack@wolery.cumb.org>
12860
12861 * fixinc/fixincl.c: Move declarations of 'pz_fname' and
12862 'pz_scan' into scope of entire function. Only affects
12863 compiles with -DDEBUG.
12864
12865 2000-01-22 Alan Modra <alan@SPRI.Levels.UniSA.Edu.Au>
12866
12867 * config/elfos.h (UNIQUE_SECTION): Restore uninitialised data
12868 section naming to that prior to 2000-01-07 patch.
12869 * config/mips/elf.h (UNIQUE_SECTION): Ditto.
12870 * config/mips/elf64.h (UNIQUE_SECTION): Ditto.
12871 * config/mips/iris6gld.h (UNIQUE_SECTION): Ditto.
12872 * config/i386/interix.c (UNIQUE_SECTION): Ditto.
12873 * config/i386/winnt.c (UNIQUE_SECTION): Ditto.
12874
12875 2000-01-22 Bernd Schmidt <bernds@cygnus.co.uk>
12876
12877 * config/arm/arm.c (soft_df_operand): Reject SUBREGs containing a
12878 constant.
12879
12880 2000-01-21 Jim Wilson <wilson@cygnus.com>
12881
12882 * fixinc/inclhack.tpl: Test for directory before trying to cd into it.
12883 * fixinc/fixincl.sh, fixinc/inclhack.sh: Regenerate.
12884
12885 2000-01-21 Zack Weinberg <zack@wolery.cumb.org>
12886
12887 * cpphash.c (change_newlines): Delete function.
12888 (struct argdata): Delete 'newlines' and 'use_count' fields.
12889 (macroexpand): Remove code referencing those fields.
12890
12891 2000-01-22 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12892
12893 * loop.c (loops_info): New variable.
12894 (loop_optimize): Allocate loops->array and free it on exit.
12895 Allocate memory for loops_info and assign to each loop,
12896 replacing alloca.
12897 (find_and_verify_loops): Do not allocate loops->array.
12898
12899 2000-01-21 Zack Weinberg <zack@wolery.cumb.org>
12900
12901 * fixinc/fixfixes.c (machine_name_fix): Don't free 'scratch'.
12902
12903 2000-01-21 Jakub Jelinek <jakub@redhat.com>
12904
12905 * config/sparc/sparc.md (movsi_pic_label_ref): Avoid creating new
12906 pseudos if expanded after first flow.
12907 (movdi_pic_label_ref): Likewise.
12908
12909 2000-01-20 Richard Henderson <rth@cygnus.com>
12910
12911 * jump.c (jump_optimize_1): Don't do addr_vec optimizations at -O0.
12912
12913 2000-01-20 Zack Weinberg <zack@wolery.cumb.org>
12914
12915 * Makefile.in (fixinc.sh): Depend on specs.
12916 * fixinc/Makefile.in: Add rule to create machname.h.
12917 (fixlib.o): Depend on machname.h.
12918 * fixinc/fixtests.c (machine_name): New test.
12919 * fixinc/fixfixes.c (machine_name): New fix.
12920 * fixinc/fixlib.c (mn_get_regexps): New helper function for
12921 the machine_name test and fix.
12922 * fixinc/fixlib.h: Prototype it.
12923 * fixinc/inclhack.def (machine_name): Use the C test and fix.
12924 * fixinc/fixincl.x, fixinc/inclhack.sh: Rebuild.
12925
12926 * gcc.c (do_spec_1) [case P]: Take care not to create
12927 identifiers with three leading or trailing underscores.
12928
12929 * fixinc/Makefile.in (FIXINC_DEFS): Add -DIN_GCC.
12930 (fixincl): Don't specify libraries twice on link line.
12931 (gnu-regex.o): Remove special rule.
12932 * fixinc/gnu-regex.c: Define REGEX_MALLOC if C_ALLOCA was
12933 defined by config.h. Do not define _REGEX_RE_COMP.
12934 (regcomp): Allocate and initialize a fastmap.
12935 * fixinc/gnu-regex.h: Do not define _REGEX_RE_COMP.
12936
12937 2000-01-20 Brad Lucier <lucier@math.purdue.edu>
12938
12939 * Makefile.in (predict.o): Depend on $(EXPR_H), not expr.h.
12940
12941 2000-01-19 Richard Henderson <rth@cygnus.com>
12942
12943 * flow.c (propagate_block): Replace FIRST, LAST and BNUM
12944 arguments with BB. Update all callers. Tidy line wrapping.
12945
12946 2000-01-19 Clinton Popetz <cpopetz@cygnus.com>
12947
12948 * emit-rtl.c (try_split): Return last_insn if we split the
12949 last_insn.
12950
12951 Thu Jan 20 01:01:23 MET 2000 Jan Hubicka <jh@suse.cz>
12952
12953 * i386-protos.h (ix86_compute_frame_size): Remove prototype.
12954 (ix86_initial_elimination_offset): Declare.
12955 * i386.c (ix86_nsaved_regs): Break out from ...
12956 (ix86_can_use_return_insn_p): ... here.
12957 (ix86_emit_save_regs): Break out from ...
12958 (ix86_expand_prologue): ... here.
12959 (ix86_emit_epilogue_esp_adjustment, ix86_emit_restore_regs): Break
12960 out from ...
12961 (ix86_expand_epilogue): ... here.
12962 (ix86_compute_frame_size): Make static, add prototype.
12963 (ix86_initial_elimination_offset): Break out from ...
12964 * i386.h (INITIAL_ELIMINATION_OFFSET): ... here.
12965
12966 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12967
12968 * recog.h (OUT_FCN): Delete.
12969
12970 * vax.md: Call `get_insn_template' instead of OUT_FCN.
12971
12972 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12973
12974 * cppalloc.c: PROTO -> PARAMS.
12975 * cpperror.c: Likewise.
12976 * cppfiles.c: Likewise.
12977 * cpplib.c: Likewise.
12978 * cpplib.h: Likewise.
12979
12980 * config/arm/arm-protos.h: PROTO -> PARAMS.
12981 * config/arm/arm.c: Likewise.
12982 * config/c4x/c4x.c: Likewise.
12983 * config/fr30/fr30-protos.h: Likewise.
12984 * config/nextstep.c: Likewise.
12985 * config/pa/pa.c: Likewise.
12986 * config/pj/pj.c: Likewise.
12987 * config/rs6000/rs6000.c: Likewise.
12988 * config/v850/v850-protos.h: Likewise.
12989 * config/v850/v850.c: Likewise.
12990
12991 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12992
12993 * i370-protos.h: New file.
12994
12995 * i370.c: Include tm_p.h. Fix compile time warnings.
12996
12997 * i370.h: Move prototypes to i370-protos.h. Fix compile time
12998 warnings.
12999
13000 * i370.md: Likewise.
13001
13002 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13003
13004 * real.c (enan, einan, eiisnan, eiisneg, make_nan): Wrap in NANS.
13005 (target_isinf, target_isnan, eisnan): Mark parameter with
13006 ATTRIBUTE_UNUSED.
13007 (eiisinf): Wrap in INFINITY.
13008 (etoe113, etoe64, etoe53, etoe24): Wrap label `nonorm' in INFINITY.
13009 (ibmtoe): Remove unused variable `rndsav'.
13010
13011 Wed Jan 19 20:23:06 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13012
13013 * sh.h (PASS_IN_REG_P): Remove extraneous paranthesis.
13014 (GO_IF_LEGITIMATE_ADDRESS): Added missing tab.
13015
13016 2000-01-19 Zack Weinberg <zack@wolery.cumb.org>
13017
13018 * fixinc/Makefile.in: Correct dependencies of fixincl and fixincl.o.
13019 * fixinc/fixfixes.c (IO_use, CTRL_use, IO_defn, CTRL_defn): New fixes.
13020 (fix_char_macro_defines, fix_char_macro_uses): New functions.
13021
13022 * fixinc/fixlib.c (is_cxx_header): Do the text scan with a regexp.
13023 Recognize Emacs mode markers also.
13024 * fixinc/fixtests.c (else_endif_label): Fix bug in recognition of
13025 C++ comments in C++ headers. Call is_cxx_header only if
13026 necessary.
13027
13028 * fixinc/inclhack.def (avoid_bool): Add select for the problem and
13029 bypass for ncurses.
13030 (bsd43_io_macros, io_def_quotes, ioctl_fix_ctrl): Replace with...
13031 (io_def_quotes, io_use_quotes, ctrl_def_quotes, ctrl_use_quotes):
13032 ... these, which use the new C fixes.
13033 (math_exception): Escape literal '+' in bypass expression.
13034
13035 * fixinc/fixincl.x, fixinc/fixincl.sh, fixinc/inclhack.sh:
13036 Regenerate.
13037
13038 2000-01-19 Geoff Keating <geoffk@cygnus.com>
13039
13040 * rtlanal.c (reg_referenced_p): A CLOBBER of a MEM uses any REGs
13041 inside the MEM.
13042
13043 2000-01-20 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13044
13045 * loop.c (loop_optimize): Allocate loop_info structure for each loop
13046 prior to calling scan_loop.
13047
13048 Wed Jan 19 19:54:38 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13049
13050 * sh.c (find_barrier, gen_block_redirect): Fix indentation.
13051 (split_branches, calc_live_regs): Likewise.
13052
13053 Wed Jan 19 19:12:36 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13054
13055 * sh.md (fpu_single, fp_mode): New attributes.
13056
13057 2000-01-20 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13058
13059 * loop.c (current_loop_info): Renamed from loop_info_data
13060 and changed to a pointer.
13061 (loop_optimize): Allocate loop_info structure for each loop
13062 and initialise to zero.
13063 (scan_loop): Set current_loop_info.
13064
13065 * unroll.c (loop_iterations): Don't abort if REG_USERVAR_P set
13066 on iteration_var.
13067
13068 2000-01-19 Richard Henderson <rth@cygnus.com>
13069
13070 * stupid.c: Die die die.
13071 * Makefile.in (OBJS): Remove stupid.o.
13072 (stupid.o): Likewise.
13073
13074 * except.c (emit_eh_context): Don't emit USEs for stupid.
13075 * explow.c (probe_stack_range): Likewise.
13076 * flags.h (obey_regdecls): Remove.
13077 * flow.c (find_basic_blocks): Don't run try_merge_blocks
13078 when not optimizing.
13079 (life_analysis): Limit data collection when not optimizing.
13080 (mark_regs_live_at_end): Always mark the return value registers.
13081 (mark_used_regs): Remove dummy RETURN case.
13082 (print_rtl_with_bb): Don't consult obey_regdecls.
13083 * function.c (use_variable, use_variable_after): Remove.
13084 (assign_parms): Consult optimize not obey_regdecls.
13085 (expand_function_start): Don't emit USEs for stupid.
13086 (expand_function_end): Likewise.
13087 * global.c (build_insn_chain): Export.
13088 * integrate.c (expand_inline_function): Kill return-value USE
13089 handling code.
13090 * jump.c (jump_optimize_1): Do simple jump optimizations and
13091 dead code elimination.
13092 (calculate_can_reach_end): Remove check_deleted argument.
13093 (delete_insn): Patch out insns even when not optimizing.
13094 * local-alloc.c (block_alloc): Don't do tying when not optimizing.
13095 * rtl.h (use_variable, use_variable_after): Remove declarations.
13096 (build_insn_chain): Declare.
13097 * stmt.c (expand_value_return): Don't emit USEs for stupid.
13098 (expand_end_bindings): Likewise.
13099 (expand_decl): Likewise. Consult optimize not obey_regdecls.
13100 * toplev.c (obey_regdecls): Remove.
13101 (rest_of_compilation): Don't set it. Kill stupid in favour of
13102 flow1, local-alloc, and reload.
13103 (main): Don't set obey_regdecls.
13104
13105 * config/nextstep.c (handle_pragma): Likewise.
13106
13107 * alpha/alpha.md (allocate_stack): Don't emit USEs for stupid.
13108
13109 * arm/arm.h (CONDITIONAL_REGISTER_USAGE): Don't fix reg 0 for stupid.
13110
13111 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13112
13113 * alpha-protos.h: PROTO -> PARAMS.
13114 * alpha.c: Likewise.
13115 * elf.h: Likewise.
13116 * h8300.c: Likewise.
13117 * i386-protos.h: Likewise.
13118 * i386.c: Likewise.
13119 * m32r-protos.h: Likewise.
13120 * m32r.c: Likewise.
13121 * mips.c: Likewise.
13122 * mips.md: Likewise.
13123 * gmon-sol2.c: Likewise.
13124 * sparc.c: Likewise.
13125
13126 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13127
13128 * ns32k-protos.h: New file.
13129
13130 * ns32k.c: Fix compile time warnings.
13131
13132 * ns32k.h: Move prototypes to ns32k-protos.h. Fix compile time
13133 warnings.
13134
13135 * ns32k.md: Likewise.
13136
13137 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13138
13139 * vax-protos.h: New file.
13140
13141 * vax.c: Fix compile time warnings.
13142
13143 * vax.h: Move prototypes to vax-protos.h. Fix compile time
13144 warnings.
13145
13146 * vax.md: Likewise.
13147
13148 * vaxv.md: Likewise.
13149
13150 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13151
13152 * romp-protos.h: New file.
13153
13154 * romp.c: Fix compile time warnings.
13155
13156 * romp.h: Move prototypes to romp-protos.h. Fix compile time
13157 warnings.
13158
13159 * romp.md: Likewise.
13160
13161 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13162
13163 * we32k-protos.h: New file.
13164
13165 * we32k.c: Fix compile time warnings.
13166
13167 * we32k.h: Move prototypes to we32k-protos.h. Fix compile time
13168 warnings.
13169
13170 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13171
13172 * calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
13173
13174 * except.c (eh_regs): Likewise.
13175
13176 * final.c (output_operand): Likewise.
13177
13178 * fold-const.c (target_isinf, target_isnan): Likewise.
13179
13180 Tue Jan 18 16:19:55 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
13181
13182 * i386.h (BIGGEST_ALIGNMENT): Set to 128.
13183 (BIGGEST_FIELD_ALIGNMENT): Set to (TARGET_ALIGN_DOUBLE ? 64 : 32)
13184
13185 * i386.md (memstr): Do not use rep stosb for counts divisible by 4
13186 when optimize_size.
13187 (clrstrsi): Rewrite.
13188 (strsethi, strsetqi): New expanders.
13189 (strsethi_1, strsetqi_1, rep_stossi, rep_stosqi): New insn patterns.
13190 (cmpstrsi): Emit compare insn before cmpstrsi_1
13191 (cmpstrsi_nz): use flags, set type to str, prefix_length to 1.
13192 (strlensi_1): Likewise.
13193 (cmpstrsi_1): Likewise; do not output compare.
13194 (strlen expander): Do not unroll when optimizing for size.
13195 (*subsi3_carry): Rename to subsi3_carry
13196 (addqi3_cc): New pattern.
13197 * i386.h (processor_costs): Add move_ratio field.
13198 (MOVE_RATIO): Use move_ratio field, set to 3 for OPTIMIZE_SIZE
13199 * i386.c (*_cost): Set move_ratio.
13200 (x86_unroll_strlen): Enable for Athlon, PPro and K6 too.
13201 (x86_expand_strlensi_1): Rewrite the main loop.
13202
13203 2000-01-17 Richard Henderson <rth@cygnus.com>
13204
13205 * combine.c (combine_simplify_rtx): Give FLOAT_STORE_FLAG_VALUE a mode.
13206 * cse.c (find_comparison_args, fold_rtx): Likewise.
13207 * integrate.c (subst_constants): Likewise.
13208 * loop.c (get_condition): Likewise.
13209
13210 * tm.texi (FLOAT_STORE_FLAG_VALUE): Update docs.
13211
13212 * alpha.h (FLOAT_STORE_FLAG_VALUE): Use REAL_VALUE_ATOF.
13213
13214 2000-01-18 Martin v. Löwis <loewis@informatik.hu-berlin.de>
13215
13216 * c-parse.in (SAVE_WARN_FLAGS): Create an INTEGER_CST.
13217 (RESTORE_WARN_FLAGS): Unpack it.
13218 Change semantic type of extension to ttype.
13219 * c-common.c (split_specs_attrs): Expect an INTEGER_CST.
13220 * c-parse.y, c-parse.c, objc/objc-parse.y,
13221 objc/objc-parse.c: Regenerate.
13222
13223 2000-01-17 Zack Weinberg <zack@wolery.cumb.org>
13224
13225 * fixinc/fixlib.c: Add copyright notice.
13226 (compile_re): New function.
13227 * fixinc/fixlib.h: Prototype compile_re.
13228
13229 * fixinc/fixfixes.c, fixinc/fixtests.c, fixinc/fixincl.c:
13230 Use compile_re to compile regular expressions.
13231
13232 * fixinc/fixincl.c (egrep_test): Don't bother asking regexec
13233 where the pattern matched.
13234
13235 * fixinc/inclhack.def (sun_memcpy): Move to AAB_sun_memcpy,
13236 use 'replace'.
13237 (ultrix_ansi_compat): Likewise.
13238 (interactv_add1): Rename to 'isc_omits_with_stdc', remove shell test,
13239 add egrep test.
13240 (interactv_add2, interactv_add3): Delete.
13241 (x11_sprintf): Don't use filename glob.
13242 * fixinc/fixincl.x, fixinc/inclhack.sh, fixinc/fixincl.sh:
13243 Regenerate.
13244
13245 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13246
13247 * print-rtl.c: PROTO -> PARAMS.
13248 * real.c: Likewise.
13249 * reg-stack.c: Likewise.
13250 * resource.c: Likewise.
13251 * sdbout.h: Likewise.
13252 * simplify-rtx.c: Likewise.
13253 * stor-layout.c: Likewise.
13254 * stupid.c: Likewise.
13255 * xcoffout.c: Likewise.
13256 * xcoffout.h: Likewise.
13257
13258 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13259
13260 * toplev.c: PROTO -> PARAMS.
13261 * toplev.h: Likewise.
13262 * tree.c: Likewise.
13263 * tree.h: Likewise.
13264 * unroll.c: Likewise.
13265 * varasm.c: Likewise.
13266 * varray.c: Likewise.
13267 * varray.h: Likewise.
13268
13269 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13270
13271 * reload.c: PROTO -> PARAMS.
13272 * reload.h: Likewise.
13273 * reload1.c: Likewise.
13274 * reorg.c: Likewise.
13275 * resource.h: Likewise.
13276 * rtl.c: Likewise.
13277 * rtl.h: Likewise.
13278 * rtlanal.c: Likewise.
13279 * sbitmap.h: Likewise.
13280 * sdbout.c: Likewise.
13281 * stack.h: Likewise.
13282 * stmt.c: Likewise.
13283 * system.h: Likewise.
13284
13285 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13286
13287 * machmode.h: PROTO -> PARAMS.
13288 * mbchar.h: Likewise.
13289 * mips-tdump.c: Likewise.
13290 * mips-tfile.c: Likewise.
13291 * optabs.c: Likewise.
13292 * output.h: Likewise.
13293 * prefix.c: Likewise.
13294 * profile.c: Likewise.
13295 * protoize.c: Likewise.
13296 * real.h: Likewise.
13297 * recog.c: Likewise.
13298 * recog.h: Likewise.
13299 * regclass.c: Likewise.
13300 * regmove.c: Likewise.
13301 * regs.h: Likewise.
13302
13303 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13304
13305 * ggc-common.c: PROTO -> PARAMS.
13306 * ggc-page.c: Likewise.
13307 * ggc-simple.c: Likewise.
13308 * ggc.h: Likewise.
13309 * global.c: Likewise.
13310 * graph.c: Likewise.
13311 * gthr-win32.h: Likewise.
13312 * haifa-sched.c: Likewise.
13313 * halfpic.h: Likewise.
13314 * integrate.c: Likewise.
13315 * integrate.h: Likewise.
13316 * jump.c: Likewise.
13317 * lcm.c: Likewise.
13318 * local-alloc.c: Likewise.
13319 * loop.c: Likewise.
13320 * loop.h: Likewise.
13321
13322 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13323
13324 * genattr.c: PROTO -> PARAMS.
13325 * genattrtab.c: Likewise.
13326 * gencheck.c: Likewise.
13327 * gencodes.c: Likewise.
13328 * genconfig.c: Likewise.
13329 * genemit.c: Likewise.
13330 * genextract.c: Likewise.
13331 * genflags.c: Likewise.
13332 * gengenrtl.c: Likewise.
13333 * genopinit.c: Likewise.
13334 * genoutput.c: Likewise.
13335 * genpeep.c: Likewise.
13336 * genrecog.c: Likewise.
13337
13338 2000-01-16 Mark Mitchell <mark@codesourcery.com>
13339
13340 * tree.h (BINFO_VPTR_FIELD): Augment documentation.
13341
13342 2000-01-16 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
13343
13344 * aclocal.m4 (AC_FUNC_MMAP_ZERO): New macro.
13345 * configure.in (AC_FUNC_MMAP_ZERO): Use instead of AC_FUNC_MMAP.
13346 * ggc-page.c: Replace HAVE_MMAP with HAVE_MMAP_ZERO.
13347 * configure, config.in: Rebuilt.
13348
13349 2000-01-16 Zack Weinberg <zack@wolery.cumb.org>
13350
13351 * config/i386/i386.md: Add peephole to merge successive stack
13352 adjusts.
13353
13354 Sat Jan 15 15:41:14 EST 2000 John Wehle (john@feith.com)
13355
13356 * gcse.c (insert_insn_end_bb): Use emit_block_insn_before
13357 instead of emit_insn_before. Also handle NOTE_INSN_BASIC_BLOCK
13358 when walking backwards to find all the parameter loads when
13359 the basic block ends in a call.
13360
13361 2000-01-15 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13362
13363 * loop.c (this_loop_info): Delete.
13364 (uid_loop): Add in place of uid_loop_num. All uses updated.
13365 (loop_number_exit_count): Delete and replace with entry in loop
13366 structure. All uses updated.
13367 (loop_number_loop_starts, loop_number_loop_ends): Likewise.
13368 (loop_number_loop_cont, loop_number_cont_dominator): Likewise.
13369 (loop_outer_loop): Likewise.
13370 (loop_invalid, loop_number_exit_labels): Likewise.
13371 (loop_used_count_register): Delete and replace with entry in
13372 loop_info structure.
13373 (find_and_verify_loops): Add loops argument.
13374 (verify_dominator, mark_loop_jump, prescan_loop): Replace loop_start,
13375 loop_end, etc. arguments with loop structure pointer. All callers
13376 changed.
13377 (loop_reg_used_before_p, scan_loop, strength_reduce): Likewise.
13378 (check_dbra_loop, next_insn_in_loop, try_copy_prop): Likewise.
13379 (load_mems_and_recount_loop_regs_set, load_mems): Likewise.
13380 (insert_bct): Likewise.
13381 (basic_induction_var): New argument level.
13382 * loop.h (struct loop_info): Delete fields num, loops_enclosed,
13383 vtop, and cont. Add used_count_register.
13384 (uid_loop): Delete declaration.
13385 (loop_number_exit_count): Likewise.
13386 (loop_number_loop_starts, loop_number_loop_ends): Likewise.
13387 (loop_number_loop_cont, loop_number_cont_dominator): Likewise.
13388 (loop_outer_loop, loop_used_count_register): Likewise.
13389 (loop_invalid, loop_number_exit_labels): Likewise.
13390 (unroll_loop): Replace loop_start and loop_end arguments
13391 with loop structure pointer.
13392 (loop_precondition_p, loop_iterations): Likewise.
13393 Include basic-block.h.
13394 * unroll.c: (unroll_loop): Replace loop_start and loop_end arguments
13395 with loop structure pointer.
13396 (loop_precondition_p, loop_iterations): Likewise.
13397 * basic-block.h (struct loop): New entries vtop, cont,
13398 cont_dominator, start, end, top, scan_start, exit_labels,
13399 exit_count.
13400 * Makefile.in (LOOP_H): Add basic-block.h to dependencies.
13401
13402 2000-01-15 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13403
13404 * defaults.h (ASM_OUTPUT_ASCII): Use ISDIGIT.
13405
13406 2000-01-14 Nathan Sidwell <sidwell@codesourcery.com>
13407
13408 * config.in: Rebuilt for 2000-01-13 change to acconfig.h.
13409
13410 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13411
13412 * pdp11-protos.h: New file.
13413
13414 * pdp11.c: Include tm_p.h. Add static prototypes. Fix compile
13415 time warnings.
13416
13417 * pdp11.h: Move prototypes to pdp11-protos.h. Fix compile time
13418 warnings.
13419
13420 * pdp11.md: Likewise.
13421
13422 * 2bsd.h: Likewise.
13423
13424 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13425
13426 * mn10300-protos.h: New file.
13427
13428 * mn10300.c: Include tm_p.h. Add static prototypes. Fix compile
13429 time warnings.
13430
13431 * mn10300.h: Move prototypes to mn10300-protos.h. Fix compile time
13432 warnings.
13433
13434 * mn10300.md: Likewise.
13435
13436 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13437
13438 * mn10200-protos.h: New file.
13439
13440 * mn10200.c: Include tm_p.h. Add static prototypes. Fix compile
13441 time warnings.
13442
13443 * mn10200.h: Move prototypes to mn10200-protos.h. Fix compile time
13444 warnings.
13445
13446 * mn10200.md: Likewise.
13447
13448 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13449
13450 * h8300-protos.h: New file.
13451
13452 * h8300.c: Include tm_p.h. Add static prototypes. Fix compile
13453 time warnings.
13454
13455 * h8300.h: Move prototypes to h8300-protos.h. Fix compile time
13456 warnings.
13457
13458 * h8300.md: Likewise.
13459
13460 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13461
13462 * varasm.c (asm_output_bss): Mark parameters with ATTRIBUTE_UNUSED.
13463 (asm_emit_uninitialised): Likewise.
13464
13465 2000-01-13 Gavin Romig-Koch <gavin@cygnus.com>
13466
13467 * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): New.
13468 * config/mips/mips.md: Use ISA_HAS_INT_CONDMOVE.
13469
13470 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
13471
13472 * config/mips/mips.c (override_options): Don't turn on extra
13473 alignment for mips16.
13474
13475 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
13476
13477 * config/mips/mips.c (mips_va_arg): Fix fprv for the 32 bit
13478 eabi, and make sure queued POSTINCREMENT rtl is emitted at
13479 the right point.
13480
13481 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
13482
13483 * builtins.c (PAD_VARARGS_DOWN): Define.
13484 (std_expand_builtin_va_arg): Use the above macro.
13485 * config/mips/mips.h (PAD_VARARGS_DOWN): Define.
13486 * tm.texi (Register Arguments): Document the above macro.
13487
13488 2000-01-14 Nick Clifton <nickc@cygnus.com>
13489
13490 * emit-rtl.c (emit_insn): If checking is enabled, make sure
13491 that this function has not been used to emit a jump
13492 instruction.
13493
13494 * jump.c (return_jump_1): Cope with being passed a null rtx.
13495
13496 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13497
13498 * eh-common.h: PROTO -> PARAMS.
13499 * emit-rtl.c: Likewise.
13500 * errors.c: Likewise.
13501 * errors.h: Likewise.
13502 * except.c: Likewise.
13503 * except.h: Likewise.
13504 * explow.c: Likewise.
13505 * expmed.c: Likewise.
13506 * expr.c: Likewise.
13507 * expr.h: Likewise.
13508 * final.c: Likewise.
13509 * fix-header.c: Likewise.
13510 * flow.c: Likewise.
13511 * fold-const.c: Likewise.
13512 * function.c: Likewise.
13513 * function.h: Likewise.
13514 * gcc.c: Likewise.
13515 * gcov-io.h: Likewise.
13516 * gcov.c: Likewise.
13517 * gcse.c: Likewise.
13518
13519 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13520
13521 * sh-protos.h: New file.
13522
13523 * sh.c: Include insn-config.h, toplev.h, recog.h and tm_p.h.
13524 Add static prototypes. Fix compile time warnings.
13525
13526 * sh.h: Move prototypes to sh-protos.h. Fix compile time warnings.
13527 * sh.md: Likewise.
13528 * elf.h: Likewise.
13529
13530 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13531
13532 * arc-protos.h: New file.
13533
13534 * arc.c: Include tm_p.h. Add static prototypes. Fix compile
13535 time warnings.
13536
13537 * arc.h: Move prototypes to arc-protos.h. Fix compile time
13538 warnings.
13539
13540 * arc.md: Likewise.
13541
13542 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13543
13544 * dsp16xx-protos.h: New file.
13545
13546 * dsp16xx.c: Include tm_p.h. Add static prototypes. Fix compile
13547 time warnings.
13548
13549 * dsp16xx.h: Move prototypes to dsp16xx-protos.h. Fix compile time
13550 warnings.
13551
13552 * dsp16xx.md: Likewise.
13553
13554 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13555
13556 * convex-protos.h: New file.
13557
13558 * convex.c: Include tm_p.h. Add static prototypes. Fix compile
13559 time warnings.
13560
13561 * convex.h: Move prototypes to convex-protos.h. Fix compile time
13562 warnings.
13563
13564 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13565
13566 * elxsi-protos.h: New file.
13567
13568 * elxsi.c: Include tm_p.h. Add static prototypes. Fix compile
13569 time warnings.
13570
13571 * elxsi.h: Move prototypes to elxsi-protos.h. Fix compile time
13572 warnings.
13573
13574 * elxsi.md: Likewise.
13575
13576 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
13577
13578 * config/mips/mips.h (REGISTER_MOVE_COST): Remove redundant
13579 case for moving from HI/LO/HI_LO_REG. This makes the behavior
13580 match the comment for MIPS16.
13581
13582 Fri Jan 14 00:28:06 2000 Jeffrey A Law (law@cygnus.com)
13583
13584 * flow.c (split_edge): Do not call set_block_for_insn if we
13585 do not have a basic_block_for_insn structure.
13586
13587 * fr30.h (TRAMPOLINE_TEMPLATE): Use nops to ensure the static chain
13588 and destination functions are 32bit aligned within the trampoline.
13589 (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Corresponding changes.
13590 (TRAMPOLINE_ALIGNMENT): Define.
13591
13592 * cse.c (cse_insn): When changing (set (pc) (reg)) to
13593 (set (pc) (label_ref)), verify the change creates a valid insn.
13594
13595 * fr30.c (call_operand): Tighten and rework to match rules for
13596 call RTL expressions.
13597 * fr30.h (PREDICATE_CODES, case call_operand): Only allow MEMs.
13598 * fr30.md (call patterns): Improve constraints.
13599
13600 Thu Jan 13 23:44:03 2000 Richard Henderson <rth@cygnus.com>
13601
13602 * fr30.c (fr30_expand_epilogue): Revert last change.
13603 Use emit_jump_insn for the return insn.
13604
13605 Thu Jan 13 14:46:03 2000 Jason Eckhardt <jle@cygnus.com>
13606 Stan Cox <scox@cygnus.com>
13607
13608 * predict.c: New file. Preliminary infrastructure work for static
13609 branch prediction and basic block reordering.
13610 * basic-block.h: Add prototype for estimate_probability.
13611 * Makefile.in: Add rules for predict.o.
13612
13613 2000-01-13 Jason Merrill <jason@yorick.cygnus.com>
13614
13615 * fixincludes (va_list): Use __not_va_list__ for the dummy.
13616 * fixinc/*: Likewise.
13617
13618 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13619
13620 * cccp.c: PROTO -> PARAMS.
13621 * cexp.y: Likewise.
13622 * collect2.c: Likewise.
13623 * combine.c: Likewise.
13624 * convert.h: Likewise.
13625 * cse.c: Likewise.
13626 * dbxout.c: Likewise.
13627 * dbxout.h: Likewise.
13628 * diagnostic.c: Likewise.
13629 * doprint.c: Likewise.
13630 * dwarf2out.c: Likewise.
13631 * dwarf2out.h: Likewise.
13632 * dwarfout.c: Likewise.
13633 * dwarfout.h: Likewise.
13634 * dyn-string.h: Likewise.
13635
13636 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13637
13638 * calls.c (emit_call_1): Wrap varaible `struct_value_size_rtx' in
13639 macro conditionals guarding use.
13640
13641 * dwarf2out.c: Include "tm_p.h".
13642
13643 * function.c (locate_and_pad_parm): Mark parameter with
13644 ATTRIBUTE_UNUSED.
13645 (expand_function_end): Likewise for variable `context'.
13646
13647 * reorg.c (make_return_insns): Wrap prototype in macro HAVE_return.
13648
13649 2000-01-13 Nick Clifton <nickc@cygnus.com>
13650
13651 * config/fr30/fr30.c (fr30_expand_epilogue): Emit USEs of pop'ed
13652 register to prevent compile time warnings.
13653
13654 2000-01-13 Zack Weinberg <zack@wolery.cumb.org>
13655
13656 * longlong.h [i386] (udiv_qrnnd): Rename 'd' argument to 'dv'
13657 to avoid -Wtraditional warning.
13658
13659 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13660
13661 * 1750a-protos.h: New file.
13662
13663 * 1750a.c: Include tm_p.h. Add static prototypes. Fix compile
13664 time warnings.
13665
13666 * 1750a.h: Move prototypes to 1750a-protos.h. Fix compile time
13667 warnings.
13668
13669 * 1750a.md: Likewise.
13670
13671 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13672
13673 * a29k-protos.h: New file.
13674
13675 * a29k.c: Include tm_p.h. Add static prototypes. Fix compile
13676 time warnings.
13677
13678 * a29k.h: Move prototypes to a29k-protos.h. Fix compile time
13679 warnings.
13680
13681 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13682
13683 * clipper-protos.h: New file.
13684
13685 * clipper.c: Include tm_p.h. Add static prototypes. Fix compile
13686 time warnings.
13687
13688 * clipper.h: Move prototypes to clipper-protos.h. Fix compile time
13689 warnings.
13690
13691 Thu Jan 13 16:03:06 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13692
13693 * reload1.c (reload_combine_note_store): Use HARD_REGNO_NREGS.
13694
13695 2000-01-13 Nathan Sidwell <sidwell@codesourcery.com>
13696
13697 * configure.in (--enable-new-gxx-abi): New option.
13698 * acconfig.h (ENABLE_NEW_GXX_ABI): New define.
13699 * Makefile.in (GXX_ABI_FLAG): New variable.
13700 * configure: Regenerate.
13701
13702 2000-01-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13703
13704 * stor-layout.c (layout_type): Use FORCE_STRUCT_BLK.
13705 * tm.texi (FORCE_STRUCT_BLK): Document.
13706 * config/c4x/c4x.h (FORCE_STRUCT_BLK): New macro.
13707
13708 Wed Jan 12 23:12:47 2000 Hans-Peter Nilsson <hp@axis.com>
13709
13710 * config/ns32k/ns32k.md: Revert Jan 9 change.
13711
13712 * genrecog.c (maybe_both_true_2): Do not compare a predicate-test
13713 to a mode-test, if the predicate is address_operand.
13714
13715 Wed Jan 12 22:34:00 2000 Jeffrey A Law (law@cygnus.com)
13716
13717 * combine.c (if_then_else_cond): Be careful about what kinds
13718 of RTL expressions are passed to operand_subword.
13719
13720 * flow.c (split_edge): If we have to insert a new jump, make
13721 sure to associate it with a basic block.
13722
13723 * flow.c (commit_one_edge_insertion): A block with one successor
13724 can end in a JUMP_INSN that is not a simplejump.
13725
13726 2000-01-12 Robert Lipe <robertl@sco.com>
13727
13728 * i386/sco5.h (INIT_SECTION_ASM_OP_COFF): Rename section to "ctor".
13729 (BUILD_VA_LIST_TYPE): Define.
13730 (EH_FRAME_SECTION_ASM_OP): Explictly define to better interact
13731 with crtstuff.c.
13732
13733 2000-01-12 Jason Merrill <jason@casey.cygnus.com>
13734
13735 * cccp.c (do_pragma): Add cast to (char *).
13736
13737 2000-01-12 Richard Henderson <rth@cygnus.com>
13738 Fred Fish <fnf@be.com>
13739 Jason Merrill <jason@cygnus.com>
13740
13741 * configure.in (i?86-*-beos{pe,elf,}*): Recognize.
13742 * i386/t-beos, i386/x-beos, i386/xm-beos.h: New files.
13743 * i386/beos-elf.h, i386/beos-pe.h: New files.
13744
13745 * Makefile.in (CROSS_SYSTEM_HEADER_DIR): New.
13746 * cross-make (SYSTEM_HEADER_DIR): Define using
13747 CROSS_SYSTEM_HEADER_DIR.
13748
13749 * gcc.c (LIBRARY_PATH_ENV): Provide default.
13750 (process_command): Use it.
13751 (main): Likewise. Kill trailing = from env vars.
13752 (build_search_list): Put it back.
13753 * collect2.c (main): Use LIBRARY_PATH_ENV.
13754
13755 * configure.in (GCC_NEED_DECLARATIONS): Add environ.
13756 * toplev.c: Use NEED_DECLARATION_ENVIRON.
13757
13758 * tm.texi (Frame Layout): Document SMALL_STACK.
13759 * c-common.c (c_common_nodes_and_builtins): Check it.
13760
13761 * system.h: Undef alloca after including glibc's <stdlib.h>,
13762 if USE_C_ALLOCA is defined.
13763
13764 * gcc.c (set_input): New fn.
13765 (main): After all input files are compiled, reset the input file
13766 info to the first.
13767
13768 * aclocal.m4 (rindex, index): If already defined, don't attempt
13769 to redefine.
13770
13771 * ginclude/varargs.h: (__va_list__): Define ifndef.
13772 * ginclude/stdarg.h: Likewise.
13773
13774 * ginclude/stddef.h (__WCHAR_TYPE__) [BEOS]: Use int
13775 instead of unsigned char.
13776
13777 * hash.h (true, false, boolean): Undef before enum.
13778
13779 * expmed.c (choose_multiplier): Cast &mhigh_lo and &mhigh_hi to be
13780 proper type of "HOST_WIDE_INT *", rather than their natural type of
13781 "unsigned HOST_WIDE_INT *".
13782
13783 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13784
13785 * svr3.h (ASM_FILE_START): Wrap if-clause in squigly brackets.
13786
13787 * recog.c (memory_address_p): Mark parameter with ATTRIBUTE_UNUSED.
13788
13789 * regclass.c (choose_hard_reg_mode): Likewise.
13790
13791 * reload.c (find_valid_class, strict_memory_address_p): Likewise.
13792
13793 * reorg.c (optimize_skip): Wrap prototype in macro conditionals.
13794
13795 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13796
13797 * c-common.c: PROTO -> PARAMS.
13798 * c-common.h: Likewise.
13799 * c-decl.c: Likewise.
13800 * c-iterate.c: Likewise.
13801 * c-lang.c: Likewise.
13802 * c-lex.c: Likewise.
13803 * c-lex.h: Likewise.
13804 * c-parse.in: Likewise.
13805 * c-pragma.c: Likewise.
13806 * c-pragma.h: Likewise.
13807 * c-tree.h: Likewise.
13808 * c-typeck.c: Likewise.
13809 * objc/objc-act.c: Likewise.
13810 * objc/objc-act.h: Likewise.
13811
13812 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13813
13814 * m88k-protos.h: New file.
13815
13816 * m88k.c: Include tm_p.h. Add static prototypes. Fix compile
13817 time warnings.
13818
13819 * m88k.h: Move prototypes to m88k-protos.h. Fix compile time warnings.
13820
13821 * m88k.md: Likewise.
13822
13823 * tekXD88.h: Likewise.
13824
13825 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13826
13827 * m68k-protos.h: New file.
13828
13829 * m68k.c: Include tm_p.h. Add static prototypes. Fix compile
13830 time warnings.
13831
13832 * m68k.h: Move prototypes to m68k-protos.h. Fix compile time warnings.
13833
13834 * mot3300.h: Likewise.
13835
13836 2000-01-12 Richard Earnshaw <rearnsha@arm.com>
13837
13838 * haifa-sched.c (split_edges): Pass edgeset_size as second arg to
13839 extract_bitlst.
13840 (extract_bitlist): Declare bitlen.
13841
13842 2000-01-12 Zack Weinberg <zack@wolery.cumb.org
13843
13844 * cccp.c: Accept and ignore -lang-fortran.
13845
13846 * c-typeck.c (build_c_cast): Issue -Wcast-qual warnings if the
13847 qualifiers don't match at any level of pointerness.
13848
13849 2000-01-12 Robert Lipe <robertl@sco.com>
13850
13851 * i386/sysv5.h (CPP_SPEC, LIBSPEC): Add -pthreadT.
13852
13853 2000-01-12 Bernd Schmidt <bernds@cygnus.co.uk>
13854
13855 * reload1.c (reload_reg_unavailable): New static variable.
13856 (reload_reg_free_p): Test it.
13857 (reload_reg_free_for_value_p): Test it instead of
13858 reload_reg_used.
13859 (choose_reload_regs_init): Compute it.
13860
13861 Wed Jan 12 03:24:41 2000 Toshiyasu Morita (toshi.morita@sega.com)
13862
13863 * reorg.c (fill_slots_from_thread): Check modified_in_p
13864 before replacing.
13865
13866 Wed Jan 12 03:20:31 2000 John Marshall <john_w_marshall@palm.com>
13867
13868 * gcc.texi (Funding, GNU/Linux, Copying, Contributors): Format
13869 these nodes even if INTERNALS is not set.
13870
13871 Wed Jan 12 09:39:22 2000 Nick Burrett <nick.burrett@btinternet.com>
13872
13873 * gcse.c (delete_null_pointer_checks_1): Cope when
13874 get_condition cannot determine the condition.
13875
13876 2000-01-12 Gabriel Dos Reis <gdr@codesourcery.com>
13877
13878 * toplev.h (set_message_length): Declare.
13879
13880 * diagnostic.c (obstack_chunk_alloc): Define macro.
13881 (obstack_chunk_free): Likewise.
13882 (struct output_buffer): New data structure.
13883 (vmessage): Remove.
13884 (output_maximum_width): New variable.
13885 (doing_line_wrapping, set_message_length, init_output_buffer,
13886 get_output_prefix, output_space_left, emit_output_prefix,
13887 output_newline, output_append, output_puts, dump_output,
13888 vbuild_message_string, build_message_string, build_location_prefix,
13889 voutput_notice, output_printf, line_wrapper_printf,
13890 vline_wrapper_message_with_location): New functions. Implement
13891 automatic line wrapping.
13892 (v_message_with_decl): Make it handle automatic line wrapping.
13893 (v_error_with_file_and_line): Likewise.
13894 (v_warning_with_file_and_line): Likewise.
13895 (announce_function): Likewise.
13896 (default_print_error_function): Likewise.
13897
13898 2000-01-11 16:24 -0800 Zack Weinberg <zack@wolery.cumb.org>
13899
13900 * cpplib.h (struct cpp_options): Change lang_asm to char.
13901 Add lang_fortran.
13902 * cppinit.c (builtin_array): Take out __STDC_VERSION__, it's
13903 done in cpp_handle_option now.
13904 (initialize_builtins): Take out special case code used only by
13905 __STDC_VERSION__.
13906 (cpp_handle_option): Turn off trigraphs and trigraph warnings
13907 if -traditional. Recognize -lang-fortran and set
13908 lang_fortran, also turn off cplusplus_comments.
13909 (print_help): Document -lang-fortran.
13910 * cpplib.c (handle_directive): Ignore `# 123 "file"' if
13911 lang_asm. Ignore all directives other than `# 123 "file"' if
13912 CPP_PREPROCESSED.
13913 (cpp_get_token): If -traditional, don't recognize directives
13914 unless the # is in column 1.
13915 (parse_string): If lang_fortran or lang_asm, silently
13916 terminate strings ('' or "") at end of line.
13917 Remove unnecessary braces.
13918
13919 2000-01-11 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
13920 Richard Henderson <rth@cygnus.com>
13921
13922 * resource.c (mark_referenced_resources): Mark a set strict_low_part
13923 as used.
13924 * config/i386/i386.c (ix86_expand_setcc): Re-enable clear + set
13925 strict_low_part when possible.
13926
13927 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13928
13929 * alias.c: PROTO -> PARAMS.
13930 * basic-block.h: Likewise.
13931 * bitmap.c: Likewise.
13932 * bitmap.h: Likewise.
13933 * builtins.c: Likewise.
13934 * c-aux-info.c: Likewise.
13935 * caller-save.c: Likewise.
13936 * calls.c: Likewise.
13937
13938 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13939
13940 * Makefile.in (toplev.o): Depend on regs.h.
13941
13942 * output.h (tdesc_section): Prototype.
13943
13944 * regclass.c (copy_cost): Mark parameters with ATTRIBUTE_UNUSED.
13945
13946 * sdbout.c: Include "tm_p.h".
13947
13948 * toplev.c: Include "regs.h".
13949
13950 Tue Jan 11 11:37:58 2000 Mike Stump <mrs@wrs.com>
13951
13952 * unroll.c (unroll_loop): Add EH support.
13953
13954 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13955
13956 * pa-protos.h: New file.
13957
13958 * pa.c: Include recog.h and tm_p.h.
13959 (compute_zdepwi_operands, compute_movstrsi_length,
13960 remove_useless_addtr_insns, store_reg, load_reg, set_reg_plus_d,
13961 find_addr_reg, import_milli): Add static prototypes.
13962 (pa_cpu_string, pa_arch_string): Constify a char*.
13963 (legitimize_pic_address): Pass argument `mode' to pic_label_operand.
13964 (read_only_operand): Add argument `mode'.
13965 (singlemove_string, output_move_double, output_fp_move_double,
13966 output_block_move, output_and, output_ior, output_ascii,
13967 remove_useless_addtr_insns, milli_names, output_mul_insn,
13968 output_div_insn, output_mod_insn, output_arg_descriptor,
13969 output_cbranch, output_bb, output_bvb, output_dbra, ,
13970 output_millicode_call, output_call, hppa_encode_label,
13971 output_parallel_movb, output_parallel_addb): Constify a char*.
13972 (hppa_va_start): Mark parameter `stdarg_p' with ATTRIBUTE_UNUSED.
13973 (output_parallel_addb): Remove extra arg to `constrain_operands'
13974
13975 * pa.h: Move all prototypes to pa-protos.h.
13976 (pa_cpu_string, pa_arch_string): Constify a char*.
13977 (LEGITIMIZE_ADDRESS): Call `symbolic_operand' with mode argument.
13978
13979 * pa.md: Call `function_label_operand' with mode argument.
13980 Likewise for `read_only_operand'.
13981 Fix nesting of parens in call to `symbolic_operand'.
13982
13983 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13984
13985 * i860-protos.h: New file.
13986
13987 * i860.c: Include tm_p.h. Add static prototypes. Fix compile
13988 time warnings.
13989
13990 * i860.h: Move prototypes to i860-protos.h. Fix compile time warnings.
13991
13992 * i860.md: Likewise.
13993
13994 Tue Jan 11 18:59:35 MET 2000 Jan Hubicka <jh@suse.cz>
13995
13996 * i386.md (movstrsi expander): Rewrite.
13997 (movstrsi_1 insn): Deleted.
13998 (strmovhi, strmovqi expander): New expanders.
13999 (movshi_1, movsqi_1, rep_movsi, rep_movqi): New patterns.
14000 * i386.c (x86_single_stringop): New global variable.
14001 * i386.h (x86_single_stringop): Declare.
14002 (TARGET_SINGLE_STRINGOP): New macro.
14003
14004 2000-01-11 Clinton Popetz <cpopetz@cygnus.com>
14005
14006 * config/mips/mips.c (mips_va_arg): For EABI, emit the queued
14007 integer vararg POSTINCREMENT before the destination of the jump
14008 for the hard fp case.
14009 (function_arg_pass_by_reference): Pass a copy of CUM to
14010 FUNCTION_ARG.
14011
14012 * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Move check
14013 for CONSTANT_ADDRESS_P above while loop for subreg.
14014
14015 2000-01-11 Clinton Popetz <cpopetz@cygnus.com>
14016
14017 * flow.c (propagate_block): When a prologue/epilogue insn
14018 is marked dead, unconditionally clear libcall_is_dead and
14019 insn_is_dead, and only dump rtl if warnings aren't being
14020 suppressed.
14021
14022 Tue Jan 11 16:26:47 MET 2000 Jan Hubicka <jh@suse.cz>
14023
14024 * i386.c (ix86_attr_length_default): Handle TYPE_STR and TYPE_CLD.
14025 * i386.md (FIRST_PSEUDO_REGISTER): Set to 20.
14026 (FIXED_REGISTERS): Set dirflag as fixed.
14027 (CALL_USED_REGISTERS): Set dirflag as used.
14028 (REG_ALLOC_ORDER): Set dirflag as last one.
14029 (DIRFLAG_REG): New macro.
14030 (MD_ASM_CLOBBERS): Asm clobber dirflag for backward compatibility.
14031 (HI_REGISTER_NAMES): Add dirflag.
14032 (DEBUF_PRINT_REG): Handle dirflag.
14033 * i386.md (type attribute): New cld and str types.
14034 (length_opcode attribute): Set cld and str to 1.
14035 (memory attribute): Set str to unknown - it is not clear from the
14036 patterns.
14037 (pent_np function unit): Prefixed string operations takes 12 cycles
14038 minimally; cld takes 2 cycles.
14039 (ppro_uops attribute): Str is "many" and cld is "few".
14040 (ppro_p0 unit): Handle cld here.
14041 (k6_alux unit): Handle cld and str types.
14042 (k6_load unit): It is ocupied by str opcodes.
14043 (k6_store unit): It is ocupied by str opcodes.
14044 (athlon_decode): Str is vector decoded.
14045 (athlon_ieu): Handle str and cld.
14046 (cld pattern): New.
14047 (movstrsi, clrstr, cmpstr, strlen expander): Emit cld instruction
14048 (movstrsi_1, clrstrsi_1, cmpstrsi_1, strlensi_1,
14049 cmpstrsi_nz_1 insn): Do not output cld instruction
14050
14051 Tue Jan 11 06:14:39 2000 David Starner <dstarner98@aasaa.ofe.org>
14052
14053 * gcc.texi (G++ and GCC): Add Java and Chill.
14054 (Bug Critera): Don't list languages.
14055
14056 * gcc.texi (Incompatibilities): No longer claim most C compilers
14057 are K&R.
14058
14059 * gcc.texi (G++ and GCC): Update other front-ends list.
14060
14061 Tue Jan 11 05:49:01 2000 Jeffrey A Law (law@cygnus.com)
14062
14063 * i386.c (ix86_expand_setcc): Fix typo.
14064 (ix86_expand_movcc): Similarly.
14065
14066 * Band-aid until haifa's bitset implementation is nuked.
14067 * haifa-sched.c (extract_bitlst): New parameter for size of the
14068 bitset in bits. All callers changed. Avoid looking at undefined
14069 bits in the bitset.
14070 (edgeset_bitsize): New variable.
14071 (schedule_region): Initialize edgeset_bitsize.
14072
14073 2000-01-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14074
14075 * Makefile.in (optabs.o): Depend on real.h
14076 (resource.o): Depend on insn-attr.h
14077
14078 * builtins.c (result_vector): Wrap prototype in macro conditions
14079 governing definition and use.
14080
14081 * c-common.c: Include tm_p.h.
14082
14083 * c-lex.c: Likewise.
14084
14085 * elfos.h: Constify a char*.
14086
14087 * final.c (align_fuzz): Wrap prototype in macro HAVE_ATTR_length.
14088 (get_attr_length, shorten_branches, profile_after_prologue): Mark
14089 parameter with ATTRIBUTE_UNUSED.
14090
14091 * fold-const.c (exact_real_inverse): Wrap variable `i' in
14092 CHECK_FLOAT_VALUE.
14093
14094 * haifa-sched.c (schedule_insns): Mark parameter with
14095 ATTRIBUTE_UNUSED.
14096
14097 * optabs.c: Include real.h.
14098
14099 * real.h (ereal_atof): Add prototype arguments.
14100
14101 * resource.c: Include insn-attr.h.
14102
14103 * sdbout.c (sdbout_queue_anonymous_type,
14104 sdbout_dequeue_anonymous_types): Wrap in macro
14105 SDB_ALLOW_FORWARD_REFERENCES.
14106 (sdbout_init, sdbout_start_new_source_file): Mark parameter with
14107 ATTRIBUTE_UNUSED.
14108
14109 * stmt.c (expand_return): Wrap variable `op0' in macro HAVE_return.
14110
14111 * stupid.c: Include tm_p.h.
14112
14113 * tree.c (real_value_from_int_cst): Mark parameter with
14114 ATTRIBUTE_UNUSED.
14115
14116 2000-01-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14117
14118 * i960-protos.h: New file.
14119
14120 * i960.c: Include tm_p.h. Add static prototypes. Fix compile
14121 time warnings.
14122
14123 * i960.h: Move prototypes to i960-protos.h. Fix compile time warnings.
14124
14125 2000-01-10 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
14126
14127 * combine.c (expand_field_assignment): Do not discard SUBREGs
14128 while computing nonzero_bits.
14129
14130 2000-01-09 Nick Clifton <nickc@cygnus.com>
14131
14132 * config/arm/arm.c: Fix compile time warnings about signed vs
14133 unsigned constants.
14134 * config/arm/arm.h: Fix compile time warnings about signed vs
14135 unsigned constants.
14136
14137 2000-01-09 Philip Blundell <philb@gnu.org>
14138
14139 * config/arm/arm.c (output_return_instruction): Use `ldr' rather
14140 than `ldm' with only one register.
14141 * config/arm/arm.md (push_multi): Use `str' rather than `stm' with
14142 only one register.
14143
14144 * config/arm/linux-gas.h (CLEAR_INSN_CACHE): Say that R0 is
14145 clobbered.
14146
14147 Sun Jan 9 17:50:23 2000 Hans-Peter Nilsson <hp@axis.com>
14148
14149 * config/ns32k/ns32k.md (load or push effective address): Operand 1
14150 must have SImode.
14151
14152 2000-01-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14153
14154 * elfos.h (ASM_OUTPUT_LIMITED_STRING): Add parentheses around
14155 assignment used as truth value.
14156
14157 * function.c (assign_temp): Mark parameter `dont_promote' with
14158 ATTRIBUTE_UNUSED. Wrap variable `unsignedp' with macro
14159 PROMOTE_FOR_CALL_ONLY.
14160
14161 * genrecog.c (write_subroutine): Mark variable `operands' with
14162 ATTRIBUTE_UNUSED.
14163
14164 * optabs.c (prepare_cmp_insn): Mark parameter `align' with
14165 ATTRIBUTE_UNUSED.
14166
14167 * sdbout.c (sdbout_init): Likewise for parameter `asm_file'.
14168 (sdbout_begin_block, sdbout_end_block): Likewise for `file'.
14169
14170 * toplev.c (note_deferral_of_defined_inline_function): Likewise
14171 for `decl'.
14172
14173 2000-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14174
14175 * config/c4x.h: Tidy up comments.
14176 * config/c4x.c: Likewise.
14177
14178 Sun Jan 9 01:02:55 EST 2000 John Wehle (john@feith.com)
14179
14180 * fold-const.c (lshift_double, rshift_double): Handle
14181 shifting by 2 * HOST_BITS_PER_WIDE_INT correctly.
14182
14183 2000-01-08 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
14184
14185 * toplev.c (rest_of_compilation): Initialize cse_not_expected as
14186 in prepare_function_start().
14187
14188 Sat Jan 8 12:12:46 2000 Nick Clifton <nickc@cygnus.com>
14189
14190 * config/v850/v850.c (expand_epilogue): Interrupt functions no
14191 longer allocate extra stack for function calls.
14192
14193 2000-01-08 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14194
14195 * config/c4x/c4x.md (*subqf3_set): Fix typo.
14196
14197 2000-01-08 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14198
14199 * config/c4x/c4x.h (CALLER_SAVE_PROFITABLE): Define as 0.
14200
14201 2000-01-07 David Edelsohn <edelsohn@gnu.org>
14202
14203 * rs6000.c (processor_target_table): Add power3 as alias for 630.
14204 * aix43.h: Revert Aug 2 change.
14205 (HAS_INIT_SECTION): Define, not visible yet.
14206 (LD_INIT_SWITCH): Define, not visible yet.
14207 * t-aix43 (MULTILIB_OPTIONS): Revert Aug 2 change.
14208
14209 * glimits.h (__LONG_MAX__): Recognize 64-bit AIX too.
14210
14211 * collect2.c (main): Expand ld2 size further.
14212 (export_object_lst): Cast assignment to avoid warning.
14213 (main, LD_INIT_SWITCH): Add AIX 4.2+ -binitfini support.
14214 (scan_prog_file, COFF): Do not collect initialization or
14215 finalization functions generated for entire shared object if
14216 init/fini support present.
14217
14218 2000-01-07 Nick Clifton <nickc@cygnus.com>
14219
14220 * config/elfos.h: Tidy up formatting of marcos. Make sure
14221 that .section directives are always prefixed by a tab.
14222
14223 * config/svr4.h: Add #include "elfos.h" and remove duplicate
14224 definitions.
14225
14226 2000-01-07 Matt Austern <austern@sgi.com>
14227
14228 * fold-const.c (real_hex_to_f): Remove duplicate declaration of
14229 expon.
14230
14231 Fri Jan 7 01:55:34 2000 Jeffrey A Law (law@cygnus.com)
14232
14233 * Makefile.in (crtend.o): Pass @inhibit_libc@ to compilation of
14234 crtstuff.c.
14235 (crtbegin.o, s-crtS): Likewise.
14236
14237 2000-01-06 Richard Henderson <rth@cygnus.com>
14238
14239 * alpha.md (adddi_2+1): Limit offset such that it will be
14240 loadable with a single ldah+lda pair.
14241 (adddi_2+2): Explicitly fail split if we can't make it work.
14242
14243 2000-01-06 Mumit Khan <khan@xraylith.wisc.edu>
14244
14245 * protoize.c: Conditionally include unistd.h.
14246 (IS_SAME_PATH_CHAR): New macro.
14247 (IS_SAME_PATH): New macro.
14248 (CPLUS_FILE_SUFFIX): New macro.
14249 (cplus_suffix): New static variable.
14250 (is_abspath): New static function.
14251 (in_system_include_dir): Handle DOS style pathnames.
14252 (file_could_be_converted): Likewise.
14253 (file_normally_convertible): Likewise.
14254 (directory_specified_p): Likewise.
14255 (file_excluded_p): Likewise.
14256 (abspath): Likewise.
14257 (shortpath): Likewise.
14258 (referenced_file_is_newer): Likewise.
14259 (save_def_or_dec): Likewise.
14260 (do_processing): Likewise.
14261 (main): Likewise.
14262 (edit_file): Likewise. Use rename instead of link.
14263 (rename_c_file): Likewise. Don't rename syscalls file.
14264 (munge_compile_params): Define null device for DOS based systems.
14265 (process_aux_info_file): Use binary mode if appliable.
14266 (edit_file): Likewise.
14267 * invoke.texi (Running Protoize): Document C++ suffixes used.
14268
14269 * cccp.c: Delete PATH_SEPARATOR, DIR_SEPARATOR and
14270 IS_DIR_SEPARATOR macros.
14271 * collect2.c: Likewise.
14272 * cppinit.c: Likewise.
14273 * dwarf2out.c: Likewise.
14274 * gcc.c: Likewise.
14275 * gcov.c: Likewise.
14276 * prefix.c: Likewise.
14277 * rtl.c: Likewise.
14278 * toplev.c: Likewise.
14279 * system.h: And move to here.
14280
14281 * prefix.c (update_path): Fix typo in variable name.
14282
14283 2000-01-06 Richard Henderson <rth@cygnus.com>
14284
14285 * flow.c (mark_set_1): Use loop_depth+1 as reference weight.
14286 (find_auto_inc, mark_used_regs, try_pre_increment_1): Likewise.
14287 (count_reg_sets_1, count_reg_references): Likewise.
14288 (flow_loops_level_compute): Start counting actual loop depth at 1.
14289 (flow_loops_find): Likewise.
14290 * local-alloc.c (update_equiv_regs): Likewise.
14291 * regclass.c (regclass): Re-instate Jan 4 0-based loop_depth change.
14292
14293 2000-01-06 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
14294
14295 * defaults.h (DWARF_FRAME_REGISTERS): if not defined, default to
14296 FIRST_PSEUDO_REGISTER
14297 * dwarf2out.c: Don't include frame.h
14298 * dwarfout.c: Likewise
14299 * Makefile.in (dwarfout.o, dwarf2out.o): Remove dependence on
14300 frame.h
14301
14302 Thu Jan 6 13:44:59 CET 2000 Jan Hubicka <jh@suse.cz>
14303
14304 * reg-stack.c (subst_stack_regs_pat): Handle correctly USEs of
14305 dead registers.
14306
14307 * i386.c (movsf splitter): Fix typo in my last checkin.
14308
14309 2000-01-05 Nick Clifton <nickc@cygnus.com>
14310
14311 * varasm.c (IN_NAMED_SECTION): Allow targets to provide their
14312 own definition of this macro.
14313 (asm_emit_uninitialised): Invoke UNIQUE_SECTION if either
14314 flag_data_sections or UNIQUE_SECTION_P are true.
14315
14316 * tm.texi (UNIQUE_SECTION): Document that it can be called for
14317 unitialised data decls.
14318
14319 * config/i386/winnt.c (i386_pe_unique_section): Cope with
14320 being called for uninitialised data.
14321
14322 * config/i386/interix.c (i386_pe_unique_section): Cope with
14323 being called for uninitialised data.
14324
14325 * config/mips/elf.h (UNIQUE_SECTION): Cope with being called
14326 for uninitialised data.
14327
14328 * config/mips/elf64.h (UNIQUE_SECTION): Cope with being called
14329 for uninitialised data.
14330
14331 * config/mips/iri6gld.h (UNIQUE_SECTION): Cope with being called
14332 for uninitialised data.
14333
14334 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Define.
14335 (UNIQUE_SECTION_P): Always generate a unique section if
14336 flag_data_sections is true.
14337 (UNIQUE_SECTION): Also generate unique sections for
14338 uninitialised data.
14339 (ASM_OUTPUT_ALIGNED_BSS): Redefine to use named_section().
14340 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Redefine to use
14341 named_section().
14342
14343 2000-01-06 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14344
14345 * config/c4x/t-c4x (TARGET_LIBGCC2_CFLAGS): Don't redefine SF, DF,
14346 SI, or DI.
14347
14348 2000-01-06 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14349
14350 * config/c4x/c4x.md (udivqi3, divqi3): Delete.
14351 (umodqi3, modqi3, udivhi3, divhi3, umodhi3, modhi3, ffsqi2): Likewise.
14352 (*smulqi3_highpart_noclobber, *umulqi3_highpart_noclobber): New.
14353 (*lshrqi3_const_noclobber, *lshrqi3_nonconst_noclobber): Likewise.
14354 (*ashrqi3_const_noclobber, *ashrqi3_nonconst_noclobber): Likewise.
14355
14356 * c4x.h (INIT_TARGET_OPTABS): Define to init libcalls.
14357
14358 2000-01-05 11:25 -0800 Zack Weinberg <zack@rabi.columbia.edu>
14359
14360 * c-decl.c (finish_enum): Simplify code to determine minimum and
14361 maximum values of the enum, and calculate the type. Remove check
14362 for FUNCTION_DECLs in the values list, which cannot happen. Replace
14363 the DECL_INITIAL of each enumeration constant with a copy converted
14364 to the enumeration type. When updating variant types, don't bother
14365 updating the type itself.
14366
14367 * c-typeck.c (build_binary_op): Simplify conditional expressions
14368 when weeding out spurious signed-unsigned warnings. Add new
14369 spurious warning category: if the unsigned quantity is an enum
14370 and its maximum value fits in signed_type(result_type). Update
14371 commentary.
14372 (build_conditional_expr): Warn here if one alternative is signed
14373 and the other is unsigned.
14374
14375 2000-01-05 Nick Clifton <nickc@cygnus.com>
14376
14377 * config/fr30/fr30.h: Remove extraneous comments.
14378
14379 2000-01-05 Bernd Schmidt <bernds@cygnus.co.uk>
14380
14381 * reload1.c (choose_reload_regs): When disabling a reload, also
14382 set reload_spill_index to -1.
14383
14384 2000-01-04 Joel Sherrill (joel@OARcorp.com>
14385
14386 * configure.in (m68*-*-rtemscoff*): New target, formal name for
14387 old m68*-*-rtems*.
14388 (m68*-*-rtemself*): New target.
14389 (mips64orion-*-rtems*): Remove duplicate definition of tm_file.
14390 (sparc*-*-rtemsaout*): New target, formal name for old sparc*-*-rtems*.
14391 (sparc*-*-rtemself*): New target.
14392 (sparc*-*-rtems*): Now elf not a.out.
14393 * config/i386/rtems.h: Include config/rtems.h.
14394 * config/i386/rtemself.h: Include config/rtems.h.
14395 * config/i960/rtems.h: Include config/rtems.h.
14396 * config/m68k/rtems.h: Include config/rtems.h.
14397 * config/m68k/rtemself.h: Include config/rtems.h.
14398 * config/mips/rtems64.h: Include config/rtems.h.
14399 * config/pa/rtems.h: Include config/rtems.h.
14400 * config/rs6000/rtems.h: Include config/rtems.h.
14401 * config/sh/rtems.h: Include config/rtems.h.
14402 * config/sh/rtemself.h: Include config/rtems.h.
14403 * config/sparc/rtems.h: Include config/rtems.h.
14404 * config/sparc/rtemself.h: Include config/rtems.h
14405
14406 Tue Jan 4 23:59:26 2000 Denis Chertykov <denisc@overta.ru>
14407
14408 * final.c (shorten_branches): Correctly compute length of
14409 asms without operands.
14410
14411 Tue Jan 4 22:55:41 2000 Steve Chamberlain <sac@pobox.com>
14412
14413 * configure.in: Add pj target.
14414 * configure: Regenerate.
14415 * config/pj: New directory.
14416 * config/pj/lib1funcs.S: New file.
14417 * config/pj/linux.h: New file.
14418 * config/pj/pj.c: New file.
14419 * config/pj/pj.md: New file.
14420 * config/pj/pjl.h: New file.
14421 * config/pj/t-pj: New file.
14422 * config/pj/xm-pj.h: New file
14423
14424 Tue Jan 4 22:30:16 2000 Jeffrey A Law (law@cygnus.com)
14425
14426 * toplev.c (rest_of_compilation): Run shorten-branches before
14427 reg-stack for now.
14428
14429 2000-01-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14430
14431 * config/c4x/c4x.h (IS_XXX_REG, IS_XXX_REGNO): Swap behaviour of
14432 macros so that they're consistent with their names.
14433 * config/c4x/c4x.c (IS_XXX_REG, IS_XXX_REGNO): Likewise.
14434 * config/c4x/c4x.md (IS_XXX_REG, IS_XXX_REGNO): Likewise.
14435
14436 2000-01-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14437
14438 * config/c4x/c4x.md (*addqi3_noclobber_reload): Ensure that CC never
14439 modified inadvertently.
14440
14441 2000-01-04 Joel Sherrill <joel@OARcorp.com>
14442
14443 * configure.in (v850*-*-rtems*): New target.
14444 * configure: Regenerate.
14445 * config/v850/rtems.h: New file.
14446
14447 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
14448
14449 * gthr-win32.h (__gthread_active_p): Support Mingw MT runtime.
14450 (__gthread_key_create): Likewise.
14451 (__gthread_key_dtor): Likewise.
14452 (__gthread_once): Fix logic.
14453 (__gthread_key_delete): Cast away constness.
14454
14455 * i386/cygwin.h (SUBTARGET_SWITCHES): Add -mthreads option.
14456 * invoke.texi: Document.
14457 * i386/mingw32.h (CPP_SPEC): Use.
14458 (LIBGCC_SPEC): Likewise.
14459 * i386/crtdll.h (LIBGCC_SPEC): Likewise.
14460
14461 2000-01-04 David Edelsohn <edelsohn@gnu.org>
14462
14463 * rs6000/sysv4.h (ASM_OUTPUT_DEF): Undefine.
14464 (HANDLE_PRAGMA_PACK): Undefine.
14465 (SLOW_UNALIGNED_ACCESS): Define.
14466
14467 2000-01-04 David Edelsohn <edelsohn@gnu.org>
14468
14469 * expmed.c (SLOW_UNALIGNED_ACCESS): Add mode and align parameters
14470 to default definition.
14471 (store_bit_field): Call SLOW_UNALIGNED_ACCESS with mode and alignment.
14472 (store_fixed_bit_field): Call macro with word_mode and alignment.
14473 (extract_bit_field): Call macro with relevant mode and alignment.
14474 * expr.c (SLOW_UNALIGNED_ACCESS): Add mode and align parameters
14475 to default definition.
14476 (move_by_pieces): Call SLOW_UNALIGNED_ACCESS with word_mode
14477 and alignment.
14478 (move_by_pieces_ninsns): Likewise.
14479 (clear_by_pieces): Likewise.
14480 (emit_push_insn): Likewise.
14481 (store_field): Call macro with relevant mode and alignment.
14482 (expand_expr): Likewise.
14483 (expand_expr_unaligned): Likewise.
14484
14485 * rs6000.h (HANDLE_PRAGMA_PACK): Define.
14486 (SLOW_UNALIGNED_ACCESS): Define.
14487 (CASE_VECTOR_MODE): Always use 32-bit offsets.
14488 (ASM_FILE_END): Generate 64-bit symbol in 64-bit mode.
14489 (EXTRA_SECTION_FUNCTIONS): Indent .csect pseudo-op.
14490 (toc_section): Likewise and .toc pseudo-op.
14491 (ASM_DECLARE_FUNCTION): Likewise. Align text more strictly in
14492 64-bit mode.
14493 (TEXT_SECTION_ASM_OP): Likewise.
14494 (ASM_OUTPUT_ADD_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Always use
14495 32-bit offsets.
14496
14497 * a29k.h (SLOW_UNALIGNED_ACCESS): Add MODE and ALIGN parameters.
14498 * alpha.h (SLOW_UNALIGNED_ACCESS): Likewise.
14499 * arm/thumb.h (SLOW_UNALIGNED_ACCESS): Likewise.
14500 * gmicro.h (SLOW_UNALIGNED_ACCESS): Likewise.
14501 * fr30.h (SLOW_UNALIGNED_ACCESS): Likewise.
14502
14503 Tue Jan 4 11:44:13 2000 Jeffrey A Law (law@cygnus.com)
14504
14505 * regclass.c: Revert my Jan 4 change to loop cost computation.
14506
14507 Tue Jan 4 19:22:39 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
14508
14509 * regclass.c (regclass): Do not obey REG_N_REFS in non-optimizing
14510 compilation.
14511
14512 2000-01-04 Stan Cox <scox@cygnus.com>
14513
14514 * haifa-sched.c (build_control_flow): Change unreachable simple
14515 loop test to check if current block has only one predecessor.
14516 (find_rgns): Initialize degree. Use dest as degree index, not src.
14517
14518 2000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14519
14520 * builtins.c (expand_builtin_strlen): Initialize variable `icode'.
14521
14522 * calls.c (expand_call): Likewise for
14523 `old_stack_arg_under_construction'.
14524
14525 * cpphash.c (macroexpand): Likewise for `args' and `rest_zero'.
14526
14527 * function.c (pad_to_arg_alignment): Likewise for `save_var' and
14528 `save_constant'.
14529
14530 * gcc.c (execute): Likewise for `ut' and `st'.
14531
14532 * genattrtab.c (attr_rtx): Likewise for `rt_val'.
14533
14534 * genopinit.c (gen_insn): Likewise for `m1', `m2' and `op'.
14535
14536 * jump.c (jump_optimize_1): Likewise for `temp2'.
14537
14538 * local-alloc.c (block_alloc): Likewise for `r1'.
14539
14540 * loop.c (recombine_givs): Likewise for `life_start' and `life_end'.
14541
14542 * reg-stack.c (check_asm_stack_operands): Likewise for `clobber_reg'.
14543 (subst_asm_stack_regs): Likewise for `clobber_reg' and `clobber_loc'.
14544
14545 * regmove.c (fixup_match_1): Likewise for `insn_const', `dst_node'
14546 and `set2'.
14547
14548 * reload.c (find_reloads): Likewise for `goal_alternative_number'
14549 and `goal_earlyclobber'.
14550
14551 * scan-decls.c (scan_decls): Likewise for `prev_id_end'.
14552
14553 * sdbout.c (sdbout_one_type): Likewise for `member_scl'.
14554
14555 * stupid.c (stupid_life_analysis): Likewise for `chain'.
14556
14557 * unroll.c (copy_loop_body): Likewise for `copy'.
14558
14559 * varasm.c (output_constructor): Likewise for `byte'.
14560
14561 Tue Jan 4 15:34:34 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
14562
14563 * i386.c (ix86_expand_move): Allow pushes of memory, offload to memory
14564 all FP constants for constant->reg moves.
14565 (ix86_split_to_parts): Try to convert memory address into immediate
14566 when available in the constant pool.
14567 * i386.h (PREFERRED_RELOAD_CLASS): Allow CONST_DOUBLE->integer reg
14568 moves.
14569 (LEGITIMATE_CONSTANT_P): Return 1.
14570 * i386.md (pushsf): New splitter to convert constant pool memory
14571 reference to immediate.
14572 (mov?f): Likewise; do not allow CONST_DOUBLE for reg moves before
14573 reload.
14574
14575 2000-01-04 Bernd Schmidt <bernds@cygnus.co.uk>
14576
14577 * i386.md (ashlsi3_cmpno): Don't accept variables shifts.
14578 (ashlhi3_cmpno, ashlqi3_cmpno, ashrsi3_cmpno, ashrhi3_cmpno,
14579 ashrqi3_cmpno, lshrsi3_cmpno, lshrhi3_cmpno, lshrqi3_cmpno): Likewise.
14580 (rotlsi3_cmpno, rotlhi3_cmpno, rotlqi3_cmpno, rotrsi3_cmpno,
14581 rotrhi3_cmpno, rotrqi3_cmpno): Likewise.
14582
14583 2000-01-04 Martin von Löwis <loewis@informatik.hu-berlin.de>
14584
14585 * ginclude/stdbool.h: Support compilation as C++.
14586
14587 Tue Jan 4 01:35:13 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
14588
14589 * fold-const.c (make_range): Don't try to reverse an unbounded range.
14590
14591 Tue Jan 4 00:18:46 2000 Jeffrey A Law (law@cygnus.com)
14592
14593 * regclass.c (regclass): Properly compute loop_cost. Adjust
14594 comments.
14595
14596 * regclass.c: Fix minor whitespace problems.
14597
14598 2000-01-03 Anthony Green <green@cygnus.com>
14599
14600 * config/i386/i386.md (builtin_setjmp_receiver): New pattern.
14601 Restore the pic register if required.
14602
14603 2000-01-03 Ulrich Drepper <drepper@cygnus.com>
14604
14605 * c-common.c (format_char_info): Update comment.
14606 (check_format_info): Recognize 'z' modifier in the same way 'Z'
14607 was recognized. Emit warning for formats new in ISO C99 only
14608 if flag_isoc9x is not set.
14609
14610 Mon Jan 3 12:59:54 2000 Mark P. Mitchell <mark@codesourcery.com>
14611
14612 * config/mips/iris6gld.h: Fix typo in -mabi=n32 specs.
14613
14614 Mon Jan 3 15:33:37 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
14615
14616 * combine.c (expand_compound_operation): Do not convert ZERO_EXTEND to
14617 SIGN_EXTEND, convert SIGN_EXTEND to ZERO_EXTEND.
14618 (make_compound_operation): Choose cheaper alternative between
14619 ZERO_EXTEND and SIGN_EXTEND when sign bit is not set.
14620
14621 * regclass.c (op_costs): Remove global variable.
14622 (record_reg_classes): New parameter "op_costs" and "reg_pref".
14623 (record_operand_costs): Break out from ...
14624 (scan_one_insn): ... here.
14625 (dump_regclass): Make dumps nicer.
14626 (regclass): Dump preferrences choosed and changes done during passes.
14627
14628 2000-01-03 Jakub Jelinek <jakub@redhat.com>
14629
14630 * config/sparc/sparc.c (gen_df_reg): Fix for 32bit SPARC.
14631
14632 2000-01-03 Jakub Jelinek <jakub@redhat.com>
14633
14634 * config/sparc/sparc.c (gen_df_reg): New function.
14635 * config/sparc/sparc-protos.h (gen_df_reg): Add prototype.
14636 * config/sparc/sparc.md (movtf_no_e_insn_sp64+1,
14637 movtf_no_e_insn_sp64+2, movtf_no_e_insn_sp64+3, movtf_cc_sp64+1,
14638 movtf_cc_reg_sp64+1): Use it.
14639
14640 2000-01-02 Mark Mitchell <mark@codesourcery.com>
14641
14642 * integrate.c (copy_decl_for_inlining): Clear TREE_ADDRESSABLE on
14643 copied LABEL_DECLs.
14644
14645 Mon Jan 3 02:54:40 2000 Hans-Peter Nilsson <hp@bitrange.com>
14646
14647 * config/i386/i386.c (ix86_expand_unary_operator): Function
14648 definition made void.
14649 (ix86_expand_binary_operator): Update outdated preceding comment.
14650 * config/i386/i386-protos.h (ix86_expand_unary_operator): Update
14651 prototype.
14652
14653 * config/i386/i386.c (override_options): Fix option-name typo.
14654
14655 2000-01-02 Mark Mitchell <mark@codesourcery.com>
14656
14657 * system.h (CEIL): Define.
14658 * builtins.c (CEIL): Remove.
14659 * expmed.c (CEIL): Likewise.
14660 * expr.c (CEIL): Likewise.
14661 * stor-layout.c (CEIL): Likewise.
14662
14663 2000-01-02 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14664
14665 * expr.c (store_constructor_field): Fix typo introduced with last
14666 gcc2 merge.
14667
14668 2000-01-01 Mark Mitchell <mark@codesourcery.com>
14669
14670 * tree.h (BINFO_N_BASETYPES): New macro.
14671
14672 2000-01-01 Bernd Schmidt <bernds@cygnus.co.uk>
14673
14674 * expmed.c (emit_store_flag): Prevent losing a pending stack
14675 adjust the same way we prevent losing queued increments.
14676
14677 Fri Dec 31 19:10:31 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14678
14679 * function.c (update_temp_slot_address): Handle case where sum of
14680 temporary address plus offset in register is a valid address.
14681
14682 1999-12-30 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
14683
14684 * genrecog.c (change_state) Corrected typo.
14685
14686 1999-12-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14687
14688 * system.h (bcopy, bcmp, bzero, index, rindex, atof, atol, free,
14689 getcwd, getenv, getwd, sbrk, strstr, malloc, calloc, realloc,
14690 strerror, getrlimit, setrlimit, abort): Add prototype arguments.
14691
14692 1999-12-30 Bernd Schmidt <bernds@cygnus.co.uk>
14693
14694 * i386.c (ix86_expand_fp_compare): In non-sahf non-TARGET_IEEE
14695 case, expand GT comparisons correctly. Fix a comment before this
14696 part of the code.
14697
14698 1999-12-30 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
14699
14700 * dwarfout.c: Include "frame.h"
14701 * dwarf2out.c: Likewise.
14702 * Makefile.in (dwarfout.o): Depend on frame.h
14703 (dwarf2out.o): Likewise.
14704
14705 1999-12-29 "Martin v. Loewis" <martin@loewis.home.cs.tu-berlin.de>
14706
14707 Restore i386 binary compatibility in Dwarf EH info.
14708 * config/i386/i386.h (DWARF_FRAME_REGISTERS): Define as 17, the old
14709 value of FIRST_PSEUDO_REGISTER.
14710 * frame.h (DWARF_FRAME_REGISTERS): Default to FIRST_PSEUDO_REGISTER.
14711 (struct frame_state): Use DWARF_FRAME_REGISTERS.
14712 * dwarfout.c (output_reg_number): Ditto.
14713 * dwarf2out.c (reg_number, expand_builtin_init_dwarf_reg_sizes): Ditto.
14714 (DWARF_FRAME_RETURN_COLUMN): Default to DWARF_FRAME_REGISTERS.
14715
14716 1999-12-29 Bruce Korb <autogen@linuxbox.com>
14717
14718 * fixinc/fixincl.c(wait_for_pid): sometimes a WSTOPSIG of zero is OK
14719 * fixinc/fixincl.tpl(<hack>TEST_CT): Just do the existence test once
14720 (<hack>_RE_CT): not needed
14721 * fixinc/fixlib.c(is_cxx_header): moved from fixtests.c
14722 rewritten to scan the file text once only
14723 "template<..." test added
14724 * fixinc/fixlib.h(apply_fix_p_t): moved from fixtests.c
14725 (is_cxx_header): declaration added
14726 * fixinc/fixtests.c(is_cxx_header): removed
14727 (apply_fix_p_t): removed
14728 (double_slash_test): is_cxx_header is only called once now
14729 * fixinc/hackshell.tpl: indexing the fixes is now done under DEBUG
14730 * fixinc/inclhack.def(FIXINC_DEBUG): added for testing DEBUG state
14731 within the templates.
14732 The borken spelling of "broken" was fixed.
14733 * fixinc/inclhack.tpl: The $VERBOSE level is used on various messages
14734 The default level depends on FIXINC_DEBUG.
14735
14736 1999-12-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14737
14738 * crtstuff.c: If !inhibit_libc, include stdlib.h/unistd.h.
14739 Otherwise provide a declaration for atexit.
14740 (init_dummy): Make sure dummy call to atexit is nevertheless
14741 called with correct number of args.
14742
14743 * frame.c: Update comments referring to other files.
14744
14745 * libgcc2.c: Likewise.
14746
14747 1999-12-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14748
14749 * cse.c (free_element, get_element): Remove unused prototypes.
14750
14751 * fold-const.c (extract_muldiv): Initialize variables `op0' and
14752 `op1'.
14753
14754 * jump.c (invert_exp): Add explicit braces to avoid ambiguous
14755 `else' clauses.
14756
14757 Wed Dec 29 12:44:54 1999 Donald Lindsay <dlindsay@cygnus.com>
14758
14759 * configure.in,configure: case arm for mn10200-*-* now sets
14760 float_format=i32 so that float.h will correctly claim "double"
14761 to be 32 bits. Ran autoconf to generate configure from .in file.
14762
14763 Wed Dec 29 10:53:21 1999 Jeffrey A Law (law@cygnus.com)
14764
14765 * pa.md (conditional zero): If op1 is a register, force it into
14766 the same register as op0.
14767
14768 1999-12-28 Mark Mitchell <mark@codesourcery.com>
14769
14770 * tree.h (BINFO_BASETYPES): Improve documentation.
14771
14772 1999-12-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14773
14774 * configure.in (--enable-checking): Use a more portable `for'
14775 loop syntax.
14776
14777 1999-12-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14778
14779 * configure.in (AC_DECL_SYS_SIGLIST, xm-siglist.h,
14780 arm/xm-netbsd.h, NO_SYS_SIGLIST): Don't use.
14781
14782 * xm-siglist.h, arm/xm-netbsd.h, mips/xm-news.h, mips/xm-sysv4.h:
14783 Delete files.
14784
14785 * gcc.texi (NO_SYS_SIGLIST, sys_siglist, SYS_SIGLIST_DECLARED):
14786 Delete descriptions.
14787
14788 * i386/osf1elf.h, i386/xm-cygwin.h, i386/xm-mingw32.h, m68k/3b1.h,
14789 m68k/a-ux.h, m68k/dpx2.h, m68k/plexus.h, m68k/xm-hp320.h,
14790 m88k/xm-m88k.h, mips/x-sni-svr4, pa/xm-pa.h, pa/xm-pahpux.h,
14791 pa/xm-papro.h, we32k/xm-we32k.h, winnt/xm-winnt.h, xm-interix.h,
14792 xm-svr4.h: Remove all instances of sys_siglist handling.
14793
14794 1999-12-27 Jakub Jelinek <jakub@redhat.com>
14795
14796 * config/sparc/sparc.md (cmp_zero_qi,
14797 cmp_zero_extendqisi2_andcc_set, cmp_zero_qi_sp64,
14798 cmp_zero_extendqidi2_andcc_set): New patterns.
14799
14800 1999-12-28 Manfred Hollstein <mhollstein@cygnus.com>
14801
14802 * m68k/t-mot3300-gald (CROSS_LIBGCC1): Define to libgcc1-asm.a.
14803 (LIB1ASMSRC, LIB1ASMFUNCS, LIB2FUNCS_EXTRA): Define.
14804 (fpgnulib.c, xfgnulib.c): Add rules.
14805 * m68k/t-mot3300-gas: Likewise.
14806
14807 1999-12-27 Ian Lance Taylor <ian@zembu.com>
14808
14809 * configure.in: Avoid [[ by using test and changequote. Add
14810 changequote required by 1999-12-14 change.
14811 * configure: Rebuild.
14812
14813 1999-12-27 Clinton Popetz <cpopetz@cygnus.com>
14814
14815 * config/mips/mips.h: Fix typo from 12/17/99 libgcc2 fix.
14816
14817 1999-12-27 Christophe Jaillet <jaillet.christophe@caramail.com>
14818
14819 * alias.c (nonlocal_reference_p): Add else for disjoint ifs.
14820 * flow.c (find_use_as_address): Likewise.
14821 * function.c (fixup_var_refs_1): Likewise.
14822 (walk_fixup_memory_subreg, fixup_stack_1): Likewise.
14823 * jump.c (invert_exp, redirect_exp): Likewise.
14824 * loop.c (replace_call_address): Likewise.
14825 (count_nonfixed_reads): Likewise.
14826 * rtlanal.c (modified_between_p): Likewise.
14827 (modified_in_p, volatile_insn_p, volatile_refs_p): Likewise.
14828 (side_effects_p, replace_regs, jmp_uses_reg_or_mem): Likewise.
14829 * unroll.c (remap_split_bivs): Likewise.
14830
14831 1999-12-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14832
14833 * diagnostic.c (v_message_with_decl): Use .* format specifier
14834 instead of building the format specifier width manually.
14835
14836 * system.h (strsignal): Don't check HAVE_STRSIGNAL when
14837 determining whether to provide a prototype. Remove the
14838 sys_siglist clause in the conditional.
14839
14840 1999-12-23 Martin v. Löwis <loewis@informatik.hu-berlin.de>
14841
14842 * fold-const.c (operand_equal_p): Use memcmp to compare string
14843 constants.
14844 Suggested by D. J. Bernstein
14845
14846 1999-12-17 Jakub Jelinek <jakub@redhat.com>
14847
14848 * config/h8300/h8300.h (TARGET_H8300H, TARGET_H8300S): Make sure
14849 UNITS_PER_WORD and BITS_PER_WORD are compile time constants when
14850 compiling libgcc2.
14851 * config/mips/mips.h (TARGET_64BIT): Likewise.
14852 * config/rs6000/rs6000.h (TARGET_POWERPC64): Likewise.
14853 * libgcc2.c: Use {,U}{HW,W,DW}type and DWunion everywhere instead
14854 of {SI,DI}type and DIunion. Define these types to QI/HI modes on
14855 dsps. Give routines proper names if SI/DI modes are not used.
14856 * longlong.h: Use DWunion instead of DIunion.
14857
14858 1999-12-26 Zack Weinberg <zack@wolery.cumb.org>
14859
14860 * acconfig.h: New ENABLE flags: TREE_CHECKING, RTL_CHECKING,
14861 GC_CHECKING, GC_ALWAYS_COLLECT.
14862 * configure.in: Allow --enable-checking with an argument
14863 listing check modes to enable.
14864 * config.in, configure: Rebuilt.
14865 * ggc-page.c, ggc-simple.c: Define GGC_POISON (and
14866 GGC_ALWAYS_VERIFY for ggc-simple.c) only if
14867 ENABLE_GC_CHECKING. Define GGC_ALWAYS_COLLECT only if
14868 ENABLE_GC_ALWAYS_COLLECT.
14869 * rtl.h, rtl.c: Change ENABLE_CHECKING to ENABLE_RTL_CHECKING
14870 throughout.
14871 * tree.h, tree.c: Change ENABLE_CHECKING to
14872 ENABLE_TREE_CHECKING throughout.
14873
14874 Sun Dec 26 07:48:20 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14875
14876 * fold-const.c (fold_truthop): Properly check for FP RHS.
14877
14878 1999-12-24 Mark Mitchell <mark@codesourcery.com>
14879
14880 * toplev.h (note_deferall_of_defined_inline_function): Declare.
14881 * toplev.c (note_deferral_of_defined_inline_function): New
14882 function, split out from ...
14883 (rest_of_compilation): ... here. Use it.
14884
14885 Fri Dec 24 12:34:26 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14886
14887 * expr.c (store_constructor): Don't call clear_storage if size is
14888 variable.
14889
14890 1999-12-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14891
14892 * Makefile.in (toplev.o): Depend on loop.h.
14893
14894 * dwarfout.c: Include tm_p.h.
14895
14896 * emit-rtl.c (restore_emit_status): Mark parameter with
14897 ATTRIBUTE_UNUSED.
14898
14899 * final.c (final_scan_insn): Likewise.
14900
14901 * flow.c (flow_nodes_print, flow_exits_print, flow_loops_cfg_dump,
14902 flow_loop_nested_p, flow_loop_exits_find, flow_loop_nodes_find,
14903 flow_depth_first_order_compute, flow_loop_pre_header_find,
14904 flow_loop_tree_node_add, flow_loops_tree_build,
14905 flow_loop_level_compute, flow_loops_level_compute,
14906 flow_loop_outside_edge_p): Add prototypes.
14907 (recompute_reg_usage): Mark parameters with ATTRIBUTE_UNUSED.
14908
14909 * ggc-callbacks.c (lang_mark_tree, lang_mark_false_label_stack):
14910 Mark with ATTRIBUTE_NORETURN.
14911
14912 * hash.c (hash_newfunc): Mark parameter with ATTRIBUTE_UNUSED.
14913
14914 * local-alloc.c (no_conflict_p): Likewise.
14915
14916 * loop.c (insert_bct): Hide definitions of variables with hidden
14917 usage.
14918 (note_reg_stored): Mark parameter with ATTRIBUTE_UNUSED.
14919
14920 * regclass.c (memory_move_secondary_cost): Mark variable `mem'
14921 with ATTRIBUTE_UNUSED.
14922 (record_reg_classes): Mark parameter with ATTRIBUTE_UNUSED.
14923 (reg_scan): Likewise.
14924
14925 * reload.c (find_reloads): Remove unused variables `changed'.
14926
14927 * reload1.c (reload_reg_class_lower): Don't unnecessarily cast
14928 away const-ness.
14929 (allocate_reload_reg): Mark parameter with ATTRIBUTE_UNUSED.
14930 Remove unused variable `insn'.
14931
14932 * toplev.c: Include loop.h.
14933 (report_file_and_line): Remove unnecessary prototype.
14934
14935 * tree.c (build_block): Mark parameter with ATTRIBUTE_UNUSED.
14936
14937 * unroll.c (biv_total_increment): Likewise.
14938
14939 Thu Dec 23 23:15:22 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
14940
14941 * reload1.c (emit_input_reload_insns): Restore old behaviour
14942 wrt. 'special' reloads.
14943
14944 1999-12-23 Zack Weinberg <zack@wolery.cumb.org>
14945
14946 * Makefile.in (ggc-simple.c, ggc-page.c): Don't depend on
14947 hash.h. (cse.c): Don't depend on hashtab.h.
14948
14949 * cse.c: Don't include hashtab.h.
14950 (hash_cse_reg_info, cse_reg_info_equal_p): Delete prototypes
14951 of dead functions.
14952 * ggc-simple.c: Don't include hash.h.
14953
14954 1999-12-22 Jason Merrill <jason@casey.cygnus.com>
14955
14956 * dwarf2out.c (add_abstract_origin_attribute): Call
14957 gen_abstract_function on our function context.
14958
14959 Thu Dec 23 03:57:10 1999 Hans-Peter Nilsson <hp@bitrange.com>
14960
14961 * Makefile.in (INTEGRATE_H): Fix typo: INTEGRATE_H, not INTREGRATE_H.
14962
14963 1999-12-23 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14964
14965 * config/c4x/c4x.c (c4x_address_cost): Add statement to default
14966 case in switch.
14967
14968 1999-12-22 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14969
14970 * config/c4x/c4x.md (*addqi3_noclobber_reload): Change operand 0
14971 constraints to "a!r".
14972
14973 1999-12-21 Mark Mitchell <mark@codesourcery.com>
14974
14975 * Makefile.in (calls.o): Depend on function.h.
14976 (alias.o): Likewise.
14977
14978 1999-12-21 Bernd Schmidt <bernds@cygnus.co.uk>
14979
14980 * reload1.c (emit_reload_insns): Break out code and variables into...
14981 (input_reload_insns, other_input_address_reload_insns,
14982 other_input_reload_insns, input_address_reload_insns,
14983 inpaddr_address_reload_insns, output_reload_insns,
14984 output_address_reload_insns, outaddr_address_reload_insns,
14985 operand_reload_insns, other_operand_reload_insns,
14986 other_output_reload_insns): ... new static variables, and...
14987 (emit_input_reload_insns, emit_output_reload_insns, do_input_reload,
14988 do_output_reload): ... new functions.
14989
14990 Tue Dec 21 07:06:36 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14991
14992 * pa.h (FUNCTION_ARG_BOUNDARY): Never return 0.
14993
14994 1999-12-21 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14995
14996 * md.texi: Add c4x constraints documentation.
14997
14998 1999-12-21 Martin v. Löwis <loewis@informatik.hu-berlin.de>
14999
15000 * config/i386/dgux.c (struct option): Rename to
15001 lang_independent_option.
15002 (struct m_options): Add description field.
15003 (output_options): Rename option type, add sep declaration, output
15004 ix86_cpu_string and ix86_arch_string only if set.
15005 (output_file_start): Rename option type.
15006
15007 Mon Dec 20 23:15:36 1999 Mike Stump <mrs@wrs.com>
15008
15009 * Makefile.in (crtbegin.o, crtend.o, s-crtS): Depend on
15010 stmp-int-hdrs.
15011 (libgcc2.a): Similarly.
15012
15013 Mon Dec 20 23:06:47 1999 David Edelsohn <edelsohn@gnu.org>
15014
15015 * longlong.h (_ARCH_PPC): Only protect add_ssaaaa and sub_ddmmss
15016 with W_TYPE_SIZE == 32. Do not fall through to POWER architecture
15017 for umul_ppmm and smul_ppmm if !_ARCH_PPC and !_ARCH_POWER.
15018
15019 Mon Dec 20 23:02:03 1999 Jeffrey A Law (law@cygnus.com)
15020
15021 * fold-const.c (real_hex_to_f): Remove unused "isldouble" variable.
15022 Remove redundant initialization of "frexpon" and "expon".
15023
15024 Mon Dec 20 15:00:04 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15025
15026 * tree.c (real_value_from_int_cst): Clear REAL_VALUE_TYPE object first.
15027
15028 * expr.c (store_constructor): New argument SIZE; pass to clear_storage.
15029 (store_constructor_field, expand_expr): Pass new arg.
15030
15031 1999-12-20 Mark Mitchell <mark@codesourcery.com>
15032
15033 * Makefile.in (explow.o): Depend on function.h.
15034
15035 * stor-layout.c (set_sizetype): Fix typo.
15036
15037 1999-12-20 Bernd Schmidt <bernds@cygnus.co.uk>
15038
15039 * function.c (cfun): Renamed from current_function. All users
15040 changed.
15041 * function.h (cfun): Rename declaration as well.
15042
15043 * reload.h (struct insn_chain): Change live_throughout and dead_or_set
15044 to be of type regset_head, not regset. All users changed by adding
15045 address operator.
15046 * reload1.c (new_insn_chain): Don't allocate regsets, just clear them.
15047
15048 1999-12-20 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15049
15050 * config/c4x/rtems.h: New file.
15051
15052 1999-12-19 Bernd Schmidt <bernds@cygnus.co.uk>
15053
15054 * reload1.c (spill_failure): Take class of failed reload as argument
15055 and print it. Caller changed.
15056
15057 Sun Dec 19 07:50:42 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15058
15059 * rs6000.h (SUBTARGET_DEFAULT): New macro.
15060 (TARGET_SWITCHES): Allow subtargets to default switches.
15061 * rs6000/vxppc.h (SUBTARGET_DEFAULT): New macro.
15062
15063 1999-12-18 Mark Mitchell <mark@codesourcery.com>
15064
15065 * crtstuff.c (__do_global_ctors_aux): Do not call __cxa_finalize
15066 in a main program.
15067
15068 Sat Dec 18 20:42:43 1999 Richard Henderson <rth@cygnus.com>
15069
15070 * cccp.c (main): Define __STDC_VERSION__ as necessary.
15071 * cppinit.c (cpp_handle_option): Likewise.
15072
15073 * ginclude/stdarg.h (va_copy): Use __STDC_VERSION__ to
15074 determine when to define.
15075
15076 Sat Dec 18 20:34:00 1999 Richard Henderson <rth@cygnus.com>
15077
15078 * alpha.c (alpha_emit_conditional_move): If TARGET_FIX, handle
15079 cmove with mismatched test and data modes.
15080
15081 Sat Dec 18 20:30:15 1999 Richard Henderson <rth@cygnus.com>
15082
15083 * c-typeck.c (c_expand_start_case): Don't warn for long switch
15084 in system headers.
15085
15086 Sat Dec 18 16:28:43 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15087
15088 * alias.c: Minor reformatting.
15089 * flow.c: Likewise.
15090 * regs.h: Likewise.
15091 * stor-layout.c: Likewise.
15092 * fold-const.c: Likewise.
15093 (OVERFLOW_SUM_SIGN): Renamed from overflow_sum_sign.
15094 (struct cb_args, const_binop_1, const_binop): Pass type of arg,
15095 not arg itself.
15096 (size_int_wide): Cache nodes even if garbage collecting.
15097 (twoval_comparison_p): Reenable SAVE_EXPR case if operand
15098 of SAVE_EXPR has no side effects.
15099 * cse.c: Move a comment.
15100 * tree.c: Minor reformatting.
15101 (int_size_in_bytes): Return -1 if constant overflows.
15102
15103 Sat Dec 18 18:30:20 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
15104
15105 * unroll.c (copy_loop_body): Don't treat a REG like a PLUS.
15106
15107 1999-12-18 10:42 -0800 Zack Weinberg <zack@wolery.cumb.org>
15108
15109 * objc/objc-parse.c: Regenerate. This file must be rebuilt
15110 after any change to c-parse.in, even if objc-parse.y didn't
15111 change. Oops.
15112
15113 1999-12-18 David S. Miller <davem@redhat.com>
15114
15115 * toplev.c (rest_of_compilation): Restore BLOCK tree
15116 reconstruction and branch shortening changes lost in
15117 December 18th change.
15118
15119 Sat Dec 18 05:29:29 1999 Scott Bambrough <scottb@netwinder.org>
15120
15121 * config/arm/linux-elf.h: Change all instances of
15122 ARM_FLAG_SHORT_BYTES to ARM_FLAG_MMU_TRAPS.
15123 * config/arm/uclinux-elf.h: Likewise.
15124
15125 1999-12-18 Gabriel Dos Reis <gdr@codesourcery.com>
15126
15127 * toplev.c (notice, vmessage, v_message_with_file_and_line,
15128 v_message_with_decl, file_and_line_for_asm,
15129 v_error_with_file_and_line, v_error_with_decl, v_error_for_asm,
15130 verror, vfatal, v_warning_with_file_and_line, v_warning_with_decl,
15131 v_warning_for_asm, vwarning, vpedwarn, v_pedwarn_with_decl,
15132 v_pedwarn_with_file_and_line, vsorry, vnotice, count_error,
15133 pfatal_with_name, fatal_io_error, need_error_newline,
15134 last_error_function, last_error_tick, announce_function,
15135 default_print_error_function, print_error_function,
15136 report_error_function, fnotice, error_with_file_and_line,
15137 error_with_decl, error_for_asm, error, set_fatal_function, fatal,
15138 _fatal_insn, _fatal_insn_not_found, warning_with_file_and_line,
15139 warning_with_decl, warning_for_asm, warning, pedwarn,
15140 pedwarn_with_decl, pedwarn_with_file_and_line, sorry): Move to
15141 diagnostic.c
15142 (compile_file): Use fnotice instead of notice. Adjust call.
15143
15144 * diagnostic.c: New file.
15145
15146 * Makefile.in (OBJS): Include diagnostic.o
15147 (diagnostic.o): Define dependence.
15148
15149 1999-12-18 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15150
15151 * config/c4x/c4x.h (ASM_OUTPUT_XXX): Wrap in do-while(0).
15152 Tweak formatting.
15153
15154 1999-12-18 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15155
15156 * config/c4x/c4x.md (rpts_top, rptb_top): Add clobbers for rs and re.
15157
15158 1999-12-17 13:21 -0800 Zack Weinberg <zack@rabi.columbia.edu>
15159
15160 * fixtests.c (is_cxx_header): New fn, split out of
15161 double_slash_test.
15162 (else_endif_label): Allow "#endif // comment" in C++ headers,
15163 as determined by is_cxx_header.
15164 * fixfixes.c (else_endif_label_fix): Update comment.
15165 * fixincl.c: Don't output VERB_PROGRESS lines if stdout is not
15166 a tty.
15167 * genfixes: Correct double thinko in commandline parsing.
15168 * hackshell.tpl: Generate correct sh syntax for bypass
15169 entries.
15170
15171 * inclhack.def (all): Whenever an inserted preprocessor
15172 conditional is split over multiple lines, use double
15173 backslashes in this file so the fixed header will be readable.
15174
15175 (AAB_fd_zero_glibc_1_0): Rename to AAB_fd_zero_asm_posix_types_h
15176 and add bypass entry for correct version of this header.
15177 (AAB_fd_zero_glibc_1_x): Rename to AAB_fd_zero_gnu_types_h.
15178 (AAB_fd_zero_glibc_2_0): Rename to AAB_fd_zero_selectbits_h.
15179
15180 (hpux8_bogus_inlines): New fix, split from...
15181 (ultrix_atof_param) ... here.
15182 (math_expression): Add bypass entry keyed to glibc comment
15183 indicating the problem has been dealt with; disable
15184 unnecessary sed operations; update commentary.
15185 (math_gcc_ifndefs): Rename to math_huge_val_from_dbl_max,
15186 add select and bypass entries, simplify shell operation.
15187 (math_huge_val_ifndef): Split from math_gcc_ifndefs.
15188
15189 (ip_missing_semi, rs6000_param, tinfo_cplusplus,
15190 ultrix_atof_param): Add select entry.
15191 (stdio_va_list, sunos_mather_decl): Add bypass entry.
15192 (systypes_for_aix, sysv86_string, tinfo_cplusplus): Put the
15193 comments with the fixes they describe.
15194
15195 * c-parse.in (string action): Do not warn about ANSI string
15196 concatenation in system headers. Affects C parser only.
15197 * c-parse.y, c-parse.c, c-parse.h: Rebuild.
15198
15199 1999-12-16 Jakub Jelinek <jakub@redhat.com>
15200
15201 * config/sparc/sparc.h (TARGET_ARCH32): Exchange ifdefs so that if
15202 compiling libgcc2 the macro depends always on arch cpp defines.
15203
15204 Fri Dec 17 10:34:16 1999 Richard Earnshaw <rearnsha@arm.com>
15205
15206 * loop.c (insert_loop_mem): Don't record MEMs from inside
15207 EXPR_LISTs.
15208
15209 Fri Dec 17 12:08:11 MET 1999 Jan Hubicka <hubicka@freesoftr.cz>
15210
15211 * regclass.c (regclass): Do not use flowgraph when not optimizing.
15212
15213 * gcse.c (try_replace_reg): Do replacements in REG_EQUAL/REG_EQUIV
15214 notes too, create one when replacement failed, attempt to simplify
15215 resulting notes.
15216 (cprop_insn): Propagate even to registers mentioned only in REG_EQUAL
15217 or REG_EQUIV notes.
15218
15219 1999-12-16 Mark Mitchell <mark@codesourcery.com>
15220
15221 * crtstuff.c (__dso_handle): Declare.
15222 (__cxa_finalize): Likewise.
15223 (do_global_dtors_aux): Call __cxa_finalize if __dso_handle is
15224 non-NULL.
15225
15226 * invoke.texi: Document -fuse-cxa-atexit.
15227
15228 * tree.h (ptr_type_node): Document.
15229 (const_ptr_type_node): Likewise.
15230
15231 Fri Dec 17 01:32:38 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
15232
15233 * regmove.c (optimize_reg_copy_1): Ignore LOOP notes.
15234 (optimize_reg_copy_2): Likewise.
15235 (optimize_reg_copy_3): Likewise.
15236 (fixup_match_2): Likewise.
15237 (regmove_optimize): Likewise.
15238 (fixup_match_1): Liekwise.
15239
15240 * i386.md (HI to SImode promoting splitters): Rewrite.
15241 (pushsf mem peep2): New.
15242 (testhi to andhi peep2): Remove.
15243 * i386.h (x86_promote_QImode): New.
15244 (TARGET_PROMOTE_QImode): New.
15245 (PREDICATE_CODES): Add promotable_binary_operator.
15246 * i386.c (x86_promote_QImode0: New.
15247 (promotable_binary_operator): New.
15248 * i386-protos.h (promotable_binary_operator): New.
15249
15250 * i386.md (test?i_1): Use "nonmemory_operand" predicate, simplify
15251 condition.
15252 (one_cmpl?i*): Pass "NOT" to unary_operator_ok.
15253
15254 1999-12-16 Mark Mitchell <mark@codesourcery.com>
15255
15256 * Makefile.in (INTREGRATE_H): Rename to INTEGRATE_H.
15257 * function.c (insert_block_after_note): Remove.
15258 (retrofit_block): Likewise.
15259 (identify_blocks): Fix indentation.
15260 (reorder_blocks): Don't NULL out NOTE_SOURCE_FILE for a
15261 NOTE_INSN_BLOCK_BEG or NOTE_INSN_BLOCK_END.
15262 * function.h (insert_block_after_note): Remove prototype.
15263 (retrofit_block): Likewise.
15264 * integrate.c (expand_inline_function): Don't call
15265 find_loop_tree_blocks. Use expand_start_bindings_and_block, not
15266 just expand_start_bindings. Use the block_map to remap old
15267 NOTE_BLOCKs to new ones.
15268 (integrate_decl_tree): Keep track of remapped blocks.
15269 * integrate.h (struct inline_remap): Add block_map.
15270 * stmt.c (expand_fixup): Don't try to retrofit_blocks. Just set
15271 NOTE_BLOCK on the notes.
15272 (expand_start_bindings): Rename to ...
15273 (expand_start_bindings_and_block): Add parameter. Set NOTE_BLOCK.
15274 (expand_end_bindings): Set NOTE_BLOCK.
15275 * toplev.c (rest_of_compilation): In function-at-a-time-mode,
15276 reconstruct the BLOCK tree.
15277 * tree.h (expand_start_bindings): Macroize. Call ...
15278 (expand_start_bindings_and_block): New function.
15279
15280 1999-12-16 Jakub Jelinek <jakub@redhat.com>
15281
15282 * config/sparc/sparc.c (print_operand): Cast fprintf arguments
15283 to match the format.
15284
15285 1999-12-16 David S. Miller <davem@redhat.com>
15286
15287 * expr.c (emit_move_insn_1): Only emit clobbers if one of
15288 the outputs is a SUBREG.
15289 * rtlanal.c (reg_overlap_mentioned_p): Revert December 15th
15290 change.
15291
15292 * config/sparc/sparc.c (epilogue_renumber): Add default case
15293 to switch stmt.
15294
15295 Thu Dec 16 11:33:57 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
15296
15297 * toplev.c (rest_of_compilation): Run branch shortening after
15298 reg-stack.
15299
15300 * regclass.c (loop_depth): Remove
15301 (scan_one_insn): Do not handle LOOP_NOTE insns.
15302 (regclass): Go through basic blocks and set loop_cost
15303
15304 Thu Dec 16 02:56:25 1999 Zack Weinberg <zack@bitmover.com>
15305
15306 * tree.h (DECL_FROM_INLINE): Check DECL_ABSTRACT_ORIGIN too.
15307
15308 Thu Dec 16 10:43:35 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
15309
15310 * i386.md (movqi): Use "nonimmediate_operand" for output operand.
15311 (movstrictqi, movdi, movsf, movdf, movxf): Likewise.
15312 (adddi, addqi, addhi, subdi, subqi, subhi, ffs): Likewise.
15313
15314 Thu Dec 16 02:41:26 1999 Richard Henderson (rth@cygnus.com)
15315
15316 * loop.c (insert_loop_mem): Ignore memory clobbers.
15317
15318 * combine.c (simplify_comparison): Reduce (OP (MINUS A B) 0)
15319 to (OP A B).
15320
15321 Thu Dec 16 02:26:11 1999 Jeffrey A Law (law@cygnus.com)
15322
15323 * profile.c: Remove redundant #include "output.h".
15324
15325 * h8300.md (HImode preinc peephole): Fix typo.
15326
15327 1999-12-15 Jason Merrill <jason@casey.cygnus.com>
15328
15329 * function.c (retrofit_block): Abort if we don't find a suitable insn.
15330 (insert_block_after_note): Abort if we don't have a previous block.
15331 Remove FN parameter.
15332 * function.h: Adjust.
15333
15334 1999-12-15 Mark Mitchell <mark@codesourcery.com>
15335
15336 * builtins.c (expand_builtin_mathfn): Make sure not to expand the
15337 argument more than once.
15338
15339 1999-12-15 Jason Merrill <jason@casey.cygnus.com>
15340
15341 * stmt.c (expand_decl): Expand upper bound of a dynamic array.
15342
15343 1999-12-15 Jakub Jelinek <jakub@redhat.com>
15344
15345 * expr.c (emit_group_load): Use dst mode if src is VOIDmode.
15346
15347 Wed Dec 15 16:11:55 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
15348
15349 * function.c (PREFERRED_STACK_BOUDNARY): Provide default value.
15350 (assign_stack_local_1): Limit alignment to PREFERRED_STACK_BOUNDARY,
15351 update stack_alignment_needed.
15352 (prepare_function_start): Initialize stack_alignment_needed
15353 * function.h (struct function): Add field stack_alignment_needed.
15354
15355 Wed Dec 15 14:55:24 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
15356
15357 * caller-save.c (insert_one_insn): Returns struct insn_chain *.
15358 Handle live_throughout / dead_or_set instead of live_before /
15359 live_after.
15360 (save_call_clobbered_regs): Get register livenessinformation from
15361 chain->live_throughout.
15362 (add_stored_regs): New function.
15363 (insert_restore, insert_save): Add restored / saved registers to
15364 dead_or_set.
15365 * global.c (reg_dies): New parameter chain.
15366 (reg_becomes_live): Third parameter is regs_set now.
15367 Changed all callers.
15368 (reg_dies): New parameter chain. Changed all callers.
15369 (build_insn_chain): Set live_throughout instead of
15370 live_before / live_after.
15371 * reload.h (struct insn_chain): Replace members live_before /
15372 live_after with live_throughout / dead_or_set.
15373 * reload1.c (new_insn_chain): Handle live_throughout / dead_or_set
15374 instead of live_before / live_after.
15375 (maybe_fix_stack_asms, find_reload_regs, finish_spills): Likewise.
15376 (order_regs_for_reload, find_reg, finish_spills): Likewise.
15377 (choose_reload_regs_init): Likewise.
15378 * stupid.c (current_chain, find_clobbered_regs): Delete.
15379 (stupid_life_analysis): Set chain->live_throughout chain->dead_or_set
15380 instead of chain->live_before / chain->live_after.
15381 (mark_hard_ref): New function.
15382 (stupid_mark_refs): Call mark_hard_ref. Clear chain->live_throughout.
15383
15384 1999-12-15 David S. Miller <davem@redhat.com>
15385
15386 * rtlanal.c (reg_overlap_mentioned_p): Handle CONCAT.
15387
15388 Wed Dec 15 15:05:30 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
15389
15390 * flow.c (calculate_loop_depth): Make global, remove prototype,
15391 rewrite to use new loop infrastructure.
15392 (find_basic_block): Remove calculate_loop_depth call.
15393 * toplev.c (rest_of_compilation): Call find_basic_block.
15394 * output.h (calculate_loop_depth): Declare.
15395
15396 * flow.c (dump_flow_info): Dump loop_depth.
15397 (flow_loops_nodes_find): Increase loop_depth for basic block in the
15398 body.
15399 (flow_loops_find): Initialize the loop_depth for each basic block.
15400
15401 1999-12-15 Jason Merrill <jason@casey.cygnus.com>
15402
15403 * tree.c (decl_function_context): Handle virtual functions.
15404
15405 * tlink.c (scan_linker_output): Don't look in demangled name when
15406 looking for linker output keywords.
15407
15408 * dwarfout.c (output_type): We can defer namespace-scope classes.
15409
15410 Wed Dec 15 01:23:29 1999 Jeffrey A Law (law@cygnus.com)
15411
15412 * regclass.c (record_reg_classes): Update comment for merging
15413 register class preferences in reg->reg copies. Tighten conditions
15414 for merging register class preferences in reg->reg copies.
15415
15416 Wed Dec 15 02:19:32 1999 David Edelsohn <edelsohn@gnu.org>
15417
15418 * rs6000.md (tablejumpdi): Generate DImode LABEL_REF.
15419
15420 1999-12-14 Geoff Keating <geoffk@cygnus.com>
15421
15422 * config/m68k/m68020-elf.h (ENDFILE_SPEC): Delete.
15423 (INIT_SECTION_ASM_OP): Delete.
15424 (FINI_SECTION_ASM_OP): Delete.
15425 (STARTFILE_SPEC): Define to hold just crtbegin.o.
15426
15427 1999-12-14 Jason Merrill <jason@casey.cygnus.com>
15428
15429 * dwarf2out.c (add_abstract_origin_attribute): Do call abort if
15430 the abstract origin wasn't emitted.
15431
15432 * dwarf2out.c (class_scope_p): New fn.
15433 (gen_subprogram_die): Use it.
15434 (gen_variable_die): Use it. Tweak logic.
15435 (gen_struct_or_union_type_die): Check context_die to determine
15436 if we're function-local.
15437 (dwarf2out_decl): Check DECL_BUILT_IN, not DECL_FUNCTION_CODE.
15438
15439 1999-12-14 Bernd Schmidt <bernds@cygnus.co.uk>
15440
15441 * loop.c (check_dbra_loop): Can't reverse a biv that has
15442 maybe_multiple set.
15443
15444 1999-12-14 Nick Clifton <nickc@cygnus.com>
15445
15446 * config/arm/arm.c: Add support for -mcpu=arm720 command line
15447 switch.
15448
15449 Tue Dec 14 18:13:32 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
15450
15451 * loop.c (strength_reduce): Fix sign of giv lifetime calculation
15452 for givs made from biv increments.
15453
15454 Tue Dec 14 08:11:27 1999 Richard Henderson <rth@cygnus.com>
15455
15456 * configure.in (alpha-osf, alpha-linux): Handle ev6[78].
15457 * alpha.c (override_options): Recognize -mcpu=ev67.
15458 * alpha.h (CPP_CPU_EV67_SPEC): New.
15459 (CPP_CPU_DEFAULT_SPEC): Examine TARGET_CPU_DEFAULT to use it.
15460 (EXTRA_SPECS): Update.
15461
15462 Tue Dec 14 08:04:28 1999 Richard Henderson <rth@cygnus.com>
15463
15464 * cppp.c (main): Set trigraphs and __STRICT_ANSI__ as
15465 appropriate for -lang-c89 and -std=*.
15466 * cppinit.c (cpp_handle_option): Likewise.
15467 (new_pending_define): New, split out from cpp_handle_option.
15468 * gcc.c (default_compilers): Don't define __STRICT_ANSI__
15469 or enable trigraphs for -ansi/-std=*.
15470
15471 * ginclude/stdarg.h (__va_copy): New.
15472 (va_copy): Don't define for C89.
15473
15474 Tue Dec 14 08:37:27 CST 1999 Clinton Popetz <cpopetz@cygnus.com>
15475
15476 * config/arm/arm.md (mulsidi3adddi, umulsidi3adddi): New patterns
15477 for long long multiply-accumulate.
15478
15479 Tue Dec 14 13:51:38 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
15480
15481 * regclass.c (scan_one_insn): Set loop_cost to 1 when
15482 optimizing for size.
15483
15484 1999-12-14 Bernd Schmidt <bernds@cygnus.co.uk>
15485
15486 * reload1.c (reload): Can't avoid select_reload_regs/finish_spills
15487 if something changed. Back out that part of yesterday's changes.
15488
15489 * loop.c (loop_max_reg): New static variable.
15490 (loop_optimize): Initialize it. Eliminate one unnecessary call to
15491 max_reg_num.
15492 (scan_loop): Call reg_scan_update whenever we may have added new
15493 registers, and update loop_max_reg.
15494
15495 Tue Dec 14 12:07:29 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
15496
15497 * regclass.c (record_reg_classes): Do not do the copying preferrencing
15498 when source does not die.
15499
15500 * regclass.c (record_reg_classes): Handle INOUT operands propertly.
15501
15502 1999-12-14 Jakub Jelinek <jakub@redhat.com>
15503
15504 * config/sparc/linux64.h (TARGET_LIVE_G0,
15505 TARGET_BROKEN_SAVERESTORE): Don't support weird SPARC
15506 variants on Linux.
15507 * config/sparc/linux.h (TARGET_LIVE_G0,
15508 TARGET_BROKEN_SAVERESTORE): Likewise.
15509 * config/sparc/linux-aout.h (TARGET_LIVE_G0,
15510 TARGET_BROKEN_SAVERESTORE): Likewise.
15511
15512 * config/sparc/sparc.h (SPARC_DEFAULT_CMODEL): Default to CM_32.
15513 (CONDITIONAL_REGISTER_USAGE): For block profiling fix %g4 on sparc64,
15514 not %g2.
15515 (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Use %g4 instead of %g2
15516 as sparc64 block profiling register.
15517 * config/sparc/sparc.c (sparc_override_options): Allow block
15518 profiling with -m32.
15519 (sparc_block_profiler): Use %g4 instead of %g2 as sparc64 block
15520 profiling register.
15521 * config/sparc/linux64.h (MACHINE_STATE_*): Only provide these
15522 macros on TARGET_ARCH32. sparc.h has macros good enough for sparc64.
15523 * config/sparc/sol2.h (MACHINE_STATE_*): Likewise.
15524
15525 * config/sparc/xm-sp64.h: Avoid using __sparc_v9__ when testing
15526 for sparc64.
15527 * config/sparc/sparc.h: Likewise.
15528 * config/sparc/xm-sysv4-64.h: Likewise.
15529 * config/float-sparc.h: Likewise.
15530 * glimits.h: Likewise.
15531 * longlong.h: Likewise.
15532
15533 * config/sparc/linux64.h (DEFAULT_VTABLE_THUNKS): Define to 1.
15534 (ASM_IDENTIFY_GCC): Remove.
15535
15536 1999-12-14 Bernd Schmidt <bernds@cygnus.co.uk>
15537
15538 * combine.c (combine_simplify_rtx): Don't make shared rtl.
15539 (simplify_logical): Likewise.
15540
15541 1999-12-14 Mumit Khan <khan@xraylith.wisc.edu>
15542
15543 * cccp.c (INO_T_EQ): Disable inode-based optimization for Cygwin.
15544 * cppfiles.c (INO_T_EQ): Likewise.
15545
15546 1999-12-14 Mumit Khan <khan@xraylith.wisc.edu>
15547
15548 * i386/crtdll.h (STARTFILE_SPEC): Add -pg profiling support.
15549 * i386/mingw32.h (LIB_SPEC): Likewise.
15550 (STARTFILE_SPEC): Likewise.
15551 * i386/uwin.h (LIB_SPEC): Likewise.
15552 (STARTFILE_SPEC): Likewise.
15553
15554 * i386/mingw32.h (SUBTARGET_PROLOGUE): Override Cygwin definition.
15555 * i386/uwin.h (SUBTARGET_PROLOGUE): Likewise.
15556
15557 Mon Dec 13 20:25:29 1999 Jeffrey A Law (law@cygnus.com)
15558
15559 * combine.c (combine_simplify_rtx): Fix order of checks for
15560 (ashiftrt foo C) -> (lt foo (const_int 0)) simplification.
15561
15562 1999-12-13 Clinton Popetz <cpopetz@cygnus.com>
15563
15564 * config/arm/arm.md (*mulsidi3adddi, *umulsidi3adddi) Backed out
15565 12/10/99 change, reapplied to merged-arm-thumb-backend-branch.
15566
15567 1999-12-10 Bernd Schmidt <bernds@cygnus.co.uk>
15568
15569 * hard-reg-set.h (inv_reg_alloc_order): Declare if REG_ALLOC_ORDER is
15570 defined.
15571 * regclass.c (inv_reg_alloc_order): New array.
15572 (regclass_init): If REG_ALLOC_ORDER is defined, initialize it.
15573
15574 * reload.h (struct insn_chain): Delete fields group_size, group_mode,
15575 counted_for_groups, counted_for_nongroups. Add fields rld and
15576 n_reloads.
15577 * reload.c (push_secondary_reload): Don't set nongroup field of
15578 new reloads.
15579 (push_reload): Likewise.
15580 (find_reloads): Delete code to compute nongroup fields.
15581 * reload1.c (reload_insn_firstobj): New static variable.
15582 (pseudos_counted, spilled_pseudos): Now of type regset_head. All
15583 users changed.
15584 (calculate_needs, find_tworeg_group, find_group, possible_group_p,
15585 count_possible_groups, modes_equiv_for_class_p, new_spill_reg,
15586 dump_needs, maybe_mark_pseudo_spilled, hard_reg_use_compare): Delete
15587 functions.
15588 (count_pseudo, select_reload_regs, copy_reloads, find_reg): New
15589 functions.
15590 (struct hard_reg_n_uses): Deleted.
15591 (potential_reload_regs): Deleted.
15592 (init_reload): Initialize spilled_pseudos and pseudos_counted.
15593 (reload): Don't try to allocate reload registers if we already know
15594 we have to make another pass. Call select_reload_regs. Free memory
15595 starting with reload_firstobj when starting another pass.
15596 Don't allocate spilled_pseudos.
15597 (calculate_needs_all_insns): Call copy_reloads for an insn that
15598 needs reloads; don't call calculate_needs.
15599 (spill_cost): New static array.
15600 (used_spill_regs_local): New static variable.
15601 (order_regs_for_reload): Rewrite to lose hard_reg_n_uses and the code
15602 to compute potential_reload_regs.
15603 (find_reload_regs): Completely rewritten to use find_reg.
15604 (allocate_reload_reg): Don't test counted_for_groups or
15605 counted_for_nongroups. Lose NOERROR arg and code to give an error;
15606 all cllers changed.
15607 (choose_reload_regs): Add fallback code that uses the existing
15608 register allocation from find_reload_regs.
15609
15610 Mon Dec 13 00:54:14 1999 Philippe De Muyter <phdm@macqel.be>
15611
15612 * flow.c (create_edge_list): Cast xmalloc return value.
15613
15614 Mon Dec 13 00:47:58 1999 Jeffrey A Law (law@cygnus.com)
15615
15616 * doprnt.c: Remove incorrect comment closure.
15617
15618 * cse.c: Fix a few minor whitespace goofs.
15619
15620 1999-12-13 Don Bowman <don@pixstream.com>
15621
15622 * mips/vxworks.h: Fix problem with comment termination.
15623 (EXTRA_SECTIONS): Add in_sbss.
15624 (EXTRA_SECTION_FUNCTIONS): Corresponding changes.
15625
15626 1999-12-12 David S. Miller <davem@redhat.com>
15627
15628 * cse.c (struct cse_reg_info): Add hash_next member,
15629 reorder rest of struct for better packing on 64-bit
15630 hosts.
15631 (cse_reg_info_tree): Kill.
15632 (REGHASH_SHIFT, REGHASH_SIZE, REGHASH_MASK, reg_hash,
15633 REGHASH_FN): New custom pow2 hash mechanism.
15634 (NBUCKETS): Kill.
15635 (HASH_SHIFT, HASH_SIZE, HASH_MASK, HASH, table): Rework to
15636 use a pow2 hash table.
15637 (get_cse_reg_info): Rework to use new REGHASH.
15638 (new_basic_block): Likewise, use HASH_SIZE, and inline
15639 free_element call.
15640 (remove_from_table): Rework to use HASH_SIZE/HASH_MASK,
15641 and inline free_element call.
15642 (lookup_as_function, insert, flush_hash_table, invalidate,
15643 remove_invalid_refs, remove_invalid_subreg_refs, rehash_using_reg,
15644 invalidate_for_call, use_related_value, find_comparison_args,
15645 fold_rtx, equiv_constant, cse_insn, invalidate_memory): Likewise.
15646 (hash_cse_reg_info, cse_reg_info_equal_p, free_element,
15647 get_element): Kill.
15648
15649 Sun Dec 12 21:31:44 1999 Jeffrey A Law (law@cygnus.com)
15650
15651 * cse.c (cse_basic_block): Free qty_table consistently.
15652
15653 1999-12-12 David S. Miller <davem@redhat.com>
15654 Jakub Jelinek <jakub@redhat.com>
15655
15656 * config/sparc/sparc.md (movtf reg/reg split): Don't generate
15657 SUBREGs by hand, gen the appropriate hard reg directly.
15658 (movtf reg/mem split): Likewise and alter_subreg on destination
15659 if necessary.
15660 (movtf mem/reg split): Similarly.
15661 (movdf_cc_sp64): Rename from hidden pattern.
15662 (movtf_cc_hq_sp64): Renamed from movtf_cc_sp64.
15663 (movtf_cc_sp64, following split): New pattern and splitter.
15664 (movdf_cc_reg_sp64): Rename from hidden pattern.
15665 (movtf_cc_reg_hq_sp64): Renamed from movtf_cc_reg_sp64, require
15666 TARGET_HARD_QUAD.
15667 (movtf_cc_reg_sp64, following split): New pattern and splitter.
15668
15669 1999-12-12 Stephen L Moshier <moshier@mediaone.net>
15670
15671 * loop.c (load_mems): Don't hoist written floating point mem
15672 if -ffloat-store.
15673
15674 1999-12-12 Mark Mitchell <mark@codesourcery.com>
15675
15676 * except.h (struct eh_queue): Add `next' pointer.
15677 (struct eh_status): Make x_ehqueue a pointer.
15678 (push_ehqueue): Declare.
15679 (pop_ehqueue): Likewise.
15680 * except.c (expand_eh_region_end): Adjust now that ehqueue is a
15681 pointer.
15682 (expand_fixup_region_end): Likewise.
15683 (expand_leftover_cleanups): Likewise.
15684 (push_ehqueue): Define.
15685 (pop_ehqueue): Likewise.
15686 (emit_cleanup_handler): Use push_ehqueue and pop_ehqueue rather
15687 than doing it inline.
15688 (expand_start_all_catch): Adjust now that ehqueue is a
15689 pointer.
15690 (mark_eh_queue): Mark all level of the queue.
15691 (mark_eh_status): Adjust now that ehqueue is a
15692 pointer.
15693 (init_eh_for_function): Allocate ehqueue.
15694 (free_eh_status): Free it.
15695 * stmt.c (expand_cleanups): Save the ehqueue around the cleanup
15696 expansion for a fixup.
15697
15698 1999-12-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15699
15700 * gthr-single.h (__gthread_active_p): Add prototype arguments.
15701
15702 * libgcc2.c (__udivmoddi4): Remove unnecessary decls.
15703 (__dummy, __builtin_saveregs, __bb_exit_trace_func, __bb_init_prg,
15704 __bb_trace_func, __bb_trace_func_ret, __bb_trace_ret,
15705 function_ptr, getpagesize, __enable_execute_stack,
15706 __enable_execute_stack, __clear_insn_cache,
15707 __enable_execute_stack, __do_global_dtors, __do_global_ctors,
15708 _cleanup, _exit, __default_terminate, __terminate_func,
15709 __terminate, __empty, __throw, new_eh_context,
15710 eh_context_initialize, eh_context_static, eh_context_specific,
15711 get_eh_context, __get_eh_context, __get_eh_info,
15712 init_reg_size_table, eh_threads_initialize,
15713 __get_dynamic_handler_chain, __sjthrow, __sjpopnthrow,
15714 __unwinding_cleanup, throw_helper, __throw, __rethrow,
15715 __pure_virtual): Add prototype arguments.
15716 (__bb_exit_func): Cast a sizeof to long when comparing against one.
15717 Cast a signed value to unsigned long when comparing against one.
15718 (new_eh_context): Wrap in _GTHREADS macro.
15719 (__sjthrow, __sjpopnthrow): Initialize variable `cleanup' at
15720 declaration.
15721 (in_reg_window): Mark parameters with __attribute__ ((__unused__)).
15722 (throw_helper): Initialize variables `handler_p' and `pc_p'.
15723
15724 1999-12-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15725
15726 * combine.c (record_promoted_value): Remove unused variable
15727 `links2'.
15728
15729 * emit-rtl.c (renumber_insns): Likewise for `old_max_uid'.
15730
15731 * global.c (record_conflicts): Likewise for `j'.
15732
15733 * genoutput.c (output_insn_data): Don't unnecessarily cast away
15734 const-ness.
15735
15736 1999-12-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15737
15738 * i386-protos.h (output_387_binary_op, output_fix_trunc,
15739 output_fp_compare): Constify a char*.
15740
15741 * i386.c (ix86_split_to_parts, ix86_safe_length_prefix): Add
15742 static prototypes.
15743 (override_options, ix86_comp_type_attributes, print_operand,
15744 output_387_binary_op, output_fix_trunc, output_fp_compare):
15745 Constify a char*.
15746 (ix86_sched_reorder): Mark parameter `clock_var' with
15747 ATTRIBUTE_UNUSED.
15748
15749 * i386.h (DEBUG_PRINT_REG): Constify a char*.
15750
15751 Fri Dec 10 16:12:13 1999 Alexandre Petit-Bianco <apbianco@cygnus.com>
15752
15753 * tree.def (EXPR_WITH_FILE_LOCATION): Temporarily add a third
15754 operand, for use in the Java front-end.
15755
15756 1999-12-10 Ben Collins <bcollins@debian.org>
15757
15758 * configure.in: Fix typo for "-64" in 64bit as check.
15759 * configure: Rebuilt.
15760
15761 1999-12-10 Jakub Jelinek <jakub@redhat.com>
15762
15763 * longlong.h (__sparc_v9__): Use %rDIGIT instead of %DIGIT where
15764 appropriate.
15765
15766 1999-12-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15767
15768 * c-parse.in (string): With -Wtraditional, warn if ANSI string
15769 concatenation is utilized.
15770
15771 * invoke.texi (-Wtraditional): Document it.
15772
15773 1999-12-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15774
15775 * flow.c (flow_loops_dump): Avoid ANSI string concatenation.
15776 Cast a ptrdiff_t to long and pass it to printf with %ld.
15777
15778 1999-12-10 Geoff Keating <geoffk@cygnus.com>
15779
15780 * config/m68k/m68k.h (CONDITIONAL_REGISTER_USAGE): If we have no
15781 68881, we have no 68881 registers at all.
15782 (HARD_REGNO_MODE_OK): It is always OK to put a MODE_FLOAT
15783 value in a 68881 register if it is available.
15784
15785 1999-12-10 Clinton Popetz <cpopetz@cygnus.com>
15786
15787 * config/arm/arm.md (*mulsidi3adddi, *umulsidi3adddi): New patterns
15788 for long long multiply-accumulate.
15789
15790 1999-12-10 Bernd Schmidt <bernds@cygnus.co.uk>
15791
15792 * loop.c (insert_loop_mem): Undo last change.
15793
15794 1999-12-10 David S. Miller <davem@redhat.com>
15795
15796 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p, fp_high_losum_p):
15797 New functions.
15798 * config/sparc/sparc-protos.h: Add them.
15799 * config/sparc/sparc.h: Add them to PREDICATE_CODES.
15800 (EXTRA_CONSTRAINT_BASE): New macro, handling Q, R, and S
15801 constraints which use those helpers.
15802 (EXTRA_CONSTRAINT): Use this new macro.
15803 * md.texi: Update sparc target constraints documentation.
15804 * config/sparc/sparc.md (clear_sf, clear_sfp, movsf_const_intreg,
15805 movsf_const_high, movsf_const_lo, movsf_insn): Delete.
15806 (movsf_insn_novis_liveg0, movsf_insn_novis_noliveg0,
15807 movsf_insn_vis, movsf_lo_sum, movsf_high): New patterns.
15808 (movsf high/lo_sum split): Rework for new patterns.
15809 (movsf expander): Allow storing fp_zero to memory if ! live_g0.
15810
15811 1999-12-09 Gavin Romig-Koch <gavin@cetus.cygnus.com>
15812
15813 * c-common.c (c_common_nodes_and_builtins):
15814 Create __builtin_ptrdiff_t and __builtin_size_t.
15815
15816 Thu Dec 9 18:05:48 1999 Jeffrey A Law (law@cygnus.com)
15817
15818 * pa/elf.h (MAX_OFILE_ALIGNMENT): Define.
15819
15820 Fri Dec 10 00:53:10 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
15821
15822 * regclass.c (globalize_reg): Re-instate test that allows
15823 fixed registers to be declared as a variable even after functions
15824 are defined.
15825
15826 Fri Dec 10 00:52:13 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
15827
15828 * i386.md (cpu attribute): Add "athlon".
15829 (athlon_decode): New attribute.
15830 (Athlon scheduling units definitions): New.
15831 (fcmp and shld patterns): Set athlon_decode to "vector".
15832 * i386.c (athlon_cost): New.
15833 (m_ATHLON): New.
15834 (x86_use_leave, x86_push_memory, x86_movx, x86_cmove, x86_deep_branch,
15835 x86_use_sahf): Set for Athlon.
15836 (x86_use_fiop): Unset for Athlon.
15837 (override_options): Define Athlon alignments and "athlon" name.
15838 (x86_adjust_cost): Penalize AGI and delayed latencies for Athlon.
15839 * i386.h (TARGET_ATHLON): New.
15840 (enum processor_type): Add PROCESSOR_ATHLON.
15841 (TARGET_CPU_DEFAULT_SPEC): Set to "-D__tune_athlon__"
15842 for CPU_DEFAULT==5
15843 (TARGET_CPP_CPU_SPECS): Set -D__tune_athlon__ for Athlon.
15844
15845 1999-12-09 Andreas Jaeger <aj@suse.de>
15846
15847 * loop.c (record_biv): Declare parameter as int.
15848
15849 * config/i386/i386-protos.h: Declare long_memory_operand.
15850
15851 1999-12-09 Mark Mitchell <mark@codesourcery.com>
15852
15853 * tree.c (copy_node): Do zero the TREE_CHAIN, even for an
15854 EXPR_WITH_FILE_LOCATION.
15855
15856 Thu Dec 9 11:36:24 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
15857
15858 * i386.md (neg??, abs?f, one_cmpl?i): Use nonimmediate_operand
15859 in expander.
15860
15861 * flow.c (recompute_reg_usage): Use basic block info to get loop_depth.
15862
15863 * combine.c (try_combine, distribute_notes): Remove REG_N_REFS
15864 updating code.
15865
15866 1999-12-09 Jakub Jelinek <jakub@redhat.com>
15867
15868 * config/sparc/linux64.h (TARGET_DEFAULT): Make -mapp-regs
15869 default on linux64 again.
15870 * config/sparc/t-linux64: Add mno-app-regs and non-medlow code
15871 models for multilibing.
15872 * genmultilib: Accept | as alternative separator within a set in
15873 MULTILIB_OPTIONS.
15874
15875 * config/sparc/sparc.h (PROMOTE_FOR_CALL_ONLY): Define.
15876
15877 * calls.c (precompute_arguments): Make sure initial_value contains
15878 value pseudo which CSE expects.
15879 * cse.c (struct set): New entry orig_src.
15880 (cse_insn): Set it early on entry, use it for libcall EQUIV note
15881 replacement.
15882
15883 Wed Dec 8 22:24:15 1999 Richard Henderson <rth@cygnus.com>
15884
15885 * flow.c (count_basic_blocks): Don't add (use (const_int 0)) insns.
15886
15887 1999-12-08 Bernd Schmidt <bernds@cygnus.co.uk>
15888
15889 * loop.c (insert_loop_mem): Don't hoist volatile mems out of loops.
15890
15891 1999-12-08 Jakub Jelinek <jakub@redhat.com>
15892
15893 * config/sparc/sparc.c (ultra_cmove_results_ready_p,
15894 ultra_fpmode_conflict_exists, ultra_flush_pipeline): Typo fix.
15895
15896 * config/sparc/sparc.h (SPARC_SETHI_P): Don't look at topmost 32 bits
15897 if TARGET_ARCH32.
15898
15899 * longlong.h: Merge in changes from glibc.
15900 Also don't clobber %g2 register in 32bit SPARC assembly, so that
15901 -mno-app-regs libgcc can be compiled.
15902 * libgcc2.c: Add defines so that the updated longlong.h
15903 can be used in libgcc2.a. Also, make sure on most architectures
15904 (at least on all which have optimized code in longlong.h defined
15905 for) {SI,W}_TYPE_SIZE is suitable for preprocessor tests.
15906
15907 1999-12-08 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
15908
15909 * config/sparc/sol2-64.h: Same as sol2-sld-64.h, except that
15910 `-m EMULATION' is added to non-default LINK_ARCH_SPECs.
15911 * configure.in: Use sol2-64.h instead of sol2-sld-64.h if linker
15912 is GNU ld.
15913 * configure: Rebuilt.
15914
15915 Wed Dec 8 03:45:40 1999 Richard Henderson <rth@cygnus.com>
15916
15917 * alpha.c (secondary_reload_class): For !BWX, sub-simode
15918 outputs require a register.
15919
15920 1999-12-08 Brendan Kehoe <brendan@cygnus.com>
15921
15922 * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS): Add _sf_to_usi
15923 _df_to_usi. Required by some targets, so US_SOFTWARE_GOFAST calls to
15924 functions like dptoul will be resolved.
15925 (libgcc2.a): Make sure that the object files from DPBIT are named
15926 differently (prefix `_dp') from those that would be coming from
15927 FPBIT.
15928
15929 1999-12-08 Alexandre Oliva <oliva@lsd.ic.unicamp.br>, Jakub Jelinek <jakub@redhat.com>
15930
15931 * configure.in: When target is sparc* and tm_file contains 64,
15932 test for 64bit support in assembler. If not supported, remove
15933 sparc/t-sol2-64 from target-dependent Makefile fragments.
15934 (AS_SPARC64_FLAG): Define to the assembler flag for 64bit.
15935 (HAVE_AS_OFFSETABLE_LO10): Rework test to use these flags.
15936 (HAVE_AS_REGISTER_PSEUDO_OP): Use config.cache.
15937 * acconfig.h (AS_SPARC64_FLAG): Added.
15938 * configure, config.in: Rebuilt.
15939 * config/sparc/sol2-sld-64.h: Same as sol2.h, if without 64bit
15940 support. Use AS_SPARC64_FLAG.
15941
15942 1999-12-07 Jakub Jelinek <jakub@redhat.com>
15943
15944 * config/sparc/sparc.c (hard_32bit_mode_classes): Mark registers
15945 suitable for holding OFmode values so that gcc works with complex
15946 quad long doubles.
15947 (hard_64bit_mode_classes): Likewise.
15948
15949 * config/sparc/sparc.md (sethi_di_medlow_embmedany_pic): Fix pattern
15950 so that it is actually matched.
15951 (sethi_di_medlow): Likewise.
15952
15953 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Consider TFmode 0.0L
15954 as legitimate constant if -mvis.
15955 * config/sparc/sparc.md (movtf): Likewise.
15956 (clear_sf): Use const_double_operand.
15957 (clear_sfp, clear_dfp, clear_tf, clear_tfp): New patterns.
15958
15959 * config/sparc/sparc.c (sparc_emit_float_lib_cmp): New function.
15960 * config/sparc/sparc-protos.h (sparc_emit_float_lib_cmp): Prototype.
15961 * config/sparc/sparc.h (*_LIBCALL): Only use for _Q_*
15962 routines, _Qp_* cannot be handled like that now.
15963 (INIT_TARGET_OPTABS): Likewise.
15964 * config/sparc/sparc.md (cmptf): Accept soft float ARCH64.
15965 (seq, sne, sgt, sge, slt, sle, beq, bne, bgt, bge, blt, ble): Call
15966 sparc_emit_float_lib_cmp if ARCH64 and soft float.
15967 (extendsftf2, extenddftf2, trunctfsf2, trunctfdf2, floatsitf2,
15968 floatditf2, fix_trunctfsi2, fix_trunctfdi2, addtf3, subtf3, multf3,
15969 divtf3, sqrttf3): New expanders.
15970 (extendsftf2_hq, extenddftf2_hq, trunctfsf2_hq, trunctfdf2_hq,
15971 floatsitf2_hq, floatditf2_hq, fix_trunctfsi2_hq, fix_trunctfdi2_hq,
15972 addtf3_hq, subtf3_hq, multf3_hq, divtf3_hq, sqrttf3_hq): Rename from
15973 non-_hq patterns.
15974
15975 * configure.in (sparc64-*-linux*): Use posix threads if enabled.
15976 * configure: Rebuilt.
15977 * config/sparc/linux64.h: Default to -mcpu=ultrasparc if no
15978 -mcpu is given and we're doing 64bit compiles.
15979
15980 Tue Dec 7 19:22:06 1999 Richard Henderson <rth@cygnus.com>
15981
15982 * loop.h (struct induction): Add multi_insn_incr.
15983 * loop.c (basic_induction_var): New multi_insn_incr argument.
15984 Set it if we search back through previous insns for the biv.
15985 (record_biv): New multi_insn_incr argument; fill in struct induction.
15986 (strength_reduce): Discard an iv with multiple bivs, any of
15987 which require multiple insns to increment.
15988
15989 1999-12-07 Martin v. Löwis <loewis@informatik.hu-berlin.de>
15990
15991 * invoke.texi (C Dialect Options): Remove -flang-c9x, add -std
15992 documentation.
15993
15994 1999-12-06 David S. Miller <davem@redhat.com>
15995
15996 * combine.c (check_promoted_subreg): Do not conditionalize this upon
15997 PROMOTE_FUNCTION_RETURN.
15998
15999 Mon Dec 6 15:12:14 1999 Jim Wilson <wilson@cygnus.com>
16000
16001 * regmove.c (optimize_reg_copy_1): If no REG_DEAD note, check for
16002 and handle REG_UNUSED note on insn.
16003
16004 * combine.c (force_to_mode, case LSHIFTRT): New local inner_mask. Set
16005 inner_mask instead of mask.
16006
16007 1999-12-06 Brendan Kehoe <brendan@cygnus.com>
16008
16009 * dwarf2out.c (field_byte_offset): As with dwarfout.c, size can be
16010 zero if there was an error.
16011
16012 1999-12-06 Jakub Jelinek <jakub@redhat.com>
16013
16014 * config/sparc/sparc.md (return_losum_di): Fix typo in asm
16015 output string.
16016
16017 * longlong.h: Fix clobbers in SPARC asm statements.
16018
16019 * config/sparc/sparc.c (input_operand): Allow HImode and QImode
16020 valid sethi operations when TARGET_ARCH64.
16021
16022 * calls.c (save_fixed_argument_area): If save_mode is BLKmode,
16023 always use move_by_pieces to avoid infinite recursion.
16024 (restore_fixed_argument_area): Likewise.
16025
16026 * combine.c (check_promoted_subreg, record_promoted_value): New
16027 functions.
16028 (combine_instructions): Use them to retain nonzero and sign bit
16029 information after SUBREGs are eliminated by optimizations in
16030 this pass if PROMOTE_FUNCTION_RETURN.
16031
16032 * config/sparc/sparc.h (ASM_DECLARE_REGISTER_GLOBAL): Document
16033 .register declaration. Don't use variables with __ prefixes.
16034
16035 Mon Dec 6 12:24:52 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16036
16037 * fold-const.c (optimize_bit_field_compare): Only use one mode
16038 for both RHS and LHS in non-constant case.
16039
16040 1999-12-06 Nathan Sidwell <nathan@acm.org>
16041
16042 * frame.c (start_fde_sort): Only allocate erratic array, if
16043 linear one was allocated. Return allocated flag.
16044 (fde_insert): Only insert, if there's a valid array.
16045 (fde_end_sort): Split, sort and merge if linear and erratic
16046 arrays exist, else just sort linear one.
16047 (search_fdes): New function. Linear search through original fde
16048 structure.
16049 (frame_init): Permit multiple initializations. Cope with
16050 memory shortages.
16051 (find_fde): Fallback on linear search, if failed to sort array.
16052 (__deregister_frame_info): Only free sorted array, if we
16053 allocated it.
16054
16055 1999-12-06 Jakub Jelinek <jakub@redhat.com>
16056
16057 * config/sparc/sparc.h (MUST_PASS_IN_STACK): New macro.
16058
16059 1999-12-05 Jakub Jelinek <jakub@redhat.com>
16060
16061 * config/sparc/sparc.c (sparc64_initialize_trampoline): Use gen_flushdi.
16062
16063 1999-12-05 Mark Mitchell <mark@codesourcery.com>
16064
16065 * tree.h (special_function_p): Declare.
16066 * calls.c (special_function_p): Make it global. Don't take `name'
16067 as a parameter. Fix typo in 1999-11-28 change.
16068 (expand_cal): Adjust.
16069
16070 1999-12-04 Mark Mitchell <mark@codesourcery.com>
16071
16072 * tree.def (EXPR_WITH_FILE_LOCATION): Fix comment formatting.
16073 * tree.h (EXPR_WFL_FILENAME): Define in terms of
16074 EXPR_WFL_FILENAME_NODE.
16075 (EXPR_WFL_FILENAME_NODE): Use the second operand slot rather than
16076 the TREE_CHAIN.
16077 * print-tree.c (print_note): Print TREE_PRIVATE and
16078 TREE_PROTECTED.
16079
16080 * dwarf2out.c (add_abstract_origin_attribute): Don't abort when
16081 the original die cannot be found.
16082
16083 * varray.h (varray_head_tag): Add elements_used.
16084 (VARRAY_PUSH): New macro.
16085 (VARRAY_POP): Likewise.
16086 (VARRAY_TOP): Likewise.
16087 Add variants of VARRAY_PUSH and VARRAY_POP for all varray element
16088 types.
16089 * varray.c (varray_init): Initialize elements_used.
16090 * Makefile.in (BASIC_BLOCK_H): Add varray.h.
16091 (INTEGRATE_H): New variable.
16092 (integrate.o): Depend on INTEGRATE_H.
16093 (unroll.o): Likewise.
16094
16095 * function.h (insert_block_after_note): Declare.
16096 * function.c (insert_block_after_note): Split out from ...
16097 (retrofit_block): ... here.
16098
16099 * stmt.c (expand_fixup): Fix typo in comment.
16100
16101 Sat Dec 4 14:13:38 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
16102
16103 * regmove.c (copy_src_to_dest): Remove loop_depth parameter.
16104 (optimize_reg_copy_1): Remove REG_N_REFS updating code.
16105 (optimize_reg_copy_2, copy_src_to_dest, fixup_match_2): Likewise.
16106 (regmove_optimize, fixup_match_1): Likewise.
16107
16108 1999-12-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16109
16110 * flow.c (flow_loops_dump): Add missing argument when calling
16111 flow_loop_nested_p.
16112
16113 1999-12-04 Geoffrey Keating <geoffk@cygnus.com>
16114 Greg McGary <gkm@gnu.org>
16115
16116 * c-common.c (enum attrs): Add A_NO_LIMIT_STACK.
16117 (init_attributes): Add A_NO_LIMIT_STACK.
16118 (decl_attributes): Handle A_NO_LIMIT_STACK.
16119 * c-decl.c (duplicate_decls): Handle DECL_NO_LIMIT_STACK.
16120 * explow.c (allocate_dynamic_stack_space) [!HAVE_allocate_stack]:
16121 Handle stack bounds checking.
16122 * flags.h (flag_stack_check): Use the word 'probe' rather than
16123 'check', because the flag doesn't actually cause any checking to
16124 be done.
16125 * function.c (expand_function_start): Set
16126 current_function_limit_stack.
16127 * function.h (struct function): Add limit_stack.
16128 (current_function_limit_stack): Define.
16129 * invoke.texi (Code Gen Options): Document new options.
16130 * rtl.h: Declare stack_limit_rtx.
16131 * toplev.c (stack_limit_rtx): New variable.
16132 (decode_f_option): Handle new options -fstack-limit-register=REG,
16133 -fstack-limit-symbol=IDENT, -fno-stack-limit.
16134 (main): Add stack_limit_rtx as GC root.
16135 * tree.h (DECL_NO_LIMIT_STACK): New macro.
16136 (struct tree_decl): New member no_limit_stack.
16137
16138 * config/rs6000/rs6000.c (rs6000_allocate_stack_space): Handle
16139 stack_limit_rtx.
16140 * config/rs6000/rs6000.md (allocate_stack): Handle stack_limit_rtx.
16141 (conditional_trap+1): Get new mnemonic correct.
16142 (conditional_trap+2): New pattern for DImode traps.
16143
16144 * config/m68k/m68k.c (output_function_prologue): Handle
16145 stack_limit_rtx.
16146 * config/m68k/m68k.md (trap): New insn.
16147 (conditional_trap): New insn.
16148 * md.texi (Standard Names): Document `trap' and
16149 `conditional_trap'.
16150 * optabs.c (gen_cond_trap): Use start_sequence()/end_sequence()
16151 so a cc0 setter doesn't get emitted at some random place in the
16152 function.
16153
16154 * config/i960/i960.md (trap): New insn.
16155 (conditional_trap): New expander.
16156 (conditional_trap+1, conditional_trap+2): New insns for signed
16157 and unsigned cases.
16158 * config/i960/i960.c (i960_function_prologue): Use
16159 STARTING_FRAME_OFFSET. Handle stack_limit_rtx.
16160
16161 Thu Dec 2 21:22:45 1999 Greg McGary <gkm@gnu.org>
16162 Geoffrey Keating <geoffk@cygnus.com>
16163
16164 * flags.h (warn_padded, warn_packed): Add global var decls.
16165 * toplev.c (warn_padded, warn_packed): Add global var defns.
16166 (W_options): Add warnings `-Wpacked' and `-Wpadded'.
16167 * stor-layout.c (layout_record): Add local variable `type'
16168 to hold often-used TREE_TYPE (field). Add local variable
16169 `unpacked_align' to hold alignment that would be in force
16170 if no `packed' attribute were present. Warn if `packed' attribute
16171 is unnecessary, or even harmful. Warn when gcc inserts padding
16172 to satisfy alignment requirements of members. Use NULL_TREE
16173 when checking whether var_size is set.
16174 * invoke.texi: Document new flags.
16175
16176 1999-12-03 Nathan Sidwell <nathan@acm.org>
16177
16178 * frame.c (fde_split): Reimplement to avoid variable sized array.
16179
16180 Thu Dec 2 18:59:48 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
16181
16182 * combine.c (try_combine): Before fixing up LOG_LINKS for the
16183 i3_subst_into_i2 case, check that GET_CODE (PATTERN (i2)) == PARALLEL.
16184
16185 1999-12-02 Gavin Romig-Koch <gavin@cygnus.com>
16186
16187 * invoke.texi: Document the mips option -mno-crt0
16188
16189 1999-12-02 Mike Karr <mkarr@mathworks.com>
16190
16191 * cccp.c (argdata): Added free_ptr member.
16192 (macroexpand): Initialize free_ptr of each argument. When an
16193 argument's buffers are freed, if the argument's free_ptr corresponds
16194 to a buffer on the input stack, then return the free_ptr to that stack
16195 frame, otherwise, free it.
16196 (macarg): If an argument begins and ends on the same input stack level,
16197 then transfer the free_ptr of that buffer to the argument in case
16198 the stack is popped during the processing of a subsequent argument.
16199
16200 1999-12-02 Bernd Schmidt <bernds@cygnus.co.uk>
16201
16202 * loop.c (note_reg_stored): New function.
16203 (struct note_reg_stored_arg): New structure.
16204 (try_copy_prop): Change to be more conservative; only replace within
16205 one extended basic block and stop replacing if a store to the
16206 replacement reg is seen.
16207
16208 1999-12-02 Nick Clifton <nickc@cygnus.com>
16209
16210 * config/fp-bit.c: Initialise all fields of the NAN
16211 constants.
16212
16213 * c-lex.c (check_newline): Pass pragma_getc and pragma_ungetc
16214 to HANDLE_PRAGMA.
16215
16216 Wed Dec 1 18:16:38 1999 Jan Hubicka <hubicka@freesoft.cz>
16217
16218 * i386.md (extend?f?f2): Force the input into a register, not
16219 the output.
16220
16221 1999-12-01 Jakub Jelinek <jakub@redhat.com>
16222
16223 * config/sparc/sparc.md (movsf_const_intreg): Add constraints for
16224 regclass' sake.
16225 (movdf_const_intreg_sp32): Likewise. Prefer the memory load
16226 alternative because setting up 64bit constant is usually costly,
16227 especially when reload is in progress or completed.
16228 (movdf_const_intreg_sp64): Likewise.
16229 (movdf_const_intreg split): Fix building up constants when
16230 HOST_BITS_PER_WIDE_INT is 64 yet long is 32bit.
16231
16232 Wed Dec 1 16:51:22 1999 Jeffrey A Law (law@cygnus.com)
16233
16234 * combine.c (if_then_else_cond): Use const_true_rtx instead of
16235 const1_rtx for return values in EQ/NE comparison against (const_int 0)
16236 case.
16237
16238 * mn10300.c (REG_SAVE_BYTES): Allocate space for AM33 registers.
16239 (asm_file_start): Emit .am33 into assembly file when compiling for
16240 the AM33.
16241 (print_operand_address): Handle POST_INC addresses.
16242 (can_use_return_insn, initial_offset): Check AM33 registers too.
16243 (expand_prologue): Check & save AM33 registers too.
16244 (expand_epilogue): Similarly.
16245 (secondary_reload_class): Handle AM33 specific secondary reloads.
16246 (output_tst): Emit efficient code for the AM33 too.
16247 * mn10300.h (CPP_SPEC, TARGET_AM33): Define.
16248 (TARGET_SWITCHES): Add -mam33 switch.
16249 (FIRST_PSEUDO_REGISTER): Handle new AM33 registers.
16250 (FIXED_REGISTERS, CALL_USED_REGISTERS): Likewise.
16251 (REG_ALLOC_ORDER, CONDITIONAL_REGISTER_USAGE): Likewise.
16252 (HARD_REGNO_MODE_OK, MODES_TIEABLE_P): Likewise.
16253 (enum reg_class, REG_CLASS_NAMES): Likewise.
16254 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Likewise.
16255 (INDEX_REG_CLASS, REG_CLASS_FROM_LETTER): Likewise.
16256 (REGNO_OK_FOR_INDEX_P, PREFERRED_RELOAD_CLASS): Likewise.
16257 (PREFERRED_OUTPUT_RELOAD_CLASS, LIMIT_RELOAD_CLASS): Likewise.
16258 (REGISTER_MOVE_COST, REGISTER_NAMES): Likewise.
16259 (HAVE_POST_INCREMENT): Define.
16260 (GO_IF_LEGITIMATE_ADDRESS): Allow POST_INC addresses for the AM33.
16261 (GO_IF_MODE_DEPENDENT_ADDRESS): POST_INC is a mode dependent address.
16262 * mn10300.md (movqi, movhi, addsi, subsi): Add AM33 variants.
16263 (mulsi, andsi, iorsi, xorsi, notsi): Likewise.
16264 (ashiftsi, lshiftrtsi, ashiftrtsi): Likewise.
16265 (zero_extend to SI from QI/HI): Likewise.
16266 (sign_extend to SI from QI/HI): Likewise.
16267 (mulsidi3, umulsidi3): New patterns for the AM33.
16268 (tstsi with zero extension from QI/HI): Add AM33 variants.
16269 (movsi, movsf, movdi, movdf): Generate efficient code for the AM33 too.
16270 (return_internal_regs, store_movm): Handle new AM33 registers.
16271 * t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Define.
16272 (LIBGCC, INSTALL_LIBGCC): Likewise.
16273 * invoke.texi: Document new flags.
16274
16275 Fri Nov 26 10:59:12 CET 1999 Jan Hubicka <hubicka@freesoft.cz>
16276
16277 * i386.md (addsi3_cc): Add "binary_operator_ok" to the condition.
16278 (addsi3_carry): Likewise.
16279 (sbbsi3_cc): Add "binary_operator_ok" to the condition.
16280 (sbbsi3_carry): Likewise.
16281 (mulsi3): Rewrite to expander, ensure that only one operand is memory.
16282 (mulhi3): Likewise.
16283 (test?i_1): Ensure that only one operand is memory.
16284 (conditional move patterns): likewise.
16285 (shift and rotate patterns): Rewrite to expander, add
16286 "binary_operator_ok" to the condition.
16287
16288 * i386.md (QImode patterns): Remove '*' before the 'r' constraints.
16289 * i386.h (procesor_costs): Add movzbl_load field.
16290 (HARD_REGNO_MODE_OK): Accept QImode on non PARTIAL_REGISTER_STALL in
16291 non-Q registers, accept DImode registers anywhere.
16292 (Q_CLASS_P): New.
16293 (MEMORY_MOVE_COST): Calculate QImode moves correctly.
16294 * i386.c (*_cost): Set value for movxbl_load field.
16295
16296 * (addsi): New add to lea splitter.
16297 (ashlsi): Likewise.
16298 (lea to add/shift peep2): New.
16299
16300 1999-12-01 Mark Salter <msalter@cygnus.com>
16301
16302 * config/mips/elf.h (STARTFILE_SPEC): Add no-crt0.
16303 * config/mips/elf64.h (STARTFILE_SPEC): Add no-crt0.
16304 * config/mips/mips.h (TARGET_SWITCHES): Add no-crt0.
16305
16306 Tue Nov 30 15:20:52 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
16307
16308 * i386.c (ix86_expand_move): Never add clobbers to move patterns.
16309 * i386.md (movsi_xor): New.
16310 (movsi_or): New.
16311 (movsi_1, movhi_1, movqi_1): Remove.
16312 (movsi_2): Rename to movsi_1.
16313 (movhi_2): Rename to movhi_1.
16314 (movqi_2): Rename to movqi_1.
16315 (movdi_1): Remove; remove splitter.
16316 (movdi_2): Rename to movdi_1.
16317 (divmodsi4 splitter): Do not emit clobbers for move patterns.
16318 (long move peep2): Do not create QI or HI mode mov0s
16319 (mov -1,reg -> or peep2s): Enable again, rewrite to single peephole.
16320
16321 * i386.md (zero_extend?i?i2): Rewrite to expanders; new patterns,
16322 rewrite splitters.
16323
16324 * i386.md (neg?f2_if): Split "r" and "f" to separate alternatives.
16325 (abs?f2_if): Likewise.
16326
16327 1999-11-30 Alex Samuel <samuel@codesourcery.com>
16328
16329 * ggc.h (ggc_test_and_set_mark): New macro.
16330 (ggc_mark_rtx): Use ggc_test_and_set_mark.
16331 (ggc_mark_tree): Likewise.
16332 (ggc_mark_rtvec): Likewise.
16333 * ggc-common.c (ggc_mark_rtx_children): Reduce recursion.
16334
16335 1999-11-30 Jason Merrill <jason@casey.cygnus.com>
16336
16337 * dwarf2out.c (scope_die_for): Only handle types. Only search for
16338 containing types.
16339 (decl_scope_table): Just an array of trees now.
16340 (push_decl_scope): Simplify.
16341 (dwarf2out_init): Adjust.
16342 (local_scope_p): New fn.
16343 (gen_inlined_enumeration_type_die): Don't call scope_die_for.
16344 (gen_inlined_union_type_die, gen_inlined_structure_type_die): Likewise.
16345 (gen_typedef_die): Likewise.
16346 (gen_lexical_block_die): Don't call push/pop_decl_scope.
16347 (gen_inlined_subroutine_die): Likewise.
16348 (gen_abstract_function): Set current_function_decl temporarily.
16349 (gen_subprogram_die): Don't check DECL_ABSTRACT to set declaration.
16350 Handle block extern declarations. Don't call push/pop_decl_scope.
16351 (gen_decl_die): Fix logic for block externs.
16352
16353 1999-11-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16354
16355 * calls.c (special_function_p): Remove `realloc' and add `strdup'
16356 to the list of functions which have attribute malloc by default.
16357
16358 1999-11-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16359
16360 * c-lex.c (yylex): With -Wtraditional, when the ANSI type of an
16361 integer constant does not match the traditional type, limit the
16362 warnings to cases where the base of the type is ten.
16363
16364 * invoke.texi (-Wtraditional): Document it.
16365
16366 Tue Nov 30 15:18:35 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
16367
16368 * combine.c (try_combine): Only pass SET or CLOBBER to SET_DEST
16369 * rs6000.md: Only access a CONST_INT with INTVAL
16370
16371 Tue Nov 30 14:21:00 1999 Richard Henderson <rth@cygnus.com>
16372
16373 * lcm.c (compute_laterin): Cast bb->aux to size_t not int.
16374 (compute_nearerout): Likewise.
16375 * ggc-page.c (ggc_page_print_statistics): Explicitly cast
16376 size_t to unsigned long for formatting.
16377
16378 1999-11-30 Jakub Jelinek <jakub@redhat.com>
16379
16380 * config/sparc/sparc.h (FIXED_REGISTERS, CONDITIONAL_REGISTER_USAGE):
16381 Allow the user to override call-used/fixed state of %g2-5
16382 registers from the command line (with the exception of %g4 for
16383 embedded model).
16384 (REG_LEAF_ALLOC_ORDER): Move %g1 and %g4-7 registers to front, so that
16385 there is a higher chance of having a leaf function.
16386 (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Provide separate macros
16387 for ARCH64 which has %ccr register.
16388 * config/sparc/sparc.md (return_losum_si, return_losum_di): New
16389 patterns.
16390 * config/sparc/sparc.c (eligible_for_epilogue_delay): For the return
16391 insn accept into delay slot any insn which does not use %[ol]
16392 registers. Accept some LO_SUM and shift left by 1 for the normal
16393 restore case.
16394 (output_function_epilogue): Likewise.
16395 (epilogue_renumber): Added argument which inhibits any renumbering
16396 and just tests if the rtx does not use any %[ol] registers.
16397 (output_return): Reflect above change.
16398
16399 1999-11-30 Jakub Jelinek <jakub@redhat.com>
16400
16401 * config/sparc/sparc.c (sparc_va_arg): Fix sparc64 va_arg
16402 aggregate passing for sizes <= 16 bytes.
16403
16404 1999-11-30 Bernd Schmidt <bernds@cygnus.co.uk>
16405
16406 * cse.c (FIXED_REGNO_P): Delete tests for OVERLAPPING_REGNO_P.
16407 * global.c (global_alloc): Delete [OVERLAPPING_REGNO_P] code.
16408 * reload.c (find_dummy_reload): Likewise.
16409 (find_equiv_reg): Likewise; also for INSN_CLOBBERS_REGNO_P.
16410 * reload1.c (reload_as_needed): Likewise.
16411 * stupid.c (stupid_find_reg): Likewise.
16412 * tm.texi (Obsolete Register Macros): Delete section.
16413 * gmicro.h: Remove all traces of the two macros.
16414 * i386.h: Likewise.
16415 * m88k.h: Likewise.
16416 * mips.h: Likewise.
16417
16418 1999-11-30 Brendan Kehoe <brendan@cygnus.com>
16419
16420 * sparc.h (MASK_FASTER_STRUCTS, TARGET_FASTER_STRUCTS): Define.
16421 (TARGET_SWITCHES): Add -mfaster-structs/-mno-faster-structs flags.
16422 (ROUND_TYPE_ALIGN): Use better value if -mfaster-structs.
16423 * sparc.md (sparclite86x_branch, sparclite86x_shift): New function
16424 units for the sparclite86x chip.
16425 (flush): Revert October 14th change; add SImode specifically.
16426 (flushdi): Copy of flush, but DImode, to avoid genrecog warnings.
16427 * invoke.texi: Document it.
16428
16429 Tue Nov 30 14:58:14 1999 Nick Clifton <nickc@cygnus.com>
16430
16431 * config/mn10200/mn10200.h (PREDICATE_CODES): Add
16432 psimode_truncation_operand.
16433
16434 * config/mn10200/mn10200.c (psimode_truncation_operand): New
16435 function. Return true if the operand is either a MEM valid
16436 for a PSImode address or not a MEM at all.
16437
16438 * config/mn10200/mn10200.md (truncsipsi2): Use
16439 psimode_truncation_operand.
16440
16441 1999-11-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16442
16443 * flow.c (flow_nodes_print, flow_loops_cfg_dump): New functions.
16444 (flow_loop_nested_p, flow_loops_dump, flow_loops_free): Likewise.
16445 (flow_loop_exits_find, flow_loop_nodes_find): Likewise.
16446 (flow_depth_first_order_compute, flow_loop_pre_header_find): Likewise.
16447 (flow_loop_tree_node_add, flow_loops_tree_build): Likewise.
16448 (flow_loop_level_compute, low_loops_level_compute): Likewise.
16449 (flow_loops_find, flow_loop_outside_edge_p): Likewise.
16450 * basic-block.h: Protect from multiple inclusion.
16451 (flow_loops_find, flow_loops_free, flow_loop_dump): Add protoypes.
16452 (struct loops, struct loop): Define structures.
16453 * sbitmap.c (sbitmap_a_subset_b_p): New function.
16454 * sbitmap.h: Protect from multiple inclusion.
16455 (sbitmap_a_subset_b_p): Add prototype.
16456 * Makefile.in (LOOP_H): New macro.
16457 (stmt.o, integrate.o, loop.o, unroll.o): Replace loop.h with LOOP_H.
16458
16459 Tue Nov 30 01:34:47 1999 Philippe De Muyter <phdm@macqel.be>
16460
16461 * cppinit.c (CAT): The argument list of this macro may not contain
16462 spaces !
16463
16464 1999-11-29 David S. Miller <davem@redhat.com>
16465
16466 Move quantity tables and register equivalence chains into
16467 per-qty and per-register structure arrays respectively.
16468 * cse.c (qty_first_reg, qty_last_reg, qty_mode, qty_const,
16469 qty_const_insn, qty_comparison_code, qty_comparison_const,
16470 qty_comparison_qty): Delete, replace with...
16471 (qty_table): this structure table.
16472 (reg_next_eqv, reg_prev_eqv): Delete, replace with...
16473 (reg_eqv_table): this structure table.
16474 (make_new_qty): Add argument MODE. Caller updated.
16475 Update to use qty_table and reg_eqv_table.
16476 (make_regs_eqv, delete_reg_equiv, insert_regs,
16477 insert, exp_equiv_p, cse_rtx_varies_p, canon_reg,
16478 fold_rtx, equiv_constant, record_jump_cond, cse_insn,
16479 cse_process_notes, cse_main, cse_basic_block): Likewise.
16480
16481 Mon Nov 29 16:56:42 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16482
16483 * fold-const.c (extract_muldiv, case {MIN,MAX}_EXPR): Reverse
16484 operation if C is negative.
16485 (extract_muldiv, case SAVE_EXPR): Supresss if arg has side effects.
16486 (extract_muldiv, case {PLUS,MINUS}_EXPR): Don't apply distributive
16487 law for some divisions if constant is negative and change other
16488 divisions to the opposite rounding.
16489
16490 * expr.c (store_constructor_field): If bit position is not multiple
16491 of alignment of TARGET's mode, use BLKmode.
16492
16493 * expr.c (expand_expr_unaligned): Add more code from full case
16494 that is needed when OP0 is in a register.
16495
16496 Mon Nov 29 18:09:39 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
16497
16498 * dwarfout.c (field_byte_offset): Size can be zero if there was
16499 an error.
16500
16501 1999-11-29 Bernd Schmidt <bernds@cygnus.co.uk>
16502
16503 * fold-const.c (split_tree): Delete unused vars ORIG_IN and TYPE.
16504 (associate_trees): Delete unused var TEM.
16505 (extract_muldiv): Delete unused var CANCEL_P.
16506
16507 * fold-const.c [TARGET_FLOAT_FORMAT != IEEE_FLOAT_FORMAT]
16508 (target_isinf, target_isnan, target_negative): Add return types to
16509 function definitions.
16510
16511 1999-11-29 Bruce Korb <autogen@linuxbox.com>
16512
16513 * fixinc/fixincl.c(process): don't skip GLIBC files any more.
16514 * fixinc/hackshell.tpl: ditto
16515 * fixinc/fixtests.c(double_slash_test): more C++ header testing
16516 * fixinc/inclhack.def(AAB_fd_zero_glibc*): corrected spelling of mach
16517
16518 1999-11-29 Bernd Schmidt <bernds@cygnus.co.uk>
16519
16520 * reload.c (push_reload): When looking for a register to put into
16521 reg_rtx, make sure all hard regs in a multi-reg register are in the
16522 right class and nonfixed.
16523
16524 * haifa-sched.c (reg_last_uses, reg_last_sets, reg_last_clobbers,
16525 pending_read_insns, pending_write_insns, pending_read_mems,
16526 pending_write_mems, pending_list_length, last_pending_memory_flush,
16527 last_function_call, sched_before_next_call): Move static variables
16528 into a structure.
16529 (bb_ prefixed versions): Replace with single array bb_deps.
16530 (struct deps): New structure.
16531 (add_insn_mem_dependence, flush_pending_lists, sched_analyze_1,
16532 sched_analyze_2, sched_analyze_insn, sched_analyze): Accept new
16533 argument of type "struct deps *"; use that instead of global
16534 variables. All callers changed.
16535 (init_rgn_data_dependencies): Delete function.
16536 (init_rtx_vector): Delete function.
16537 (init_deps): New function.
16538
16539 (free_pending_lists): Simplify, we always use the bb_deps array even
16540 if only one basic block.
16541 (compute_block_backward_dependences): Likewise.
16542 (schedule_region): Likewise.
16543
16544 (propagate_deps): New function, broken out of
16545 compute_block_backward_dependences.
16546 (compute_block_backward_dependences): Use it.
16547
16548 * alpha.md: Delete useless patterns that tried to work around
16549 register elimination problems.
16550
16551 * unroll.c (loop_iterations): Don't abort if iteration variable
16552 was made by loop.
16553
16554 From Joern Rennecke:
16555 * reload1.c (reloads_conflict): Reverse test comparing operand
16556 numbers when testing for conflict between output/outaddr reloads.
16557
16558 1999-11-29 David S. Miller <davem@redhat.com>
16559
16560 * config/sparc/sparc.c (init_cumulative_args): Fix type of third
16561 arg.
16562 * config/sparc/sparc-protos.h: Update proto, move into RTX_CODE.
16563
16564 1999-11-28 Robert Lipe <robertl@cygnus.com>
16565
16566 * i386/sco5.h (FINI_SECTION_ASM_OP_COFF): Move destructor fn
16567 table from .fini into .dtor.
16568
16569 1999-11-28 Anthony Green <green@cygnus.com>
16570
16571 * tree.h (struct tree_decl): Add malloc_flag.
16572 (DECL_IS_MALLOC): Define.
16573 * c-common.c (attrs): Add A_MALLOC attribute.
16574 (init_attributes): Add this attribute to the table.
16575 (decl_attributes): Handle malloc attribute.
16576 * calls.c (special_function_p): Check for the malloc attribute.
16577 * extend.texi (Function Attributes): Document malloc attribute.
16578
16579 Sun Nov 28 13:21:00 1999 Jeffrey A Law (law@cygnus.com)
16580
16581 * pa.md (reload shift-add patterns): Remove.
16582
16583 1999-11-28 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16584
16585 * reorg.c (dbr_schedule) Print more statistics. Corrected
16586 problem when printing info when 3 delay slots are filled.
16587
16588 1999-11-28 Jakub Jelinek <jakub@redhat.com>
16589
16590 * combine.c (setup_incoming_promotions): Pass an outgoing
16591 regno to FUNCTION_ARG_REGNO_P which it expects.
16592
16593 1999-11-28 Andreas Jaeger <aj@suse.de>
16594
16595 * mips/linux.h (CPP_PREDEFINES): Undefine before redefining.
16596
16597 Sun Nov 28 00:48:15 1999 Philippe De Muyter <phdm@macqel.be>
16598
16599 * cccp.c (do_include): Avoid initialization of automatic variable.
16600
16601 * integrate.c (mark_stores): Function definition made void, to match
16602 previous declaration.
16603 * regclass.c (dump_regclass): Ditto.
16604 * Makefile.in (WARN_CFLAGS): Macro augmented by `-Wtraditional'.
16605
16606 Sat Nov 27 08:38:26 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16607
16608 * expr.c (store_constructor): Use EXACT_DIV_EXPR when dividend is
16609 known to be multiple of divisor.
16610
16611 * expr.c (store_constructor): Don't clobber TARGET if CLEARED.
16612
16613 * combine.c (try_combine): Add code to try to merge a set of a
16614 two-word pseudo to a constant with a setting of one of those words
16615 to a constant.
16616
16617 * fold-const.c (negate_expr, associate_trees, extract_muldiv): New.
16618 (split_tree): Completely rework to make more general.
16619 (make_range, fold): Call negate_expr.
16620 (fold, case NEGATE_EXPR): Simplify -(a-b) is -ffast-math.
16621 (fold, associate): Call new split_tree and associate_trees.
16622 (fold, case MULT_EXPR, case *_{DIV,MOD}_EXPR): Call extract_muldiv.
16623
16624 1999-11-26 Bernd Schmidt <bernds@cygnus.co.uk>
16625
16626 * loop.c (try_copy_prop): Avoid GNU C extension.
16627
16628 1999-11-25 Mark Mitchell <mark@codesourcery.com>
16629
16630 * except.c (init_eh_for_function): Still zero eh_return_context,
16631 eh_return_stack_adjust, and eh_return_handler.
16632
16633 * except.h (eh_status): Adjust documentation for x_protect_list.
16634 (begin_protect_partials): New function.
16635 * except.c (enqueue_eh_entry): Fix formatting.
16636 (get_first_handler): Add consistency check.
16637 (add_partial_entry): Adjust usage of protect_list.
16638 (emit_cleanup_handler): Save and restore ehqueue.
16639 (expand_start_all_catch): Add comment.
16640 (begin_protect_partials): New function.
16641 (end_protect_partials): Adjust usage of protect_list.
16642 (init_eh_for_function): Use xcalloc.
16643
16644 1999-11-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16645
16646 * c-common.c (check_format_info): Don't call a variadic function
16647 with a non-literal format string.
16648
16649 * c-decl.c (grokdeclarator, start_struct, finish_struct): Likewise.
16650
16651 * c-typeck.c (build_component_ref, build_unary_op, lvalue_or_else,
16652 pedantic_lvalue_warning, error_init, pedwarn_init, warning_init):
16653 Likewise.
16654
16655 * cccp.c (check_macro_name, do_xifdef, vwarning_with_line):
16656 Likewise.
16657
16658 * collect2.c (collect_wait): Likewise.
16659
16660 * dbxout.c (dbxout_type): Likewise.
16661
16662 * gcc.c (do_spec_1): Likewise.
16663
16664 * genemit.c (gen_insn, gen_expand): Likewise.
16665
16666 * genrecog.c (write_switch, write_subroutine): Likewise.
16667
16668 * mips-tfile.c (catch_signal, botch): Likewise.
16669
16670 * print-rtl.c (print_rtx): Likewise.
16671
16672 * toplev.c (default_print_error_function, report_error_function,
16673 _fatal_insn): Likewise.
16674
16675 1999-11-25 Mark Mitchell <mark@codesourcery.com>
16676
16677 * tree.c (unsave_expr_now): Handle NULL_TREE as input.
16678
16679 Wed Nov 24 17:08:09 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
16680
16681 * reg-stack.c (subst_stack_regs_pat): Swap operands in commutative
16682 operations when needed.
16683 * i386.md (fop_?f_comm): New.
16684 (fop_?f_1): Do not accept commutative operands.
16685
16686 1999-11-25 Andreas Jaeger <aj@suse.de>
16687
16688 * config/mips/mips.md (casesi_internal): Add missing brace.
16689
16690 1999-11-25 Jason Merrill <jason@casey.cygnus.com>
16691
16692 * dwarf2out.c (pend_type, output_pending_types_for_scope): Lose.
16693 (splice_child_die): Handle moving a child DIE from the declaration
16694 DIE of a class to its specification.
16695 (gen_struct_or_union_type_die): Use 'complete' consistently.
16696 (gen_decl_die): Generate the virtual context DIE first.
16697 Use decl_ultimate_origin instead of DECL_ABSTRACT_ORIGIN.
16698
16699 1999-11-24 Gavin Romig-Koch <gavin@cygnus.com>
16700
16701 * config/mips/mips.md (call_value_multiple_interanal1): New.
16702
16703 1999-11-24 Jason Merrill <jason@casey.cygnus.com>
16704
16705 * dwarf2out.c (free_AT, free_die): New fns.
16706 (remove_children): Call them.
16707 (output_line_info): Disable removal of duplicate notes.
16708
16709 Generate minimal debug info for types with TYPE_DECL_SUPPRESS_INFO set.
16710 * dwarf2out.c (gen_struct_or_union_type_die): TYPE_DECL_SUPPRESS_INFO
16711 means pretend the type isn't defined.
16712 Don't defer emitting types.
16713 (gen_type_die_for_member): New fn.
16714 (gen_decl_die): Call it.
16715 (splice_child_die): New fn.
16716 (gen_member_die): Call it rather than generate duplicate dies.
16717
16718 Defer emitting information for the abstract instance of an inline
16719 until we either inline it or emit an out-of-line copy.
16720 * dwarf2out.c (decl_ultimate_origin): Ignore DECL_ABSTRACT_ORIGIN
16721 from output_inline_function if DECL_ABSTRACT is also set.
16722 (block_ultimate_origin): Likewise.
16723 (gen_abstract_function): New fn.
16724 (gen_decl_die, gen_inlined_subroutine_die): Call it.
16725 (gen_subprogram_die): An abstract instance is not a declaration
16726 just because it doesn't match current_function_decl. Don't abort
16727 because DECL_DEFER_OUTPUT isn't set. Do abort if a declaration
16728 has an abstract origin.
16729 * toplev.c (rest_of_compilation): Don't emit dwarf2 info for the
16730 abstract instance here.
16731
16732 Wed Nov 24 18:39:18 1999 Andrew Haley <aph@cygnus.com>
16733
16734 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Add the case
16735 where we need to reload fpul from a system register.
16736
16737 1999-11-24 Andreas Jaeger <aj@suse.de>
16738
16739 * config/mips/linux.h (CPP_PREDEFINES): Added.
16740 (LINK_SPEC): Remove -Y since this is only needed on sparc.
16741
16742 1999-11-24 Andreas Jaeger <aj@suse.de>
16743
16744 * config/mips/linux.h (TARGET_VERSION): Added.
16745 (HANDLE_SYSV_PRAGMA): Added.
16746 (DEFAULT_VTABLE_THUNKS): Added.
16747
16748 Wed Nov 24 14:12:15 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
16749
16750 * local-alloc.c (qty): New structure and static variable.
16751 (qty_phys_reg): Remove, all references changed to qty.
16752 (qty_n_refs): Likewise.
16753 (qty_min_class): Likewise.
16754 (qty_birth): Likewise.
16755 (qty_death): Likewise.
16756 (qty_size): Likewise.
16757 (qty_mode): Likewise.
16758 (qty_n_calls_crossed): Likewise.
16759 (qty_alternate_class): Likewise.
16760 (qty_changes_size): Likewise.
16761 (qty_first_reg): Likewise.
16762 (alloc_qty): Rename variable QTY to QTYNO.
16763 (finf_free_reg): Likewise.
16764 (local_alloc): Allocate qty, do not allocate the removed variables.
16765
16766 Wed Nov 24 17:26:05 1999 Geoffrey Keating <geoffk@cygnus.com>
16767
16768 * config/mips/mips.h (ASM_SPEC): Don't pass -G to the assembler
16769 when -membedded-pic is passed.
16770
16771 * config/mips/mips.md (casesi): Handle 64-bit case too.
16772 (casesi_internal_di): New insn.
16773
16774 * config/mips/mips.c (embedded_pic_offset): Always make the
16775 embedded-pic subtractions relative to the name of the current
16776 function by use of the magic string "..CURRENT_FUNCTION".
16777 * config/mips/mips.h (ASM_OUTPUT_LABELREF): Make the magic happen.
16778
16779 1999-11-24 Geoffrey Keating <geoffk@cygnus.com>
16780
16781 * config/mips/mips.md (div_trap_normal): Don't ask for the REGNO
16782 of (const_int 0), when what we really care about is
16783 whether it's a zero constant anyway.
16784 (div_trap_mips16): Likewise.
16785
16786 1999-11-23 Mark Mitchell <mark@codesourcery.com>
16787
16788 * loop.c (loop_optimize): Always find_loop_tree_blocks and
16789 unroll_block_trees when generating debuggable code.
16790
16791 * tree.h (unsave_expr_1): New function.
16792 (lang_unsave): New variable.
16793 (get_callee_fndecl): New function.
16794 * tree.c (unsave_expr_now_r): New function.
16795 (lang_unsave): Define.
16796 (unsave_expr_1): Likewise.
16797 (unsave_expr_now_r): Split out from unsave_expr_now.
16798 (unsave_expr_now): Call lang_unsave if it is non-NULL. Otherwise,
16799 call unsave_expr_now_r.
16800 (get_callee_fndecl): Define.
16801
16802 * Makefile.in (gencheck): Don't depend on lang_tree_files.
16803 (gencheck.o): Do depend on lang_tree_files.
16804
16805 * integrate.h (copy_decl_for_inlining): New declaration.
16806 * integrate.c (copy_and_set_decl_abstract_origin): Remove.
16807 (copy_decl_for_inlining): New function.
16808 (integrate_parm_decls): Use it.
16809 (integrate_decl_tree): Likewise.
16810
16811 1999-11-23 Gavin Romig-Koch <gavin@cygnus.com>
16812
16813 * config/mips/mips.h (ISA_HAS_FP4,ISA_HAS_CONDMOVE,ISA_HAS_8CC): Split
16814 the second two from the first.
16815 (CONDITIONAL_REGISTER_USAGE): Use ISA_HAS_8CC rather than ISA_HAS_FP4.
16816 * config/mips/mips.md (movcc,reload_incc,reload_outcc,
16817 conditional move): Use ISA_HAS_CONDMOVE or ISA_HAS_8CC rather than
16818 ISA_HAS_FP4.
16819 * config/mips/mips.c (mips_move_1word,gen_conditional_branch,
16820 override_options): Use ISA_HAS_CONDMOVE or ISA_HAS_8CC rather than
16821 ISA_HAS_FP4.
16822
16823 Tue Nov 23 11:15:04 1999 Jeffrey A Law (law@cygnus.com)
16824
16825 * pa.md (call_internal_symref, call_value_internal_symref): No mode
16826 needed on the address operand.
16827 * pa.c (call_operand_address): Check for the correct mode.
16828
16829 1999-11-23 Bernd Schmidt <bernds@cygnus.co.uk>
16830
16831 * loop.c: Include "basic-block.h".
16832 (try_copy_prop, replace_loop_reg): New functions.
16833 (load_mems): Detect registers that just hold copies of the hoisted
16834 mem, and call try_copy_prop to eliminate them.
16835 * Makefile.in (loop.o): Update dependencies.
16836
16837 Tue Nov 23 01:03:29 1999 Hans-Peter Nilsson <hp@axis.com>
16838
16839 * Makefile.in (gencheck.o): Depend on gencheck.h.
16840 (insn-emit.o): Depend on flags.h, hard-reg-set.h and resource.h.
16841 (insn-peep.o): Depend on except.h and function.h.
16842 (insn-attrtab.o): Depend on RECOG_H.
16843 (insn-output.o): Depend on toplev.h and flags.h.
16844 (gengenrtl.o): Depend on real.h.
16845 (gen-protos.o): Depend on cpplib.h and cpphash.h.
16846 Unify all dependencies to be on RECOG_H rather than recog.h.
16847
16848 Tue Nov 23 00:57:10 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16849
16850 From Casper H.S. Dik on comp.unix.solaris, 23 Oct 1998:
16851 * configure.in: Try building a bi-arch 32/64-bit compiler on
16852 sparc-*-solaris2.7 and higher.
16853 * configure: Rebuild.
16854
16855 Mon Nov 22 23:09:44 1999 David O'Brien <obrien@FreeBSD.org>
16856
16857 * config/freebsd.h: New, FreeBSD architecture independent file.
16858 * config/i386/freebsd-elf.h: removed FreeBSD architecturally
16859 independent pieces.
16860 * config/i386/freebsd.h: include i386/perform.h via tm.h rather than
16861 directly by i386/freebsd.h.
16862 * configure.in (*-*-freebsdelf): Include new FreeBSD architecturally
16863 independent configuration file.
16864 (*-*-freebsdelf): Include i386/perform.h via tm.h rather than
16865 directly by i386/freebsd.h.
16866 * configure: Rebuilt.
16867
16868 * xm-i386.h: Define `__i386__' if not defined, rather than `i386'
16869 which is in the user's namespace.
16870 * libgcc2.c: Look for the ANSI-C approved `__i386__' symbol, vs.
16871 `i386' which is not in our namespace.
16872
16873 Mon Nov 22 22:58:01 1999 "R. Kelley Cook" <KelleyCook@attglobal.net>
16874
16875 * invoke.texi (ARM Options): Add in -mno-alignment-traps
16876
16877 1999-11-22 Jason Merrill <jason@casey.cygnus.com>
16878
16879 * dwarf2out.c (die_struct): Remove die_attr_last and die_child_last.
16880 (add_dwarf_attr, add_child_die): Just push onto the front.
16881 (reverse_die_lists): New fn.
16882 (add_sibling_attributes): Use it.
16883 (push_decl_scope): Reorganize.
16884 (add_name_and_src_coords_attributes): Don't set file and line for
16885 an artificial decl.
16886 (gen_subprogram_die): An artificial function doesn't need to match
16887 file and line.
16888 (gen_compile_unit_die): Return the generated die. Only add
16889 AT_comp_dir if the filename is relative.
16890 (remove_AT): Simplify loop. Also free string values.
16891 (output_die): A DIE ref can't be null.
16892 (output_value_format, value_format): Take a dw_attr_ref.
16893 (dwarf_last_decl, is_extern_subr_die, sibling_offset): Remove.
16894 (AT_class, AT_flag, AT_int, AT_unsigned, AT_string, AT_ref, AT_loc,
16895 AT_addr, AT_lbl): New fns.
16896 (various): Use them.
16897 (various): Constify.
16898
16899 Mon Nov 22 23:53:50 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
16900
16901 * combine.c (combine_simplify_rtx): When handling a SUBREG,
16902 take SUBREG_WORD into account.
16903 (if_then_else_cond): Likewise.
16904
16905 1999-11-22 Jason Merrill <jason@casey.cygnus.com>
16906
16907 * gmon.c, i386/gmon-sol2.c, sparc/gmon-sol2.c: Remove advertising
16908 clause from BSD license, pursuant with
16909
16910 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
16911
16912 1999-11-22 Bernd Schmidt <bernds@cygnus.co.uk>
16913
16914 * loop.c (load_mems): Reformat slightly.
16915 * basic-block.h (regset_head): New typedef.
16916 (INIT_REG_SET): New macro.
16917
16918 1999-11-22 Bruce Korb <autogen@linuxbox.com
16919
16920 * fixinc/mkfisinc.sh(i?86-*-linux): disable script, run fixincl exe
16921 (mips-dec-bsd*): non-functional code
16922 (alpha*-*-linux-gnu*): redundant, duplicated by "*-*-linux-gnu*"
16923
16924 * fixinc/inclhack.def(AAB_fd_zero_glibc_*):
16925 added three replacement fixes
16926 (no_double_slash): removed comments that are not (any longer) pertinent
16927 (bad_lval): this fix currently runs against many files.
16928 The comment seems to indicate that we should select for files
16929 containing 'pragma extern_prefix'.
16930
16931 * fixinc/fixinc.x86-linux-gnu: deleted
16932 * fixinc/inclhack.sh: regen
16933 * fixinc/fixincl.x: regen
16934 * fixinc/fixincl.sh: regen
16935
16936 Fri Nov 12 14:08:40 1999 Andrew Haley <aph@cygnus.com>
16937
16938 * emit-rtl.c (gen_sequence): Only return the pattern of an insn if
16939 its code is INSN and it has no notes.
16940
16941 1999-11-22 Andrew Haley <aph@cygnus.com>
16942
16943 * varasm.c (function_defined): Remove.
16944 (make_function_rtl): Don't set function_defined.
16945 (make_decl_rtl): Remove global register warning.
16946 * regclass.c (no_global_reg_vars): New variable.
16947 (globalize_reg): Warn if function has already been defined.
16948 (regclass_init): Set no_global_reg_vars.
16949
16950 Mon Nov 22 14:42:22 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
16951
16952 * regclass.c (reg_pref): New structure and static variable
16953 (prefclass): Delete.
16954 (altclass): Delete.
16955 (all uses of prefclass and altclass): Use reg_pref instead.
16956
16957 1999-11-21 Nick Clifton <nickc@cygnus.com>
16958
16959 * invoke.texi (ARM Options): Replace -mshort-load-bytes with
16960 -malignment-traps.
16961 (arm.h): Replace -mshort-load-bytes with -malignment-traps.
16962 (arm.c): Replace TARGET_SHORT_BY_BYTES with TARGET_MMU_TRAPS.
16963 (arm.md): Replace TARGET_SHORT_BY_BYTES with TARGET_MMU_TRAPS.
16964
16965 Sun Nov 21 17:11:13 1999 Geoffrey Keating <geoffk@cygnus.com>
16966
16967 * varasm.c (output_constructor): Solve problem with long long
16968 bitfields, even on BYTES_BIG_ENDIAN machines (testcase 991118-1).
16969
16970 Fri Nov 19 05:48:45 CET 1999 Jan Hubicka <hubicka@freesoft.cz>
16971
16972 * global.c (allocno): New structure and static variable.
16973 (allocno_reg): Remove, all references replaced by allocno.
16974 (allocno_size): Likewise.
16975 (hard_reg_conflicts): Likewise.
16976 (hard_reg_preferences): Likewise.
16977 (hard_reg_copy_preferences): Likewise.
16978 (hard_reg_full_preferences): Likewise.
16979 (regs_someone_prefers): Likewise.
16980 (allocno_calls_crossed): Likewise.
16981 (allocno_n_refs): Likewise.
16982 (allocno_live_length): Likewise.
16983 (find_reg): Rename ALLOCNO to NUM.
16984
16985 * regclass.c (may_move_in_cost): Rename from may_move_cost, all
16986 references updated.
16987 (may_move_out_cost): New variable.
16988 (init_reg_sets_1): Initialize may_move_out_cost.
16989 (record_reg_classes): Use may_move_out_cost.
16990
16991 * regclass.c (dump_regclass): New function.
16992 (regclass): New parameter DUMP, call DUMP_REGCLASS.
16993 * toplev.c (rest_of_compilation): Open lreg dump file before regclass,
16994 pass rtl_dump_file to regclass.
16995 * rtl.h (regclass): Update prototype.
16996
16997 Fri Nov 19 06:32:19 CET 1999 Jan Hubicka <hubicka@freesoft.cz>
16998
16999 * i386.md (neg, not and abs patterns): Revmap to use
17000 ix86_expand_unary_operator and ix86_unary_operator_ok.
17001 (add?f and sub?f expanders): Force operand 1 to register.
17002 * i386.c (ix86_expand_unary_operator): Rewrite.
17003 (ix86_unary_operator_ok): Ensure that memory operands
17004 match real opcode.
17005 (ix86_binary_operator_ok): Do not allow operand 1 to
17006 come into memory and operand 0 not.
17007 (ix86_expand_binary_operator): Ensure that
17008 src1 is not non-matching memory.
17009
17010 * i386.md (negs?2): Rewrite to expanders, new patterns and splitters
17011 to support integer registers and memory.
17012 (abss?2_integer): Likewise.
17013
17014 * i386.h (enum reg_class): Add FLOAT_INT_REGS.
17015 (REG_CLASS_NAMES): Likewise.
17016 (REG_CLASS_CONTENTS): Define FLOAT_INT_REGS as union of FLOAT_REGS
17017 and GENERAL_REGS.
17018 * i386.md (pushsf): Do not preferre FLOAT_REGS over GENERAL_REGS.
17019 (movsf): Likewise; unify 4th and 5th alternative.
17020 (pushdf): Likewise.
17021 (movdf_1): Likewise; rename to movdf_integer.
17022 (pushxf): Likewise; rename to pushxf_integer; fix output template;
17023 remove redundant splitter.
17024 (movxf_1): Likewise; rename to movxf_integer; fix splitter's condition.
17025 (movdf_nointeger): New.
17026 (movxf_nointeger): New.
17027 (pushxf_nointeger): New.
17028
17029 * i386.md (extend?f?f): Split to expander and pattern, refuse two
17030 memory operands in patterns.
17031 (fop*): Refuse two memory operands.
17032
17033 * i386.md (ashrsi3_31): Allow cltd when optimizing for size even
17034 on !TARGET_USE_CLTD CPUs.
17035
17036 Fri Nov 19 10:41:15 GMT 1999 Nathan Sidwell <nathan@acm.org>
17037
17038 * extend.texi: Document C++ restricted pointers and references.
17039
17040 1999-11-19 Bernd Schmidt <bernds@cygnus.co.uk>
17041
17042 * cse.c (addr_affects_sp): No longer conditional on AUTO_INC_DEC.
17043 (invalidate_skipped_set): Call it unconditionally.
17044 (cse_set_around_loop): Likewise.
17045
17046 Thu Nov 18 17:29:34 MST 1999 Diego Novillo <dnovillo@cygnus.com>
17047
17048 * rtl.texi (mem): Add documentation for alias-set argument
17049 to RTX `mem'.
17050
17051 Fri Nov 18 13:39:22 CET 1999 Jan Hubicka <hubicka@freesoft.cz>
17052
17053 * i386.h (struct_processor_costs): New fields int_load, int_store,
17054 fp_move, fp_load and fp_store
17055 (REGISTER_MOVE_COST): Fix comment, calculate exactly the cost of
17056 fp->int moves
17057 (MEMORY_MOVE_COST): New macro.
17058 * i386.c (386_cost): Define new fields.
17059 (i486_cost): Likewise.
17060 (pentium_cost): Likewise.
17061 (pentiumpro_cost): Likewise.
17062 (k6_cost): Likewise.
17063
17064 Fri Nov 19 11:11:55 1999 Greg McGary <gkm@gnu.org>
17065 Geoffrey Keating <geoffk@cygnus.com>
17066
17067 * config/m68k/m68kelf.h: Suppress '/* within comment' warning.
17068
17069 * config/m68k/m68k.h (MASK_PCREL): Don't use same value as
17070 MASK_ALIGN_INT.
17071
17072 * config/m68k/m68k.h (MASK_NO_STRICT_ALIGNMENT): New macro.
17073 (TARGET_STRICT_ALIGNMENT): New macro.
17074 (TARGET_SWITCHES): Add "strict-align" and "no-strict-align".
17075 (STRICT_ALIGNMENT): Depend on TARGET_STRICT_ALIGNMENT.
17076 * invoke.texi (M680x0 Options): Document -mstrict-align.
17077
17078 Thu Nov 18 11:10:03 1999 Jan Hubicka <hubicka@freesoft.cz>
17079 Richard Henderson <rth@cygnus.com>
17080
17081 * i386-protos.h (split_xf, ix86_split_movdi): Remove.
17082 (ix86_split_long_move): Declare.
17083 * i386.c (split_xf, ix86_split_movdi): Remove.
17084 (ix86_split_to_parts, ix86_split_long_move): New.
17085 * i386.md (dimode move splitters): Use ix86_split_long_move.
17086 (dfmode move splitters): Likewise.
17087 (xfmode move splitters): Likewise.
17088 (movsf_1): Allow F->r.
17089 (movdf_1, movxf_1): Allow F->ro.
17090
17091 1999-11-17 Mark Mitchell <mark@codesourcery.com>
17092
17093 * except.h (struct eh_entry): Add goto_entry_p.
17094 (eh_region_from_symbol): Remove prototype.
17095 * except.c (find_func_region_from_symbol): New function.
17096 (emit_cleanup_handler): Likewise.
17097 (eh_region_from_symbol): Make it static.
17098 (add_new_handler): Verify the argument.
17099 (find_func_region): Update comment.
17100 (expand_eh_region_end): Expand handlers here, rater than waiting
17101 until expand_leftover_cleanups or start_all_catch.
17102 (expand_leftover_cleanups): Don't expand here.
17103 (expand_start_all_catch): Or here.
17104 (expand_rethrow): Check the return value from find_func_region.
17105 * function.c (expand_function_end): Emit the catch_clauses.
17106
17107 1999-11-18 Gavin Romig-Koch <gavin@cygnus.com>
17108
17109 * integrate.c (expand_inline_function): Add necessary check for NULL.
17110
17111 1999-11-18 Nick Clifton <nickc@cygnus.com>
17112
17113 * toplev.c (main): Correctly detect an unrecognised option.
17114
17115 * cppinit.c (cpp_handle_option): Do not claim to have consumed
17116 a -f option if it has not been recognised.
17117
17118 Thu Nov 18 00:59:11 1999 Michael Gschwind <mikeg@alagoas.watson.ibm.com>
17119
17120 * basic-block.h (update_life_extent): Remove trailing comma on
17121 enumeration type list.
17122
17123 1999-11-18 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
17124
17125 * varasm.c (output_constructor) Solved problem with long long
17126 bitfields. Corrected calculating this_time and shift. Also
17127 corrected calculating mask when BITS_PER_UNIT == 32 (c4x).
17128
17129 Wed Nov 17 23:46:14 1999 Jeffrey A Law (law@cygnus.com)
17130
17131 * flow.c (split_edge): Take looping structure into account when
17132 determining where to put the new block note.
17133
17134 Wed Nov 17 20:42:43 1999 Jeff Holcomb <jeffh@cygnus.com>
17135
17136 * Makefile.in (ggc-none.o): Provide host specific version if
17137 needed.
17138
17139 Wed Nov 17 16:51:23 1999 Richard Henderson <rth@cygnus.com>
17140
17141 * cse.c (delete_trivially_dead_insns): Identify no-op insns
17142 containing subregs too.
17143
17144 Wed Nov 17 17:39:48 MST 1999 Diego Novillo <dnovillo@cygnus.com>
17145
17146 * invoke.texi: Add documentation for -muninit-const-in-rodata.
17147 * config/mips/mips.h (MASK_UNINIT_CONST_IN_RODATA): Define.
17148 (TARGET_UNINIT_CONST_IN_RODATA): Define.
17149 (text_section): Add switches -munint-const-in-rodata and
17150 -mno-uninit-const-in-rodata.
17151 (ASM_OUTPUT_COMMON): Remove.
17152 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define. Check if uninitialized
17153 const objects should be placed in read-only data. Otherwise declare
17154 them in common.
17155
17156 Wed Nov 17 16:38:32 1999 Richard Henderson <rth@cygnus.com>
17157
17158 * jump.c (jump_optimize_1): Revert last change.
17159
17160 Wed Nov 17 15:18:30 1999 Richard Henderson <rth@cygnus.com>
17161
17162 * jump.c (jump_optimize_1): Don't try to duplicate the loop exit
17163 test if optimizing for size.
17164
17165 1999-11-17 Mark Mitchell <mark@codesourcery.com>
17166
17167 * Makefile.in (toplev.o): Depend on except.h.
17168 (dwarf2out.o,loop.o,flow.o,haifa-sched.o): Likewise.
17169
17170 Mon Nov 15 22:45:39 CET 1999 Jan Hubicka <hubicka@freesoft.cz>
17171
17172 * i386.md (divmodsi4): Rewrite to expander.
17173 (*divmodsi4_nocltd): New.
17174 (*divmodsi4_cltd): New.
17175 (divmodsi4 splitter): Handle the case when input comes in edx.
17176 (udivmodhi4): Do not use constraints in exander.
17177 (ashrsi3_31): Conditionize by TARGET_USE_CLTD.
17178
17179 1999-11-17 Jason Merrill <jason@yorick.cygnus.com>
17180
17181 * dwarf2out.c (push_decl_scope): Still use decl_scope_depth - 1
17182 for the common case.
17183
17184 1999-11-16 Jakub Jelinek <jakub@redhat.com>
17185
17186 * explow.c (hard_function_value): Add outgoing argument.
17187 * expr.h (hard_function_value): Declare it.
17188 * calls.c (expand_call, emit_library_call_value): Update callers.
17189 * function.c (aggregate_value_p): Ditto.
17190 (diddle_return_value): Must look at the outgoing registers
17191 on archs with register windows.
17192
17193 Mon Nov 15 20:46:45 1999 Richard Henderson <rth@cygnus.com>
17194
17195 * alpha.c (alpha_build_va_list): Use make_lang_type and
17196 initialize TYPE_NAME for the va_list record.
17197
17198 * flow.c (calculate_global_regs_live): Zero bb->aux to begin.
17199
17200 * ggc-common.c (ggc_print_statistics): Cast size_t to unsigned long
17201 for printing.
17202 * ggc.h (struct ggc_statistics): Rearrange elements for better
17203 packing on 64-bit hosts.
17204 * lcm.c (compute_laterin): Store a size_t not an int in bb->aux.
17205 (compute_nearerout): Likewise.
17206
17207 Tue Nov 16 14:37:52 1999 Geoffrey Keating <geoffk@cygnus.com>
17208
17209 * config/rs6000/rs6000.c (first_reg_to_save): Save
17210 PIC_OFFSET_TABLE_REGNUM when -fpic even though it is fixed.
17211
17212 1999-11-15 Jason Merrill <jason@casey.cygnus.com>
17213
17214 * dwarf2out.c (scope_die_for): Don't rely on the decl_scope_table
17215 notion of nesting to find the DIE for a type or function.
17216 DIEs can go in limbo even if we got a context_die.
17217 (push_decl_scope): Our context doesn't need to be in decl_scope_table.
17218 (gen_struct_or_union_type_die): Don't use TREE_PERMANENT to test
17219 for local type.
17220 (gen_decl_die): Ignore NAMESPACE_DECLs for now.
17221 (gen_type_die): Writing out the context doesn't cause member class
17222 template instantiations to be written out as well.
17223
17224 Mon Nov 15 15:33:18 1999 Richard Henderson <rth@cygnus.com>
17225
17226 * rs6000.h (ASM_OUTPUT_DEF): New.
17227 Based on proposed addition from David Edelsohn.
17228
17229 1999-11-15 Robert Lipe <RobertLipe@usa.net>
17230 Bruce Korb <autogen@linuxbox.com>
17231
17232 * fixinc/inclhack.def
17233 (AAB_svr4_replace_byteorder): added. Takes advantage of GCC features
17234 (unixware7_byteorder_fix): added. Removes conflicts for new defs
17235 in net/inet.h.
17236 (svr5_mach_defines): added. Like svr4_mach_defines, with new syntax
17237 (svr4_endian): enabled with SVR5
17238 (svr4_mkdev): simplified syntax and enabled with SVR5
17239
17240 Sun Nov 14 18:49:37 1999 David O'Brien <obrien@FreeBSD.org>
17241
17242 * configure.in: Handle libgcc2 threads support on FreeBSD platforms.
17243 * configure: Rebuilt.
17244 * config/t-freebsd-thread: New file.
17245
17246 Sun Nov 14 23:11:05 1999 Jeffrey A Law (law@cygnus.com)
17247
17248 * i386.c (ix86_decompose_address): Verify the base is a REG
17249 before trying to examine its register number.
17250
17251 * basic-block.h: Remove all #defines and prototypes related to
17252 integer lists.
17253 (free_bb_mem, compute_preds_succs): Remove prototype.
17254 * rtl.h (free_bb_mem): Remove prototype.
17255 * flow.c (alloc_int_list_node); Remove function.
17256 (add_inst_list_node, free_int_list, add_pred_succ): Likewise.
17257 (compute_preds_succs, free_bb_mem): Likewise.
17258 * gcse.c (gcse_main): Do not call free_bb_mem anymore.
17259 * toplev.c (rest_of_compilation): Likewise.
17260 * haifa-sched.c (build_control_flow): Use flow generated edge
17261 list to build the haifa specific edge list.
17262 (find_rgns): Use new CFG data structures instead of pred/succ lists.
17263 (schedule_insns): Do not build pred/succ lists anymore. Instead
17264 build the edge table.
17265
17266 * basic-block.h (dump_bb_data): Remove declaration.
17267 * flow.c (dump_bb_data): Remove function.
17268 * sbitmap.c (sbitmap_intersect_of_predsucc): Delete function.
17269 (sbitmap_union_of_predsucc): Likewise.
17270
17271 * gcse.c (delete_null_pointer_checks_1): Kill unused s_preds
17272 argument. All callers changed.
17273 (delete_null_pointer_checks_1): No longer need to compute the
17274 pred/succ lists.
17275
17276 * gcse.c (pre_expr_reaches_here_p): Kill CHECK_PRE_COM argument.
17277 All callers changed.
17278 (pre_expr_reaches_here_p_work): Likewise.
17279 (pre_edge_insert): No longer call pre_expr_reaches_here_p.
17280 * lcm.c (compute_laterin): Fix initialization of LATER.
17281 (compute_nearerout): Similarly for NEARER.
17282
17283 Sun Nov 14 12:41:57 1999 Bernd Schmidt <bernds@cygnus.co.uk>
17284
17285 * cse.c (set_nonvarying_address_components): Delete unused function.
17286 (refers_to_p): Likewise.
17287
17288 Fri Nov 12 20:53:22 1999 Jeffrey A Law (law@cygnus.com)
17289
17290 * function.c (diddle_return_value): Set REG_FUNCTION_VALUE_P as
17291 needed.
17292
17293 Sat Nov 13 16:20:09 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17294
17295 * defaults.h (ASM_OUTPUT_ALTERNATE_LABEL_NAME): Wrap macro
17296 definition in do while (0).
17297
17298 Fri Nov 12 16:26:25 1999 Jim Wilson <wilson@cygnus.com>
17299
17300 * stmt.c (pushcase, pushcase_range): Partially revert Oct 28 change.
17301
17302 Fri Nov 12 12:43:49 1999 Richard Henderson <rth@cygnus.com>
17303
17304 * unroll.c (unroll_loop): Make temp an unsigned HOST_WIDE_INT.
17305
17306 Fri Nov 12 15:14:19 1999 Vladimir Makarov <vmakarov@tofu.to.cygnus.com>
17307
17308 * i960.h (CAN_DEBUG_WITHOUT_FP): Don't define it.
17309 (FRAME_POINTER_REQUIRED): Don't worry about nonlocal goto.
17310 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
17311 (INITIAL_FRAME_POINTER_OFFSET): Remove it.
17312
17313 * i960.c (i960_function_prologue): Don't allocate space for g8-g11
17314 saved on the stack. Output more accurate stack frame statistics
17315 into assembler file.
17316
17317 1999-11-12 11:47 -0800 Zack Weinberg <zack@bitmover.com>
17318
17319 * genextract.c (record_insn_name): New function.
17320 (get_insn_name): No longer a stub.
17321 (main): Call record_insn_name for each insn. After each label
17322 written, print the insn name in a comment.
17323
17324 Fri Nov 12 13:45:02 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17325
17326 * output.h (const_section, init_section, fini_section): Add
17327 prototypes.
17328
17329 * alpha/elf.h (const_section): Delete declaration.
17330
17331 * svr4.h (const_section): Likewise.
17332
17333 Fri Nov 12 08:54:22 1999 Mark Mitchell <mark@codesourcery.com>
17334
17335 * tree.h (SAVE_EXPR_PERSISTENT_P): New macro.
17336 * tree.c (array_type_nelts): Don't handle SAVE_EXPRs specially.
17337 (unsave_expr_now): Don't unsave SAVE_EXPR_PERSISTENT_P
17338 expressions.
17339 * stor-layout.c (variable_size): Set SAVE_EXPR_PERSISTENT_P on
17340 variable-sized array bounds.
17341
17342 Fri Nov 12 08:04:45 1999 Catherine Moore <clm@cygnus.com>
17343
17344 * defaults.h (ASM_OUTPUT_ALTERNATE_LABEL_NAME): Use
17345 ASM_OUTPUT_LABEL.
17346
17347 Fri Nov 12 13:31:54 1999 Bernd Schmidt <bernds@cygnus.co.uk>
17348
17349 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Treat QImode
17350 addresses the same way GO_IF_LEGITIMATE_INDEX does.
17351
17352 Fri Nov 12 12:36:04 1999 Bernd Schmidt <bernds@cygnus.co.uk>
17353
17354 * cse.c (hash_arg_in_struct): Delete.
17355 (struct table_elt): Delete elt in_struct.
17356 (struct set): Delete elt src_in_struct.
17357 (merge_equiv_classes): Don't set either hash_arg_in_struct or
17358 the corresponding in_struct elts.
17359 (canon_hash): Likewise.
17360 (safe_hash): Likewise.
17361 (find_best_addr): Likewise.
17362 (record_jump_cond): Likewise.
17363 (cse_insn): Likewise.
17364
17365 Thu Nov 11 19:45:24 1999 Jim Wilson <wilson@cygnus.com>
17366
17367 * loop.c (invariant_p, case MEM): Put MEM_VOLATILE_P check back.
17368
17369 * dbxout.c (dbxout_type, case INTEGER_TYPE): Handle too large
17370 unsigned types.
17371
17372 Thu Nov 11 18:54:24 1999 Jeffrey A Law (law@cygnus.com)
17373
17374 * function.c (diddle_return_value): Put back check that the DECL_RTL
17375 for the function is a register.
17376
17377 * function.c (diddle_return_value): Use hard_function_value to
17378 get an rtx suitable for use in the USE/CLOBBER insn.
17379
17380 * global.c (global_conflicts): Update comments.
17381 (record_conflicts): No need to record conflicts between pseudos here.
17382
17383 1999-11-11 Bruce Korb <autogen@linuxbox.com>
17384
17385 * fixinc/fixincl.c: Added verbose levels for status messages
17386
17387 Thu Nov 11 13:23:04 1999 Bernd Schmidt <bernds@cygnus.co.uk>
17388
17389 * jump.c (jump_optimize_1): Avoid passing an rtx that is not an
17390 operand as argument to expand_and or expand_binop.
17391
17392 Thu Nov 11 02:21:16 1999 Rodney Brown <RodneyBrown@pmsc.com>
17393
17394 * xcoffout.c (xcoffout_source_file): Change ggc_add_root to
17395 gcc_add_string_root.
17396
17397 Wed Nov 10 21:24:19 1999 Jason Eckhardt <jle@cygnus.com>
17398
17399 * config/pa/pa.h (MASK_RETURN_ADDR): Change 0xfffffffc to -4.
17400
17401 Wed Nov 10 15:56:16 1999 Jeffrey A Law (law@cygnus.com)
17402
17403 * flow.c (compute_flow_dominators): Initially put all blocks on
17404 the worklist.
17405 * lcm.c (compute_antinout_edge, compute_available): Similarly.
17406 * gcse.c (compute_cprop_avinout): Remove.
17407 (compute_cprop_data): Use compute_available.
17408 (delete_null_pointer_checks_1): Use compute_available.
17409
17410 * basic-block.h (compute_available): Returns a void now.
17411 * gcse.c (one_classic_gcse_pass): Do not expect compute_available
17412 to return a value anymore.
17413 * lcm.c (compute_available, compute_antinout_edge): Revamp to use
17414 worklists. Fix boundary cases. Compute maximal solutions.
17415 (compute_laterin, compute_nearerout): Similarly.
17416
17417 * dwarf2out.c (add_AT_location_description): Allow
17418 (mem (plus (pseudo) (...)) too.
17419
17420 Wed Nov 10 10:52:42 1999 Tom Tromey <tromey@cygnus.com>
17421
17422 * gcc.c (do_spec_1): Support text between `%u' and `%O'.
17423
17424 Wed Nov 10 12:43:21 1999 Philippe De Muyter <phdm@macqel.be>
17425 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17426
17427 * cppinit.c: Test `GCC_VERSION', not `HAVE_GCC_VERSION'.
17428
17429 * gansidecl.h: Likewise.
17430
17431 * rtl.c: Likewise.
17432
17433 * rtl.h: Likewise.
17434
17435 * toplev.h: Likewise.
17436
17437 * tree.c: Likewise.
17438
17439 * tree.h: Likewise.
17440
17441 * varray.c: Likewise.
17442
17443 * varray.h: Likewise.
17444
17445 Wed Nov 10 10:57:22 1999 Clinton Popetz <cpopetz@cygnus.com>
17446
17447 * gcov.c (struct arcdata): Add hits and total, remove prob.
17448 (output_branch_counts): New.
17449 (process_args): Set output_branch_counts if -c.
17450 (calculate_branch_probs): Store hits and total instead of
17451 percentage.
17452 (output_data): Emit counts if output_branch_counts is true.
17453 * gcov.texi (Invoking Gcov): Document -c switch..
17454
17455 Wed Nov 10 01:10:41 1999 Philippe De Muyter <phdm@macqel.be>
17456
17457 * genoutput.c (output_insn_data): Cast `INSN_OUTPUT_FORMAT_MULTI' and
17458 `INSN_OUTPUT_FORMAT_FUNCTION' to `PTR'-type.
17459
17460 Wed Nov 10 00:51:41 1999 Hans-Peter Nilsson <hp@axis.se>
17461
17462 * invoke.texi (C Dialect Options): Add missing builtins from
17463 c-common.c to list.
17464 * extend.texi (Other Builtins): Copy to this list.
17465
17466 Wed Nov 10 04:58:09 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
17467
17468 * Makefile.in (recog.o): Use BASIC_BLOCK_H macro.
17469 (print-rtl.o, $(HOST_PREFIX_1)print-rtl.o): Likewise. Remove
17470 redundant bitmap.h.
17471
17472 Wed Nov 10 00:02:53 1999 Jeffrey A Law (law@cygnus.com)
17473
17474 * flow.c (compute_flow_dominators): No longer treat basic block 0
17475 or (n_basic_blocks - 1) specially. Clear the AUX field before
17476 starting computation of doms/pdoms. Fix initial state for pdoms.
17477
17478 Wed Nov 10 03:58:08 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
17479
17480 * Makefile.in ($(HOST_PREFIX_1)rtl.o): Update dependencies to
17481 match rtl.o's: added ggc.h and toplev.h
17482 ($(HOST_PREFIX_1)print-rtl.o): Likewise: added system.h.
17483 ($(HOST_PREFIX_1)rtlanal.o): Likewise: added system.h.
17484 ($(HOST_PREFIX_1)obstack.o): Likewise: added $(CONFIG_H).
17485
17486 Tue Nov 9 10:30:08 1999 Tom Tromey <tromey@cygnus.com>
17487
17488 * config/i386/xm-djgpp.h (HAVE_DOS_BASED_FILE_SYSTEM): Renamed
17489 from HAVE_DOS_BASED_FILESYSTEM.
17490 * gcc.c (find_a_file): Use HAVE_DOS_BASED_FILE_SYSTEM, not
17491 HAVE_DOS_BASED_FILESYSTEM.
17492 (main): Likewise.
17493 (split_directories): Only special-case DOS file names if
17494 HAVE_DOS_BASED_FILE_SYSTEM is defined. Use IS_DIR_SEPARATOR
17495 instead of explicit tests. Conditionalize on !VMS.
17496 (make_relative_prefix): Use IS_DIR_SEPARATOR instead of explicit
17497 tests. Conditionalize on !VMS.
17498 (process_command): Only use make_relative_prefix if !VMS.
17499 (free_split_directories): Conditionalize on !VMS.
17500 (DIR_UP): Conditionalize on !VMS.
17501
17502 Wed Jun 9 16:57:11 1999 Mumit Khan <khan@xraylith.wisc.edu>
17503
17504 * gcc.c (STANDARD_BINDIR_PREFIX): Provide default.
17505
17506 Fri Feb 5 14:22:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
17507
17508 * gcc.c (make_relative_prefix): Handle the HAVE_EXECUTABLE_SUFFIX
17509 case.
17510
17511 Mon Nov 8 14:16:57 1999 Michael Meissner <meissner@cygnus.com>
17512
17513 * invoke.texi (Environment Variables): Document relative path
17514 lookup.
17515 * gcc.c (DIR_UP): If not defined, define as "..".
17516 (standard_bindir_prefix): New static, holds target location to
17517 install binaries.
17518 (split_directories): New function to split a filename into
17519 component directories.
17520 (free_split_directories): New function, release memory allocated
17521 by split_directories.
17522 (make_relative_prefix): New function, make a relative pathname if
17523 the compiler is not in the expected location.
17524 (process_command): If GCC_EXEC_PREFIX was not specified, see if we
17525 can figure out an appropriate prefix from argv[0].
17526 * Makefile.in (DRIVER_DEFINES): Use unlibsubdir in definition of
17527 STANDARD_STARTFILE_PREFIX and TOOLDIR_BASE_PREFIX. Define
17528 STANDARD_BINDIR_PREFIX.
17529
17530 Wed Nov 10 11:47:54 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17531
17532 * config/c4x/c4x-protos.h: New file. Prototypes for functions defined
17533 in c4x.c.
17534 * config/c4x/c4x.h: Moved prototypes to c4x.h.
17535 * config/c4x/c4x.c (c4x_preferred_reload_class, c4x_limit_reload_class,
17536 c4x_secondary_memory_needed) Delete.
17537 (fp_zero_operand): Add mode argument.
17538
17539 Thu Nov 4 15:52:35 1999 Andrew Haley <aph@cygnus.com>
17540
17541 * reload1.c (reload_reg_free_for_value_p): Don't use a register
17542 that is in reload_reg_used.
17543
17544 Tue Nov 9 16:43:00 1999 Nick Clifton <nickc@cygnus.com>
17545
17546 * config/arm/arm-protos.h: New file: Prototypes for functions
17547 defined in arm.c and pe.c.
17548 * config/arm/arm.h: Fix compile time warnings.
17549 * config/arm/arm.c: Fix compile time warnings.
17550 * config/arm/pe.h: Fix compile time warnings.
17551 * config/arm/aout.h: Fix compile time warnings.
17552
17553 Tue Nov 9 14:55:44 1999 Nick Clifton <nickc@cygnus.com>
17554
17555 * config/m32r/m32r-protos.h: New file: Prototypes for functions
17556 defined in m32r.c
17557
17558 * config/m32r/m32r.h: Move prototypes to m32r-protos.h
17559 Add support for subtargets.
17560 Add prototypes for new predicates.
17561 Add scheduling macros.
17562
17563 * config/m32r/m32r.c: Fix compile time warnings.
17564 (int8_operand): New predicate function.
17565 (reg_or_cmp_int16_operand): New predicate function.
17566 (extend_operand): New predicate function.
17567 (m32r_adjust_code): New scheduling function.
17568 (m32r_adjust_priorty): New scheduling function.
17569 (m32r_sched_init): New scheduling function.
17570 (m32r_sched_reorder): New scheduling function.
17571 (m32r_sched_variable_issue): New scheduling function.
17572 (direct_return): New codegen function.
17573 (m32r_not_same_reg): New rtl testsing function.
17574
17575 * config/m32r/m32r.md: Fix compile time warnings.
17576 Add support for pre decrement and post increment memory
17577 references.
17578 Add S<cc> patterns.
17579 Add fabs patterns.
17580
17581 Mon Nov 8 22:20:13 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
17582
17583 * global.c (EXECUTE_IF_CONFLICT): Don't define.
17584 (prune_preferences): Use EXECUTE_IF_SET_IN_ALLOCNO_SET instead.
17585 (find_reg): Likewise.
17586
17587 Mon Nov 8 13:16:46 1999 Jason Eckhardt <jle@cygnus.com>
17588
17589 * config/pa/pa.md (fmpynfadd,{sgl,dbl} insns): Use %fr0 rather than 0
17590 to avoid assembler errors.
17591
17592 Mon Nov 8 15:38:41 1999 Nick Clifton <nickc@cygnus.com>
17593
17594 * config/v850/v850-protos.h: New file: Prototypes for functions
17595 defined in v850.c
17596 * config/v850/v850.h: Move prototypes to v850-protos.h
17597 * config/v850/v850.c: Move prototypes to v850-protos.h
17598 * config/v850/v850.md: Fix compile time warnings.
17599
17600 * config/fr30/fr30-protos.h: New file: Prototypes for functions
17601 defined in fr30.c
17602 * config/fr30/fr30.h: Move prototypes to fr30-protos.h
17603 * config/fr30/fr30.c: Fix compile time warnings.
17604 * config/fr30/fr30.md: Fix compile time warnings.
17605
17606 Mon Nov 8 07:25:37 1999 Mark Mitchell <mark@codesourcery.com>
17607
17608 * tree.h (get_containing_scope): Declare it.
17609 * tree.c (get_containing_scope): New fucntion.
17610 (decl_function_context): Use it.
17611 * toplev.c (rest_of_compilation): Use get_containing_scope.
17612
17613 aMon Nov 8 03:03:07 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
17614
17615 * Makefile.in (rtl.o): Depend on toplev.h.
17616
17617 Sun Nov 7 20:55:14 1999 Mark Mitchell <mark@codesourcery.com>
17618
17619 * cse.c (delete_trivially_dead_insns): Replace alloca with
17620 xmalloc/xcalloc.
17621 * except.c (update_rethrow_references): Likewise.
17622 (init_eh_nesting_info): Likewise.
17623 * function.c (identify_blocks): Likewise.
17624 * gcse.c (dump_hash_table): Likewise.
17625 * graph.c (print_rtl_graph_with_bb): Likewise.
17626 * loop.c (combine_movables): Likewise.
17627 (move_movables): Likewise.
17628 (count_loop_regs_set): Likewise.
17629 (strength_reduce): Likewise.
17630 * profile.c (compute_branch_probabilities): New function, split
17631 out from ...
17632 (branch_prob): Here. Replace alloca with xmalloc/xcalloc.
17633 * regclass.c (regclass): Likewise.
17634 * regmove.c (regmove_optimize): Likewise.
17635 * toplev.c (compile_file): Likewise.
17636 (main): Don't mess with the stack rlimit.
17637
17638 Sun Nov 7 19:41:17 1999 Catherine Moore <clm@cygnus.com>
17639
17640 * config/elfos.h (ASM_DECLARE_FUNCTION_NAME): Conditionally define.
17641 (ASM_DECLARE_FUNCTION_SIZE): Conditionally define.
17642
17643 Sun Nov 7 10:23:28 1999 Mark P. Mitchell <mark@codesourcery.com>
17644
17645 * integrate.c (save_for_inline_nocopy): Clear in_nonparm_insns.
17646
17647 Sun Nov 7 02:58:48 1999 Jeffrey A Law (law@cygnus.com)
17648
17649 * global.c (EXECUTE_IF_CONFLICT): Undo Robert's change.
17650 (EXECUTE_IF_SET_IN_ALLOCNO_SET): Put curleys around CODE in
17651 macro expansion.
17652
17653 Sat Nov 6 23:48:30 1999 Robert Lipe (robertlipe@usa.net)
17654
17655 * global.c (EXECUTE_IF_CONFLICT): Correct quoting typo.
17656
17657 Sat Nov 6 17:34:39 1999 Jeffrey A Law (law@cygnus.com)
17658
17659 * gcse.c (post_dominators): Kill.
17660 (alloc_code_hoist_mem, free_code_hoist_mem); Kill post_dominators.
17661 (compute_code_hoist_data): Use compute_flow_dominators. Do not
17662 pass in a pdom array since we do not need pdoms.
17663 * haifa-sched.c (schedule_insns): Similarly.
17664 * flow.c (compute_dominators): Remove dead function.
17665 (compute_flow_dominators): Do not compute doms or pdoms if the
17666 caller does not request them. Split up loop to build doms and
17667 pdoms. Use a worklist to compute doms and pdoms.
17668 * basic-block.h (compute_dominators): Remove prototype.
17669
17670 Sat Nov 6 11:38:39 1999 Richard Henderson <rth@cygnus.com>
17671
17672 * haifa-sched.c (struct haifa_insn_data, h_i_d): New.
17673 (insn_luid, insn_priority, insn_costs, insn_units): Remove.
17674 (insn_reg_weight, insn_depend, insn_dep_count): Remove.
17675 (insn_blockage, insn_ref_count, line_note, insn_tick): Remove.
17676 (cant_move, fed_by_spec_load, is_load_insn): Remove.
17677 (schedule_region): Remove unused variable.
17678 (schedule_insns): Allocate h_i_d, and not all the separate arrays.
17679
17680 Sat Nov 6 10:00:34 1999 Mark Mitchell <mark@codesourcery.com>
17681
17682 * local-alloc.c (local_alloc): Use xmalloc/xcalloc, not alloca.
17683 (update_equiv_regs): Likewise.
17684 (block_alloc): Likewise.
17685 * reg-stack.c (reg_to_stack): Likewise.
17686 (convert_regs_2): Likewise.
17687 * reload1.c (reload_as_needed): Likewise.
17688
17689 Sat Nov 6 09:57:59 1999 Mark Mitchell <mark@codesourcery.com>
17690
17691 * Makefile.in (dbxout.o): Depend on ggc.h.
17692 (dwarf2out.o): Likewise.
17693 (xcoffout.o): Likewise.
17694 * dbxout.c: Include ggc.h.
17695 (dbxout_init): Register lastfile as a root.
17696 * dwarf2out.c: Include ggc.h.
17697 (dwarf2out_line): Register lastfile as a root.
17698 * xcoffout.c: Include ggc.h.
17699 (xcoffout_source_line): Register xcoff_lastfile as a root.
17700
17701 Sat Nov 6 09:52:09 1999 Richard Henderson <rth@cygnus.com>
17702
17703 * i386.md (movdf_1, movxf_1): Earlyclobber general regs destination.
17704
17705 Sat Nov 6 07:48:59 1999 Catherine Moore <clm@cygnus.com>
17706
17707 * config/svr4.h (ASM_DECLARE_FUNCTION): Check if already
17708 defined.
17709 (ASM_DECLARE_FUNCTION_SIZE): Likewise.
17710
17711 Fri Nov 5 18:33:39 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
17712
17713 * global.c (EXECUTE_IF_SET_IN_ALLOCNO_SET): New macro.
17714 (EXECUTE_IF_CONFLICT): Likewise.
17715 (ALLOCNO_LIVE_P): Avoid signed division.
17716 (SET_ALLOCNO_LIVE, CLEAR_ALLOCNO_LIVE): Likewise.
17717 (prune_preferences, find_reg): Use EXECUTE_IF_CONFLICT.
17718 (record_one_conflict): Use EXECUTE_IF_SET_IN_ALLOCNO_SET.
17719
17720 Fri Nov 5 12:04:02 1999 Richard Henderson <rth@cygnus.com>
17721
17722 * haifa-sched.c (schedule_block): Don't crash if there's no
17723 next insn for an interblock movement.
17724 (add_branch_dependences): Don't allow clobber insns to move either.
17725
17726 Fri Nov 5 10:18:11 1999 Richard Henderson <rth@cygnus.com>
17727
17728 * i386.c (split_xf): New.
17729 * i386-protos.h: Declare it.
17730 * i386.md (movxf_1): Add general regs alternatives.
17731 (movxf_1+1): New splitter for same.
17732
17733 Fri Nov 5 12:05:52 1999 Nick Clifton <nickc@cygnus.com>
17734
17735 * function.c (purge_addressof_1): Add missing return values.
17736
17737 Fri Nov 5 10:07:25 1999 Nick Clifton <nickc@cygnus.com>
17738
17739 * function.c (is_addressof): New function. Returns true if
17740 the given piece of RTL is an ADDRESSOF.
17741 (purge_addressof_1): Make boolean. Return false if the
17742 ADDRESSOFs could not be purged.
17743 (purge_addressof): If ADDRESSOFs could not be purged from the
17744 notes attached to an insn, remove the offending note(s),
17745 unless they are attached to a libcall.
17746
17747 1999-11-05 Andreas Jaeger <aj@suse.de>
17748
17749 * genoutput.c (null_operand =): Initialize all fields.
17750
17751 * errors.h: Add extern to prototypes.
17752
17753 Fri Nov 5 01:44:09 1999 Jeffrey A Law (law@cygnus.com)
17754
17755 * configure.in (m68k-next-nextstep4): Handle Openstep 4.2.
17756 * configure: Rebuilt.
17757
17758 Fri Nov 5 01:24:37 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
17759
17760 * global.c (CONFLICTP, SET_CONFLICT): Avoid signed division.
17761 (mirror_conflicts): New function.
17762 (global_alloc): Call it.
17763 (expand_preferences): Remove redundant CONFLICTP test.
17764 (find_reg, dump_conflicts): Likewise.
17765 (prune_preferences): Process conflicts one word at a time.
17766
17767 Fri Nov 5 01:05:21 1999 Richard Henderson <rth@cygnus.com>
17768
17769 * global.c (build_insn_chain): Use EXECUTE_IF_SET_IN_BITMAP
17770 instead of an explicit loop.
17771
17772 Thu Nov 4 23:07:14 1999 Jim Wilson <wilson@cygnus.com>
17773
17774 * cse.c (cse_insn): Revert Oct 31 change. When computing src_elt,
17775 if REG_RETVAL check succeeds, then put classp in src_elt.
17776
17777 Thu Nov 4 23:48:14 1999 Jeffrey A Law (law@cygnus.com)
17778
17779 * function.c (pad_to_arg_alignment): Only update argument_pad
17780 if the argument's alignment is greater than STACK_BOUNDARY.
17781
17782 Thu Nov 4 16:44:53 1999 Richard Henderson <rth@cygnus.com>
17783
17784 * bitmap.h (BITMAP_XFREE): New.
17785 * flow.c (life_analysis): Use it.
17786 (life_analysis_1): Free blocks.
17787
17788 * combine.c (undo_commit): New.
17789 (try_combine): Use it. Don't zap undobuf.undos.
17790 (combine_instructions): Don't zap undobuf.undos; free the
17791 undobuf.frees list.
17792
17793 * local-alloc.c (local_alloc): Free qty_phys_num_sugg.
17794
17795 * stmt.c (cost_table_): New.
17796 (estimate_case_costs): Use it instead of xmalloc.
17797
17798 * toplev.c (compile_file): Reuse dumpname memory instead
17799 of strdup'ing it.
17800
17801 Thu Nov 4 16:36:44 1999 Richard Henderson <rth@cygnus.com>
17802
17803 * reg-stack.c (convert_regs_1): Initialize target_stack->top
17804 after verifying an EH edge.
17805
17806 * haifa-sched.c (init_rgn_data_dependences): Correctly
17807 size bb_pending_lists_length when zeroing.
17808
17809 Thu Nov 4 16:36:36 1999 Richard Henderson <rth@cygnus.com>
17810
17811 * function.c (diddle_return_value): New.
17812 (expand_function_end): Use it.
17813 * stmt.c (expand_null_return): Likewise.
17814 (expand_value_return): Likewise.
17815
17816 * reg-stack.c (subst_stack_regs_pat): Handle clobbers at top-level.
17817
17818 * reload1.c (reload): Don't remove return value clobbers.
17819
17820 Thu Nov 4 13:33:46 1999 Richard Henderson <rth@cygnus.com>
17821
17822 * rtl.c (read_rtx): Use fatal_with_file_and_line not fatal.
17823
17824 Thu Nov 4 12:49:52 1999 Richard Henderson <rth@cygnus.com>
17825
17826 * cse.c (cse_main): Use xmalloc, not alloca.
17827 (cse_basic_block): Likewise.
17828 * local-alloc.c (local_alloc): Likewise.
17829
17830 Thu Nov 4 14:22:12 1999 David Billinghurst <David.Billinghurst@riotinto.com.au>
17831 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
17832
17833 * rtl.c: Include toplev.h.
17834 (fatal): Remove declaration.
17835
17836 Thu Nov 4 06:39:47 1999 Jeffrey A Law (law@cygnus.com)
17837
17838 * haifa-sched.c (schedule_block): Fix thinko.
17839
17840 1999-11-03 James McKelvey <mckelvey@fafnir.com>
17841
17842 * fixinc/fixincl.c(create_file): Allow for systems that do not have
17843 S_IR* defined values
17844
17845 1999-11-03 Philippe De Muyter <phdm@macqel.be>
17846
17847 * fixlib.c (load_file_data): Do not call `realloc' with a NULL pointer;
17848 call `malloc' instead.
17849
17850 Wed Nov 3 23:05:14 1999 Mark Mitchell <mark@codesourcery.com>
17851
17852 * flags.h (flag_renumber_insns): Declare.
17853 * emit-rtl.c (renumber_insns): Check flag_renumber_insns. Print
17854 renumbering table.
17855 * rtl.h (renumber_insns): Change prototype.
17856 * toplev.c (flag_renumber_insns): Define.
17857 (rest_of_compilation): Pass rtl_dump_file to flag_renumber_insns.
17858
17859 Wed Nov 3 15:11:27 1999 David S. Miller <davem@redhat.com>
17860
17861 * config/sparc/sparc.md: Remove insn type fpsqrt, add fpsqrts
17862 and fpsqrtd. Use them and create fdiv function unit to more
17863 accurately represent fpu sqrt pipeline semantics on UltraSparc.
17864 * config/sparc/sparc.c: Account for fpsqrt{s,d} changes.
17865
17866 Wed Nov 3 15:11:27 1999 Matteo Frigo <athena@fftw.org>
17867
17868 * config/sparc/sparc.md: Adjust FADD/FMUL result latencies to
17869 3 on UltraSparc.
17870 * config/sparc/sparc.c (ultra_schedule_insn): Insert launched
17871 insn into ready list, do not use just a raw swap.
17872
17873 Wed Nov 3 14:51:59 1999 Mark P. Mitchell <mark@codesourcery.com>
17874
17875 * rtl.h (renumber_insns): New function.
17876 (remove_unnecessary_notes): Likewise.
17877 * emit-rtl.c (renumber_insns): Define.
17878 (remove_unncessary_notes): Likewise.
17879 * toplev.c (rest_of_compilation): Remove dead code.
17880 Use renumber_insns and remove_unncessary_notes.
17881
17882 * gcse.c (struct null_pointer_info): New type.
17883 (get_bitmap_width): New function.
17884 (current_block): Remove.
17885 (nonnull_local): Likewise.
17886 (nonnull_killed): Likewise.
17887 (invalidate_nonnull_info): Take a null_pointer_info as input.
17888 (delete_null_pointer_checks_1): New function.
17889 (delete_null_pointer_checks): Use it.
17890
17891 * haifa-sched.c (find_rgns): Replace uses of alloca with xmalloc.
17892 (split_edges): Likewise.
17893 (schedule_block): Likewise.
17894 (compute_block_backward_dependencies): Likewise.
17895 (schedule_region): Likewise.
17896 (schedule_insns): Likewise.
17897
17898 Wed Nov 3 15:40:23 1999 Catherine Moore <clm@cygnus.com>
17899
17900 * defaults.h (ASM_OUTPUT_ALTERNATE_LABEL_NAME): Provide default.
17901 * emit-rtl.c (gen_label_rtx): Support LABEL_ALTERNATE_NAME.
17902 * final.c (final_scan_insn): Emit LABEL_ALTERNATE_NAME.
17903 * ggc-common.c (ggc_mark_rtx_children): Mark LABEL_ALTERNATE_NAME.
17904 * jump.c (delete_unreferenced_labels): Don't delete if
17905 LABEL_ALTERNATE_NAME is set.
17906 * print-rtl.c (print_rtx): Dump alternate name.
17907 * rtl.def (CODE_LABEL): Change format to "iuuis00s".
17908 * rtl.h (LABEL_ALTERNATE_NAME): Define.
17909 * rtl.texi (LABEL_ALTERNATE_NAME): Document.
17910 * tm.texi (ASM_OUTPUT_ALTERNATE_LABEL_NAME): Document.
17911
17912 Wed Nov 3 15:39:19 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17913
17914 * fix-header.c (recognized_extern, recognized_function): Constify
17915 a char*.
17916
17917 * lcm.c (compute_laterin): Remove unused variable `temp_bitmap'.
17918 (pre_edge_lcm): Mark parameter `file' with ATTRIBUTE_UNUSED.
17919 (compute_available): Remove unused variable `last'.
17920 (compute_nearerout): Remove unused variable `temp_bitmap'.
17921 (pre_edge_rev_lcm): Mark parameter `file' with ATTRIBUTE_UNUSED.
17922 Remove unused variable `x'.
17923
17924 * scan.h (recognized_function, recognized_extern): Constify a
17925 char*.
17926
17927 * simplify-rtx.c (simplify_rtx): Remove unused variable `new'.
17928
17929 Wed Nov 3 10:40:53 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
17930
17931 * varasm.c (decode_rtx_const): Use XSTR to access the string
17932 of a SYMBOL_REF.
17933
17934 Wed Nov 3 10:10:58 1999 Richard Henderson <rth@cygnus.com>
17935
17936 * c-decl.c (duplicate_decls): Copy DECL_MODE too.
17937
17938 Wed Nov 3 12:12:59 1999 Bernd Schmidt <bernds@cygnus.co.uk>
17939
17940 * reload1.c (eliminate_regs_in_insn): If copying insn, also copy notes.
17941
17942 Wed Nov 3 03:26:28 1999 Jeffrey A Law (law@cygnus.com)
17943
17944 * pa.c (ireg_operand): New function.
17945 * pa.h (PREDICATE_CODES): Handle ireg_operand.
17946 * pa.md (parallel_addb, parallel_movb): Use ireg_operand.
17947 Fix out of date comment.
17948
17949 * pa.md (negdi2): Turn into expander + anonymous pattern.
17950
17951 * reload.c (find_reloads): Fix typos in recent change.
17952
17953 * dwarf2out.c: Do not include ctype.h.
17954
17955 Tue Nov 2 21:53:44 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17956
17957 * regclass.c (record_reg_classes): Always use may_move_cost when
17958 seeing how operand fits with various register classes.
17959
17960 Tue Nov 2 15:38:17 1999 Richard Henderson <rth@cygnus.com>
17961
17962 * resource.c: Revert Oct 26 20:42 and Oct 27 00:56 changes.
17963 * toplev.c: Revert Nov 1 13:22 change.
17964
17965 Tue Nov 2 14:21:37 1999 Jason Eckhardt <jle@cygnus.com>
17966
17967 * config/pa/pa.md (height reduction patterns): Add checks for
17968 overlapping operands to avoid semantic-destroying splits for
17969 height reduction patterns.
17970
17971 Tue Nov 2 15:27:31 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
17972
17973 * configure.in (m68k-hp-hpux*, xm_alloca.h): The underscore should
17974 have been an hyphen, fixed.
17975 * configure: Rebuilt.
17976
17977 Tue Nov 2 17:04:36 1999 Nick Clifton <nickc@cygnus.com>
17978
17979 * config/arm/tpe.h: Add prototypes for exported functions.
17980 * config/arm/pe.c: Fix compile time warnings.
17981 * config/arm/semi.h: Fix compile time warnings.
17982 * config/arm/arm.c: Fix compile time warnings.
17983 * config/arm/arm.h: Fix compile time warnings.
17984 * config/arm/arm.md: Fix compile time warnings.
17985 * config/arm/thumb.c: Fix compile time warnings.
17986 * config/arm/thumb.h: Fix compile time warnings.
17987 * config/arm/thumb.md: Fix compile time warnings.
17988
17989 Tue Nov 2 04:10:24 1999 Jan Hubicka <hubicka@freesoft.cz>
17990
17991 * jump.c (jump_optimize_1): Swap the incscc and the conditional mode
17992 detection code
17993
17994 * unroll.c (unroll_loop): Remove LOOP notes when loop is
17995 completely unrolled.
17996
17997 Tue Nov 2 16:57:22 1999 Bernd Schmidt <bernds@cygnus.co.uk>
17998
17999 * cse.c (simplify_plus_minus, check_fold_const): Delete declarations.
18000
18001 Tue Nov 2 09:43:00 1999 Catherine Moore <clm@cygnus.com>
18002
18003 * Makefile.in (genattrtab): Don't use (HOST_RTLANAL).
18004 * rtl.h (rtx_equal_p): Move prototype.
18005 * rtl.c (rtx_equal_function_value_matters): Move from
18006 rtlanal.c
18007 (rtx_equal_p): Likewise.
18008 * rtlanal.c (rtx_equal_function_value_matters): Delete.
18009 (rtx_equal_p): Likewise.
18010
18011 Mon Nov 1 23:21:17 1999 Jason Merrill <jason@yorick.cygnus.com>
18012
18013 * libgcc2.c (__do_global_dtors): Only do EH frame stuff if
18014 ! HAS_INIT_SECTION.
18015
18016 Mon Nov 1 23:37:38 1999 Jeffrey A Law (law@cygnus.com)
18017
18018 * gcc.1 (PA options): Remove obsolete -mshared-libs options.
18019
18020 * pa.h (ADDR_VEC_ALIGN): Define.
18021
18022 * jump.c (jump_optimize_1): Also move LOOP_VTOP and LOOP_CONT
18023 notes when presented with "if (foo) break; end_of_loop" and
18024 the break sequence gets moved out of the loop.
18025
18026 * unroll.c (unroll_loop): Allocate memory for MAP using xcalloc.
18027 Remove explicit zero initializations of entries within MAP.
18028
18029 Mon Nov 1 18:09:14 1999 Richard Henderson <rth@cygnus.com>
18030
18031 * reg-stack.c (convert_regs_1): Handle EH edges specially.
18032
18033 Mon Nov 1 15:41:01 1999 Mark P. Mitchell <mark@codesourcery.com>
18034
18035 * bitmap.h (BITMAP_XMALLOC): New macro.
18036 * flow.c (CLEAN_ALLOCA): Remove.
18037 (delete_unreachable_blocks): Use xmalloc/xcalloc instead of alloca.
18038 (life_analysis): Likewise.
18039 (update_life_info): Don't use CLEAN_ALLOCA.
18040 (life_analysis_1): Use xmalloc/xcalloc instead of alloca.
18041 (calculate_global_regs_live): Likewise.
18042 (print_rtl_with_bb): Likewise.
18043 (verify_flow_info): Likewise.
18044 * global.c (global_alloc): Likewise.
18045 (global_conflicts): Likewise.
18046 * integrate.c (save_for_inline_nocopy): Likewise.
18047 (expand_inline_function): Likewise.
18048 * jump.c (jump_optimize_1): Likewise.
18049 (duplicate_loop_exit_test): Likewise.
18050 (thread_jumps): Likewise.
18051 * loop.c (loop_optimize): Likewise.
18052 (combine_givs): Likewise.
18053 (recombine_givs): Likewise.
18054 * reorg.c (dbr_schedule): Likewise.
18055 * unroll.c (unroll_loop): Likewise.
18056
18057 * combine.c (combine_instructions): Use xmalloc instead of alloca.
18058
18059 Mon Nov 1 13:22:30 1999 Richard Henderson <rth@cygnus.com>
18060
18061 * toplev.c (rest_of_compilation): Don't optimize the CFG
18062 when rebuilding, just before dbr.
18063
18064 Mon Nov 1 14:35:50 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18065
18066 * output.h (assemble_end_function, assemble_destructor,
18067 assemble_constructor, assemble_gc_entry, assemble_global,
18068 assemble_label, output_constant_pool) Constify a char*.
18069
18070 * varasm.c (assemble_destructor, assemble_constructor,
18071 assemble_gc_entry, assemble_end_function, assemble_global,
18072 assemble_label, output_constant_pool): Likewise.
18073
18074 Mon Nov 1 14:22:51 1999 Nick Clifton <nickc@cygnus.com>
18075
18076 * config/arm/thumb.c (thumb_expand_prologue): Add comments
18077 explaining what is goin on in this function.
18078
18079 Mon Nov 1 08:03:15 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18080
18081 * regclass.c (record_reg_classes): In matching case, recompute
18082 costs since the direction of movement is different.
18083
18084 Sun Oct 31 21:59:34 MST 1999 Diego Novillo <dnovillo@cygnus.com>
18085
18086 * resource.c (mark_target_live_regs): For unconditional branches,
18087 the resources found at the branch target should be added to the
18088 resources found so far, not intersected.
18089
18090 Sun Oct 31 15:48:49 1999 Philippe De Muyter <phdm@macqel.be>
18091
18092 * fixinc/fixtests.c, fixinc/fixfixes.c : Keep `#' in first column for
18093 old cpp's.
18094 * fixinc/fixincl.c (fcntl.h) : Do not include this file twice.
18095 (sys/mman.h): Include this file only if #HAVE_MMAP.
18096 (run_compiles): Initialize `esac_fmt' with one old KR string, not
18097 with automatically concatenated ANSI strings.
18098
18099 Sun Oct 31 23:57:07 1999 Mark Mitchell <mark@codesourcery.com>
18100
18101 * ggc-page.c (struct page_entry): Remove save_num_free_objects.
18102 (DIV_ROUND_UP): Robustify.
18103 (ggc_recalculate_in_use_p): New function.
18104 (release_pages): Don't inline it.
18105 (ggc_alloc_obj): Don't refuse to allocate objects on pages for
18106 outer contexts.
18107 (ggc_pop_context): Use ggc_recalculate_in_use_p.
18108 (clear_marks): Always save in_use_p.
18109 (sweep_pages): Use ggc_recalculate_in_use_p.
18110 (ggc_page_print_statistics): Avoid signed/unsigned comparisons.
18111 Release pages before counting statistics.
18112
18113 Sun Oct 31 23:42:37 1999 Mark Mitchell <mark@codesourcery.com>
18114
18115 * toplev.c (rest_of_compilation): Fix thinko in this change:
18116
18117 Fri Oct 29 15:25:07 1999 Arnaud Charlet <charlet@ACT-Europe.FR>
18118
18119 (rest_of_compilation): If inside an inlined external function,
18120 pretend we are just being declared.
18121
18122 Sun Oct 31 23:03:25 1999 Jeffrey A Law (law@cygnus.com)
18123
18124 * flow.c (calculate_global_regs_live): Fix thinko.
18125
18126 * integrate.c (expand_inline_function): Fix bugs in previous
18127 change from Oct 28, 1999.
18128
18129 Sun Oct 31 20:27:45 1999 Mark Mitchell <mark@codesourcery.com>
18130
18131 * stmt.c (expand_value_return): Fix typo in this change:
18132
18133 Thu Oct 28 18:06:50 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18134 (expand_value_return): Correctly convert VAL when promoting function
18135 return; support RETURN_REG being a PARALLEL.
18136
18137 Sun Oct 31 20:25:42 1999 Mark P. Mitchell <mark@codesourcery.com>
18138
18139 * expr.c (readonly_fields_p): Ignore everything except FIELD_DECLs.
18140
18141 Sun Oct 31 20:42:17 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18142
18143 * hard-reg-set.h (reg_names): Constify a char*.
18144
18145 * regclass.c (reg_names): Likewise.
18146
18147 * regs.h (reg_names): Likewise
18148
18149 * a29k/a29k.c (reg_names): Delete declaration.
18150
18151 * a29k/a29k.h (CONDITIONAL_REGISTER_USAGE): Constify a char*.
18152
18153 * arc/arc.c (arc_save_restore, arc_output_function_prologue,
18154 arc_output_function_epilogue): Likewise.
18155
18156 * elxsi/elxsi.c (reg_names): Likewise.
18157
18158 * gmicro/gmicro.h (FUNCTION_PROLOGUE, FUNCTION_EPILOGUE): Likewise.
18159
18160 * m32r/m32r.c (m32r_output_function_epilogue, emit_cond_move):
18161 Likewise.
18162
18163 * m88k/m88k.c (output_function_profiler): Likewise.
18164
18165 * sparc/sparc.c (sparc_flat_output_function_prologue,
18166 sparc_flat_output_function_epilogue): Likewise.
18167
18168 Sun Oct 31 13:32:15 CET 1999 Marc Lehmann <pcg@goof.com>
18169
18170 * toplev.c (rest_of_compilation): Seperate the setjmp/vfork clobber
18171 warning from -Wuninitialized and put it under -W.
18172 * function.c (uninitialized_vars_warning): Warn only when the
18173 corresponding flag is set.
18174
18175 Sun Oct 31 01:53:30 1999 Jeffrey A Law (law@cygnus.com)
18176
18177 * cse.c (cse_insn): If an insn has only a single set, SRC_EQV
18178 is nonzero and the single set does not have an elt, then assign
18179 it an elt.
18180
18181 * simplify-rtx.c: New file.
18182 * Makefile.in (OBJS): Add simplify-rtx.o
18183 (simplify-rtx.o): Add dependencies.
18184 * rtl.h (simplify_gen_binary, simplify_rtx): Add prototypes.
18185 * cse.c: Use simplify_gen_binary intead of cse_gen_binary.
18186 (cse_gen_binary, simplify_unary_operation): Delete.
18187 (simplify_binary_operation, simplify_plus_minus): Likewise.
18188 (check_fold_consts, simplify_relation_operation): Likewise.
18189 (simplify_ternary_operation): Likewise.
18190 (delete_trivially_dead_insns): Simplify the contents of the
18191 REG_EQUAL note before trying to substitute it into the source
18192 of the reg-reg copy at the end of a libcall sequence.
18193
18194 * combine.c (combine_simplify_rtx): Renamed from simplify_rtx. All
18195 references/callers changed.
18196
18197 * mn10200.c (mn10200_va_arg): Force the return value into a
18198 register.
18199
18200 * fr30.h (EXTRA_CC_NAMES): Remove obsolete macro.
18201
18202 * cccp.c (macroexpand): Avoid out of range accesses for omitted
18203 arguments.
18204
18205 Sat Oct 30 22:42:50 1999 Stephen L Moshier <moshier@mediaone.net>
18206
18207 * c-lex.c (yylex): Accept 'f' in mantissa of hex float constant.
18208
18209 Sat Oct 30 22:19:26 1999 Jeffrey A Law (law@cygnus.com)
18210
18211 * fold-const.c (fold): Fix thinko when optimizing comparisons
18212 against -0.0.
18213
18214 Sat Oct 30 21:32:17 1999 David Starner <dstarner98@aasaa.ofe.org>
18215
18216 * gcc.texi (Passes): Update front-end files to their current
18217 location.
18218
18219 Sat Oct 30 14:41:40 1999 Richard Henderson <rth@cygnus.com>
18220
18221 * alpha.h (SECONDARY_INPUT_RELOAD_CLASS): Call secondary_reload_class.
18222 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
18223 (PREDICATE_CODES): Add addition_operation.
18224 * alpha-protos.h (addition_operation): Declare.
18225 (secondary_reload_class): Likewise.
18226 * alpha.c (addition_operation): New.
18227 (secondary_reload_class): New, from old SECONDARY_INPUT_RELOAD_CLASS.
18228 * alpha.md (adddi3): Turn into expander.
18229 (*lda, *adddi_2): New.
18230 (movsf, movdf patterns): Don't preference integer regs.
18231 (movsi, movdi patterns): Don't preference fp regs.
18232
18233 Sat Oct 30 14:38:22 1999 Richard Henderson <rth@cygnus.com>
18234
18235 * genrecog.c (write_switch): Check for duplicate CODE cases.
18236
18237 Sat Oct 30 14:31:48 1999 Richard Henderson <rth@cygnus.com>
18238
18239 * ggc-common.c: Update pre-function commentary.
18240 * ggc-page.c: Likewise.
18241 (poison): Remove.
18242 (poison_pages): Use memset directly.
18243 (ggc_alloc_obj): Likewise. Use a different pattern than poison_pages.
18244 (ggc_collect): Poison before sweeping.
18245 * ggc-simple.c: Update pre-function commentary.
18246 (ggc_alloc_obj): Poison non-zeroed memory.
18247
18248 Sat Oct 30 14:28:52 1999 Mark Mitchell <mark@codesourcery.com>
18249
18250 * ggc-common.c (ggc_print_statistics): Make arguments to fprintf
18251 match format string, even on 64-bit hosts.
18252 * gcc-page.c (ggc_page_print_statistics): Likewise.
18253
18254 Sat Oct 30 14:38:04 1999 Catherine Moore <clm@cygnus.com>
18255
18256 * config/i386/i386.c (ix86_cpu): Revert last patch.
18257 * config/i386/i386.h (ix86_cpu): Ditto.
18258
18259 Fri Oct 29 17:00:42 1999 Jim Wilson <wilson@cygnus.com>
18260
18261 * stor-layout.c (layout_type): When compute TYPE_SIZE_UNIT from
18262 TYPE_SIZE, convert type of result to sizetype.
18263
18264 Fri Oct 29 14:34:17 1999 Richard Henderson <rth@cygnus.com>
18265
18266 * flow.c (count_or_remove_death_notes): Equate NULL with the
18267 universal set.
18268
18269 * jump.c, reg-stack.c, toplev.c: Revert Oct 27 change.
18270 * toplev.c (rest_of_compilation): Rebuild CFG immediately before
18271 dbr_schedule.
18272
18273 * i386.c (pic_label_no): Delete.
18274 (ix86_attr_length_default): Don't use single_set to peek
18275 inside a parallel.
18276
18277 * recog.c (peephole2_optimize): Allow recog_next_insn to index
18278 the first insn after bb->end.
18279 * i386.md (push mem peeps): Scratch is live after evaluation
18280 of the memory.
18281 (cmp mem peep): Similarly.
18282
18283 Fri Oct 29 11:50:11 1999 Catherine Moore <clm@cygnus.com>
18284
18285 * calls.c (emit_library_call_value): Fix declaration of alignment_pad.
18286 * function.c (pad_to_arg_alignment): Add missing braces.
18287
18288 Fri Oct 29 13:53:48 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18289
18290 * alpha/alpha-protos.h (literal_section): Add prototype.
18291 (alpha_need_linkage, alpha_start_function,alpha_end_function):
18292 Constify a char*.
18293
18294 * alpha/alpha.c (alpha_ra_ever_killed, set_frame_related_p): Add
18295 prototype.
18296 (alpha_start_function, alpha_end_function, float_strings,
18297 alpha_need_linkage): Constify a char*
18298
18299 * alpha/alpha.h (ASM_OUTPUT_ASCII, ASM_OUTPUT_MI_THUNK): Likewise.
18300
18301 * alpha/alpha32.h (ASM_OUTPUT_MI_THUNK): Likewise.
18302
18303 * alpha/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
18304
18305 * alpha/vms.h (ASM_OUTPUT_SECTION_NAME): Likewise.
18306
18307 Fri Oct 29 13:49:39 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18308
18309 * flow.c (debug_flow_info): Add prototype.
18310
18311 * gcc.c (main): Likewise.
18312
18313 * gcse.c (expr_reaches_here_p_work, pre_expr_reaches_here_p_work):
18314 Likewise.
18315
18316 * reload1.c (failed_reload, set_reload_reg): Likewise.
18317
18318 * mips-tfile.c (main): Likewise.
18319 (pfatal_with_name, fancy_abort, botch, fatal, catch_signal): Mark
18320 with ATTRIBUTE_NORETURN.
18321
18322 Fri Oct 29 18:16:03 1999 Andrew Haley <aph@cygnus.com>
18323
18324 * config/i386/i386.h (ENCODE_SECTION_INFO): Don't do anything if
18325 DECL is not a memory ref.
18326
18327 Fri Oct 29 09:05:34 1999 Catherine Moore <clm@cygnus.com>
18328
18329 * config/i386/i386.h (ix86_cpu): Remove extern attribute.
18330 * config/i386/i386.c (ix86_cpu): Add extern attribute.
18331
18332 Fri Oct 29 16:30:04 1999 Andrew Haley <aph@cygnus.com>
18333
18334 * config/mips/elf.h: remove NAME__MAIN and SYMBOL__MAIN.
18335 * config/mips/elf64.h: ditto.
18336
18337 Fri Oct 29 08:03:57 1999 Catherine Moore <clm@cygnus.com>
18338
18339 * expr.c (emit_push_insn): New argument alignment_pad.
18340 Update all callers. Adjust stack pointer based on alignment pad.
18341 * function.c (pad_to_arg_alignment): New argument alignment_pad.
18342 Update all callers. Track alignment_pad if boundary > PARM_BOUNDARY.
18343 (locate_and_pad_parm): New argument alignment_pad. Update all
18344 callers.
18345 * expr.h (emit_push_insn): Update prototype.
18346 (locate_and_pad_parm): Update prototype.
18347 * calls.c (arg_data): Add new field alignment_pad.
18348 (initialize_argument_information): Initialize alignment_pad.
18349
18350 Fri Oct 29 02:51:35 1999 Mark Mitchell <mark@codesourcery.com>
18351
18352 * except.c (free_eh_nesting_info): Free the info itself.
18353 * function.c (free_after_compilation): Don't free NULL.
18354 * gcse.c (alloc_pre_mem): Free the temp_bitmap, too.
18355 (pre_edge_insert): Free inserted.
18356 * stmt.c (free_stmt_status): Don't free NULL.
18357
18358 Fri Oct 29 15:25:07 1999 Arnaud Charlet <charlet@ACT-Europe.FR>
18359
18360 * gcov.c (DIR_SEPARATOR): Provide default.
18361 (output_data): Add test for MS-DOS format absolute filename.
18362 (fancy_abort): Correct program name.
18363 (open_files): Open all files in binary mode.
18364 * libgcc2.c (__bb_exit_func): Likewise.
18365
18366 * profile.c (init_branch_prob): Specify binary when opening files.
18367
18368 * flags.h (flag_unwind_tables): New decl.
18369 * toplev.c (flag_unwind_table): New definition.
18370 (f_options): Add -funwind-tables.
18371 (decode_g_option): Clarify warning when unknown -g option is given.
18372 (rest_of_compilation): If inside an inlined external function,
18373 pretend we are just being declared.
18374
18375 * dwarf2out.c (dwarf2out_do_frame): Check -funwind_tables.
18376 (dwarf2out_frame_finish): Likewise.
18377
18378 Fri Oct 29 07:44:26 1999 Vasco Pedro <vp@di.fct.unl.pt>
18379
18380 * fold-const.c (merge_ranges): If not in0, but in1, handle
18381 upper bounds equal like subset case.
18382
18383 Thu Oct 28 19:22:24 1999 Douglas Rupp <rupp@gnat.com>
18384
18385 * dbxout.c (dbxout_parms): Generate a second stabs line for parameters
18386 passed in a register but moved to the stack.
18387
18388 Thu Oct 28 19:12:57 1999 Sam Tardieu <tardieu@act-europe.fr>
18389
18390 * gcc.c (pass_exit_codes, greatest_status): New variables.
18391 (struct option_map): Add entry for "--pass-exit-codes".
18392 (execute): Update greatest_status if error.
18393 (display_help): Add documentation for -pass-exit-codes.
18394 (process_command): Handle -pass-exit-codes.
18395 (main): Look at pass_exit_codes and greatest_status on call to exit.
18396
18397 Thu Oct 28 18:06:50 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18398
18399 * reload.c (find_reloads): Refine test for no input reload
18400 case to not includes reloads emitted after insn.
18401
18402 * function.c (find_temp_slots_from_address): Handle sum involving
18403 a register that points to a temp slot.
18404 (update_temp_slot_address): Make recursive call if both old and
18405 new are PLUS with a common operand.
18406 * calls.c (expand_call): Mark temp slot for result as having
18407 address taken.
18408
18409 * rtlanal.c (reg_referenced_p, case IF_THEN_ELSE): New case.
18410
18411 * gcc.c (process_command): Add standard_exec_prefix with "GCC"
18412 component as well as "BINUTILS".
18413
18414 * integrate.h (copy_rtx_and_substitute): New arg, FOR_LHS.
18415 * integrate.c (copy_rtx_and_substitute): Likewise.
18416 (expand_inline_function, integrate_parm_decls, integrate_decl_tree):
18417 All callers changed.
18418 * unroll.c (inital_reg_note_copy, copy_loop_body): Likewise.
18419
18420 * dbxout.c (dbxout_type, case INTEGER_TYPE_NODE): If can use
18421 gdb extensions, write size of type; also be more consistent
18422 in using references when this is a subtype.
18423
18424 * pa.md (extv, extzv, insv): Use define_expand to reject constant
18425 that is out of range.
18426
18427 * loop.c (unknown_constant_address_altered): New variable.
18428 (prescan_loop): Initialize it.
18429 (note_addr_stored): Set it for RTX_UNCHANGING_P MEM.
18430 (invariant_p, case MEM): Remove handling for volatile and readonly;
18431 check new variable if readonly.
18432 (check_dbra_loop): Chdeck unknown_constant_address_altered.
18433
18434 * cse.c (canon_hash, case MEM): Do not record if BLKmode.
18435 (addr_affects_sp_p): Removed from note_mem_written and only
18436 define #ifdef AUTO_INC_DEC.
18437
18438 * alpha.c (input_operand, case ADDRESSOF): Treat as REG.
18439
18440 * regclass.c (record_reg_classes): Properly handle register move
18441 directions.
18442
18443 * varasm.c (initializer_constant_valid_p, case MINUS_EXPR):
18444 Don't think valid if both operands are invalid.
18445 (struct constant_descriptor): New field RTL.
18446 (mark_const_hash_entry): Mark it.
18447 (record_constant{,_rtx}): Initialize it.
18448 (output_constant_def): Allocate RTL in permanent obstack and
18449 save in table.
18450 ({record,compare}_constant_1): Modes must match for
18451 CONSTRUCTOR of ARRAY_TYPE.
18452
18453 * c-common.h (initializer_constant_valid_p): Delete decl from here.
18454 * output.h (initializer_constant_valid_p): Move decl to here.
18455 * c-common.c (initializer_constant_valid_p): Delete function from here.
18456 * varasm.c (initializer_constant_valid_p): Move function to here.
18457
18458 * tree.h (STRIP_SIGN_NOPS): New macro.
18459 * fold-const.c (optimize_minmax_comparison): New function.
18460 (invert_truthvalue, case WITH_RECORD_EXPR): New case.
18461 (fold): Use STRIP_SIGN_NOPS instead of STRIP_TYPE_NOPS.
18462 (fold, case EQ_EXPR): Call optimize_minmax_comparison and add
18463 cases with ABS_EXPR, NEGATE_EXPR, PLUS_EXPR, MINUS_EXPR, and
18464 widening conversions.
18465 (fold, case LE_EXPR): Rework changing unsigned to signed comparisons
18466 to look at size of mode, not precision of type; also add missing cases.
18467 (optimize_bit_field_compare, decode_field_reference): Don't try to
18468 optimize COMPONENT_REF of a PLACEHOLDER_EXPR.
18469
18470 * dwarf2out.c (ctype.h): Include.
18471 (dwarf2out_set_demangle_name_func): New function.
18472 (size_of_line_info): Deleted.
18473 (output_line_info): Compute size of line info table from difference
18474 of labels.
18475 (base_type_die, add_name_attribute): Call demangle function, if any.
18476 (field_byte_offset): Use bits per word for variable length fields.
18477 (gen_array_type_die): Add array name.
18478 (gen_subprogram_die): Ignore DECL_INLINE if -fno-inline.
18479 (dwarf2out_add_library_unit_info): New function.
18480
18481 * explow.c (set_stack_check_libfunc): New function.
18482 (stack_check_libfunc): New static variable.
18483 (probe_stack_range): Allow front-end to set up a libfunc to call.
18484
18485 * combine.c (simplify_comparison): When making comparison in wider
18486 mode, check for having commuted an AND and a SUBREG.
18487 (contains_muldiv): New function.
18488 (try_combine): Call it when dividing a PARALLEL.
18489 (simplify_rtx, case TRUNCATE): Don't remove for umulsi3_highpart.
18490 (simplify_comparison, case ASHIFTRT): Recognize sign-extension of
18491 a PLUS.
18492 (record_value_for_reg): If TEM is a binary operation with two CLOBBERs,
18493 use one of the CLOBBERs instead.
18494 (if_then_else_cond): If comparing against zero, just return thing
18495 being compared.
18496
18497 * optabs.c (expand_abs): If machine has MAX, ABS (x) is MAX (x, -x).
18498 Don't generate shifts and subtract if have conditional arithmetic.
18499
18500 * rtl.h (delete_barrier): New declaration.
18501 * jump.c (jump_optimize): Set up to handle conditional call.
18502 In conditional arithmetic case, handle CALL_INSN followed by a BARRIER.
18503 (delete_barrier): New function.
18504
18505 * rtl.c (read_rtx): Call fatal if bad RTL code; check for bad mode.
18506
18507 * recog.c (nonmemory_operand): Accept ADDRESSOF.
18508
18509 * tree.c (build_type_attribute_variant): Push to obstack of
18510 ttype around type_hash_canon call.
18511
18512 * expr.c (placeholder_list): Move decl to file scope.
18513 (expand_expr): Don't force access to volatile just because its
18514 address is taken.
18515 If ignoring reference operations, just expand the operands.
18516 (expand_expr, case COMPONENT_REF): Propagate
18517 EXPAND_CONST_ADDRESS to recursive call when expanding inner.
18518 Refine test for using bitfield operations vs pointer punning.
18519 (expand_expr, case CONVERT_EXPR): If converting to
18520 BLKmode UNION_TYPE from BLKmode, just return inner object.
18521 Use proper mode in store_field call.
18522 Properly set sizes of object to store and total size in store_field
18523 call for convert to union.
18524 (expand_expr, case ARRAY_REF): If OP0 is in a register, put it in
18525 memory (like for ADDR_EXPR). Also, don't put constant in register if
18526 we'll want it in memory.
18527 (readonly_fields_p): New function.
18528 (expand_expr, case INDIRECT_REF): Call it if LHS.
18529 (expand_assignment): Handle a RESULT_DECL where
18530 DECL_RTL is a PARALLEL.
18531 (do_jump, case WITH_RECORD_EXPR): New case.
18532 (get_inner_reference): Always go inside a CONVERT_EXPR
18533 and NOP_EXPR if both modes are the same.
18534 (store_field): Use bitfield operations if size of bitsize is not same
18535 as size of RHS's type.
18536 Check for bitpos not a multiple of alignment in BLKmode case.
18537 Do block move in largest possible alignment.
18538 (store_constructor): Set BITSIZE to -1 for variable size and properly
18539 in case of array of BLKmode.
18540 (expand_expr_unaligned): New function.
18541 (do_compare_and_jump): Call it.
18542
18543 * mips/iris5.h (SWITCHES_NEED_SPACES): New macro.
18544 * collect2.c (main): Only allow -ofoo if SWITCHES_NEED_SPACES
18545 does not include 'o'.
18546
18547 * function.c (instantiate_virtual_regs_1, case SET): Handle case where
18548 both SET_DEST and SET_SRC reference a virtual register.
18549 (gen_mem_addressof): Copy RTX_UNCHANGING_P from new REG to old REG.
18550
18551 * integrate.c (expand_inline_function): Handle case of setting
18552 virtual stack vars register (from built in setjmp); when parameter
18553 lives in memory, expand virtual_{stack_vars,incoming_args}_rtx early.
18554 (subst_constant): Add new parm, MEMONLY.
18555 (expand_inline_function, integrate_parm_decls): Pass new parm.
18556 (integrate_decl_tree): Likewise.
18557 (copy_rtx_and_substitute, case MEM): Do copy RTX_UNCHANGING_P.
18558 (try_constants): Call subst_constants twice, with MEMONLY 0 and 1.
18559 (copy_rtx_and_substitute, case SET): Add explicit calls to
18560 copy_rtx_and_substitute for both sides.
18561
18562 * stmt.c (expand_asm_operands): Don't use TREE_STRING_LENGTH for
18563 constraints.
18564 (pushcase{,_range}): Convert to NOMINAL_TYPE after checking for
18565 within INDEX_TYPE, instead of before.
18566 (fixup_gotos): Use f->target_rtl, not the next insn,
18567 since latter may be from a later fixup.
18568 (expand_value_return): Correctly convert VAL when promoting function
18569 return; support RETURN_REG being a PARALLEL.
18570 (expand_return): When checking for result in regs and having
18571 cleanup, consider PARALLEL in DECL_RTL as being in regs.
18572
18573 1999-10-28 21:27 -0700 Zack Weinberg <zack@bitmover.com>
18574
18575 * cpplib.h (struct cpp_buffer: fname, nominal_fname,
18576 last_nominal_fname): Mark const.
18577 (struct include_hash: name, nshort, control_macro): Mark
18578 const.
18579 (struct macrodef: symnam): Mark const.
18580 (struct if_stack: fname): Mark const.
18581 (is_idchar, is_idstart, is_hor_space, trigraph_table): Delete.
18582 (IStable): New character-syntax array which encompasses all
18583 the old is_foo arrays.
18584 (is_idchar, is_numchar, is_idstart, is_numstart, is_hspace,
18585 is_space): New macros for interrogating IStable.
18586 (check_macro_name): Kill last argument. All callers changed.
18587
18588 * cppinit.c (initialize_char_syntax): Delete.
18589 (is_idchar, is_idstart, is_hor_space, is_space,
18590 trigraph_table): Delete.
18591 (IStable): New. Initialize with clever macros to avoid
18592 information duplication.
18593 (builtin_array): Table of builtins to get rid of explicit list
18594 in initialize_builtins.
18595 (initialize_builtins): Use builtins_array.
18596 (cpp_start_read): Call init_IStable, and set IStable['$'] if
18597 opts->dollars_in_ident.
18598
18599 * cppexp.c: Change all refs to is_xyz[] arrays to use new
18600 is_xyz() macros.
18601 (cpp_parse_expr): Avoid 'format string is not constant'
18602 warning. Use ISGRAPH to identify printable chars.
18603 * cppfiles.c: Change all refs to is_xyz[] arrays to use new
18604 is_xyz() macros.
18605 (read_and_prescan): Map trigraphs to chars with open-coded
18606 if-else-if-... sequence, not a lookup table.
18607 * cpphash.c: Change all refs to is_xyz[] arrays to use new
18608 is_xyz() macros.
18609 * cpplib.c: Change all refs to is_xyz[] arrays to use new
18610 is_xyz() macros. Kill SKIP_ALL_WHITE_SPACE (unused).
18611 (check_macro_name): Remove ability to report an invalid
18612 assertion name, which is never used.
18613 (do_line): Constify a couple of char *'s.
18614 * cppmain.c (main): Call cpp_cleanup before returning.
18615
18616 Thu Oct 28 21:16:35 1999 Mark Mitchell <mark@codesourcery.com>
18617
18618 * ggc.h (struct ggc_statistics): New type.
18619 (ggc_get_size): New function.
18620 (ggc_print_statistics): Likewise.
18621 * ggc-common.c (ggc_stats): New variable.
18622 (ggc_mark_rtx_children): Keep statistics.
18623 (ggc_mark_tree_children): Likewise.
18624 (ggc_print_statistics): New function.
18625 * ggc-page.c (struct globals): Add bytes_mapped field.
18626 (alloc_anon): Update it.
18627 (release_pages): Likewise.
18628 (ggc_get_size): New function.
18629 (ggc_page_print_statistics): New function.
18630 * ggc-simple.c (ggc_get_size): New function.
18631
18632 Fri Oct 29 06:32:44 1999 Geoffrey Keating <geoffk@cygnus.com>
18633
18634 * flow.c (propagate_block): When the last reference to a label
18635 before an ADDR_VEC is deleted because the reference is a dead
18636 store, delete the ADDR_VEC.
18637
18638 Thu Oct 28 12:28:50 1999 Richard Henderson <rth@cygnus.com>
18639
18640 * resource.c (find_free_register): Don't use the frame pointer
18641 if frame_pointer_needed.
18642
18643 Thu Oct 28 10:02:00 1999 Jim Wilson <wilson@cygnus.com>
18644
18645 * config/mips/mips.c (mips_va_arg): Delete gen_jump as emit_jump arg.
18646 (function_arg_pass_by_reference): Check for a NULL pointer in cum.
18647
18648 * config/i960/i960.c (i960_va_start): New locals base, num.
18649 Use INDIRECT_REF instead of ARRAY_REF on valist.
18650 (i960_va_arg): Use INDIRECT_REF instead of ARRAY_REF on valist.
18651
18652 Thu Oct 28 09:45:48 1999 Mark Mitchell <mark@codesourcery.com>
18653
18654 * gcse.c (delete_null_pointer_checks): Fix typo in previous change.
18655
18656 Thu Oct 28 03:37:50 1999 Peter Gerwinski <peter@gerwinski.de>
18657
18658 * tree.def (PLACEHOLDER_EXPR): Update comments.
18659
18660 Thu Oct 28 06:47:32 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18661
18662 * c-common.c (check_format_info): Avoid non-literal format string
18663 warnings when `first_arg_num' is zero.
18664
18665 Thu Oct 28 12:28:48 1999 Bernd Schmidt <bernds@cygnus.co.uk>
18666
18667 * rtl.texi: Delete explicit Prev, Up and Next entries in "@node"s.
18668
18669 Thu Oct 28 11:05:13 1999 Richard Earnshaw <rearnsha@arm.com>
18670
18671 * arm.md (casesi_insn): Add a clobber of the condition code
18672 register.
18673
18674 Mon Oct 18 21:16:06 1999 Fred Fish <fnf@be.com>
18675
18676 * tm.texi (CC1PLUS_SPEC): Make it clear in the docs that CC1_SPEC is
18677 used by both cc1 and cc1plus.
18678
18679 Thu Oct 28 10:00:48 1999 Nick Clifton <nickc@cygnus.com>
18680
18681 * config/arm/arm.c: Initialise arm_structure_size_boundary to
18682 DEFAULT_STRUCTURE_SIZE_BOUNDARY.
18683 * config/arm/arm.h (DEFAULT_STRUCTURE_SIZE_BOUNDARY): Define
18684 to the value 32 if it has not already been defined.
18685 * config/arm/netbsd.h (DEFAULT_STRUCTURE_SIZE_BOUNDARY):
18686 Override definition in arm.h with a value of 8.
18687
18688 Thu Oct 28 03:12:02 1999 David Starner <dstarner98@aasaa.ofe.org>
18689
18690 * c-pragma.c (push_alignment): Don't check the return value
18691 of xmalloc.
18692
18693 Thu Oct 28 03:08:38 1999 Matteo Frigo <athena@fftw.org>
18694
18695 * sparc.h (ADJUST_COST): Fix thinko.
18696
18697 Thu Oct 28 02:44:03 1999 Glen Nakamura <glen.nakamura@usa.net>
18698
18699 * cccp.c (rescan): Fixed obp pointer handling around call to
18700 check_expand subroutine.
18701
18702 Thu Oct 28 02:15:22 1999 Jeffrey A Law (law@cygnus.com)
18703
18704 * gcse.c (delete_null_pointer_checks): Only record non-null info
18705 for pseudos when examining stores.
18706
18707 * arm.md (adddi3, adddi_sesidi_di, adddi_sesidi_di): Add
18708 splitters for these patterns. Use "#" for output templates.
18709 (addsi3_carryin_shift): New pattern.
18710
18711 Thu Oct 28 10:20:02 1999 Geoffrey Keating <geoffk@cygnus.com>
18712
18713 * config/rs6000/rs6000.md (movsf): Don't convert a SUBREG
18714 of the function return register into a plain REG until
18715 after function inlining is done.
18716
18717 Wed Oct 27 15:21:46 1999 Richard Henderson <rth@cygnus.com>
18718
18719 * jump.c (jump_optimize_1): If we did cross-jumping, and
18720 the data will matter, rebuild the CFG.
18721 * reg-stack.c (reg_to_stack): Only (re)build the CFG if
18722 not optimizing. Don't run shorten_branches.
18723 * toplev.c (rest_of_compilation): Run shorten_branches after
18724 reg_to_stack.
18725
18726 Wed Oct 27 12:33:40 1999 Mark Mitchell <mark@codesourcery.com>
18727
18728 * rtl.h (note_stores): Add additional paramter.
18729 * rtlanal.c (reg_set_p_1): Take additional paramter.
18730 (reg_set_last_1): Likewise.
18731 (reg_set_p): Adjust call to note_stores.
18732 (reg_set_last): Likewise.
18733 (note_stores): Pass data parameter to worker function.
18734 * alias.c (record_set): Take additional parameter.
18735 (init_alias_analysis): Pass it.
18736 * caller-save.c (mark_set_regs): Take additional parameter.
18737 (save_call_clobbered_regs): Pass NULL to note_stores.
18738 * combine.c (set_nonzero_bits_and_sign_copies): Take additional
18739 parameter.
18740 (record_dead_and_set_regs_1): Likewise.
18741 (reg_dead_at_p_1): Likewise.
18742 (combine_instructions): Adjust calls to note_stores.
18743 (try_combine): Likewise.
18744 (record_dead_insn): Remove.
18745 (record_dead_and_set_regs): Adjust calls to note_stores.
18746 (reg_dead_at_p): Likewise.
18747 * cse.c (invalidate_skipped_set): Take additional parameter.
18748 (cse_check_loop_start): Likewise.
18749 (cse_check_loop_start_value): Remove.
18750 (cse_set_around_loop): Adjust calls to note_stores.
18751 * flow.c (notice_stack_pointer_modification): Take additional
18752 parameter. Remove duplicate declaration.
18753 (record_volatile_insns): Adjust calls to note_stores.
18754 * gcse.c (record_set_info): Take additional parameter.
18755 (record_last_set_info): Likewise.
18756 (invalidate_nonnull_info): Likewise.
18757 (record_set_insn): Remove.
18758 (compute_sets): Adjust calls to note_stores.
18759 (last_set_insn): Remove.
18760 (compute_hash_table): Adjust calls to note_stores.
18761 (insert_insn_end_bb): Likewise.
18762 (delete_null_pointer_checks): Likewise.
18763 * global.c (mark_reg_store): Take additional parameter.
18764 (mark_reg_clobber): Likewise.
18765 (reg_becomes_live): Likewise.
18766 (global_conflicts): Adjust calls to note_stores.
18767 (build_insn_chain): Likewise.
18768 * integrate.c (note_modified_parmregs): Take additional parameter.
18769 (mark_stores): Likewise. Make it static.
18770 (save_for_inline_nocopy): Adjust calls to note_stores.
18771 (try_constants): Likewise.
18772 * integrate.h (mark_stores): Remove declaration.
18773 * jump.c (mark_modified_reg): Take additional parameter.
18774 (thread_jumps): Adjust calls to note_stores.
18775 * local-alloc.c (validate_equiv_mem_from_store): Take additional
18776 parameter.
18777 (no_equiv): Likewise.
18778 (reg_is_set): Likewise.
18779 (validate_equiv_mem): Adjust calls to note_stores.
18780 (update_equiv_regs): Likewise.
18781 (block_alloc): Likewise.
18782 * loop.c (note_set_pseudo_multiple_uses_retval): Remove.
18783 (note_addr_stored): Take additional parameter.
18784 (note_set_pseudo_multiple_uses): Likewise.
18785 (record_initial): Likewise.
18786 (prescan_loop): Adjust calls to note_stores.
18787 (strength_reduce): Likewise.
18788 (check_dbra_loop): Likewise.
18789 * regmove.c (flags_set_1): Take additional paramter.
18790 (mark_flags_life_zones): Adjust calls to note_stores.
18791 * reload1.c (mark_not_eliminable): Take additional parameter.
18792 (forget_old_reloads_1): Likewise.
18793 (reload_cse_invalidate_rtx): Likewise.
18794 (reload_cse_check_clobber): Likewise.
18795 (reload_combine_note_store): Likewise.
18796 (move2add_note_store): Likewise.
18797 (reload): Adjust calls to note_stores.
18798 (reload_as_needed): Likewise.
18799 (emit_reload_insns): Likewise.
18800 (reload_cse_regs_1): Likewise.
18801 (reload_cse_record_set): Adjust calls to reload_cse_invalidate_rtx.
18802 (reload_combine): Adjust calls to note_stores.
18803 * resource.c (update_live_status): Take additional paramter.
18804 (mark_target_live_regs): Adjust calls to note_stores.
18805 * stupid.c (find_clobbered_regs): Take additional parameter.
18806 (stupid_life_analysis): Adjust calls to note_stores.
18807
18808 Wed Oct 27 19:26:12 1999 Nick Clifton <nickc@cygnus.com>
18809
18810 * config/arm/coff.h (STRUCTURE_SIZE_BOUNDARY): Delete
18811 definition.
18812
18813 * config/arm/elf.h (STRUCTURE_SIZE_BOUNDARY): Delete
18814 definition.
18815
18816 * config/arm/arm.h (STRUCTURE_SIZE_BOUNDARY): Define in terms
18817 of the variable arm_structure_size_boundary.
18818
18819 Wed Oct 27 02:05:58 1999 Mark P. Mitchell <mark@codesourcery.com>
18820
18821 * alias.c (init_alias_analysis): Allocate reg_known_value and
18822 reg_known_equiv_p on the heap. Likewise for new_reg_base_value
18823 and reg_seen.
18824 (end_alias_analysis): Free reg_known_value and reg_known_equiv_p.
18825 * cse.c (cse_main): Call end_alias_analysis.
18826 * haifa-sched.c (schedule_insns): Likewise.
18827 * local-alloc. (update_equiv_regs): Likewise.
18828 * reload1.c (reload_cse_regs): Likewise.
18829
18830 Wed Oct 27 01:49:17 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
18831
18832 * sparc/sparc.c (sparc_override_options): Clear MASK_FPU_SET.
18833 * sparc/sparc.h (TARGET_SWITCHES): Add "fpu" entry for reverse
18834 mapping from MASK_FPU.
18835
18836 Wed Oct 27 01:42:26 1999 Scott Christley <scottc@net-community.com>
18837
18838 * sparc.md (call): Don't bound structure return size to 0xfff.
18839
18840 Wed Oct 27 00:56:59 1999 Richard Henderson <rth@cygnus.com>
18841
18842 * resource.c (mark_target_live_regs): Check that the target
18843 insn wasn't created after compute_bb_for_insn.
18844
18845 Tue Oct 26 23:15:03 1999 Mark Mitchell <mark@codesourcery.com>
18846
18847 * ggc-page.c (poison_pages): Don't be overzealous.
18848
18849 Tue Oct 26 23:29:18 1999 Jeffrey A Law (law@cygnus.com)
18850
18851 * alias.c: Update comments for ADDRESS.
18852 (nonlocal_reference_p): Look inside the ADDRESS to determine if
18853 it is a local memory reference.
18854
18855 * c-typeck.c (build_function_call): Check that the built-in
18856 function is of class BUILT_IN_NORMAL before trying to recongize
18857 it as BUILT_IN_ABS.
18858 * calls.c (calls_function_1): Similarly for BUILT_IN_ALLOCA.
18859 * stmt.c (expand_end_cae): Similarly for BUILT_IN_CLASSIFY_TYPE.
18860
18861 Wed Oct 27 00:14:13 1999 Robert Lipe <robertlipe@usa.net>
18862
18863 * gcse.c (expr_reaches_here_p): Use xcalloc and explit free instead
18864 of alloca.
18865 (pre_gcse): Likewise.
18866 (hoist_expr_reaches_here_p): Likewise.
18867 (hoist_code): Likewise.
18868 (pre_expr_reaches_here_p): Replace alloca with xcalloc. Move core
18869 code to ...
18870 (pre_expr_reaches_here_p_work): ... here.
18871 (expr_reaches_here_p): Replace alloca with xcalloc. Move core
18872 code to ...
18873 (expr_reaches_here_p_work): ... here.
18874
18875 Tue Oct 26 20:42:45 1999 Richard Henderson <rth@cygnus.com>
18876
18877 * resource.c (find_basic_block): Delete.
18878 (mark_target_live_regs, incr_ticks_for_insn): Use BLOCK_NUM instead.
18879 (init_resource_info): Call compute_bb_for_insn.
18880
18881 Tue Oct 26 20:21:02 1999 Richard Henderson <rth@cygnus.com>
18882
18883 * flow.c (merge_blocks_move_predecessor_nojumps): Cope
18884 with already adjacent blocks, but no fallthru.
18885 (merge_blocks_move_successor_nojumps): Simplify.
18886 (debug_flow_info): New.
18887
18888 * toplev.c (rest_of_compilation): Open jump1 dump file before
18889 jump and close after, as opposed to just using dump_rtl.
18890
18891 Wed Oct 27 03:09:23 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
18892
18893 * reload.h (earlyclobber_operand_p): Declare.
18894 * reload.c (earlyclobber_operand_p): Don't declare. No longer static.
18895 * reload1.c (reload_reg_free_for_value_p): RELOAD_OTHER reloads with
18896 an earlyclobbered output conflict with RELOAD_INPUT reloads - handle
18897 case where the RELOAD_OTHER reload is new. Use earlyclobber_operand_p.
18898
18899 Tue Oct 26 18:23:38 1999 Jan Hubicka <hubicka@freesoft.cz>
18900 Richard Henderson <rth@cygnus.com>
18901
18902 * emit-rtl.c (emit_block_insn_before): New.
18903 (emit_block_insn_after): New.
18904 * basic-block.h: Declare them.
18905
18906 * bitmap.h: Protect from multiple inclusion.
18907
18908 * recog.c (scratch_operand): Handle VOIDmode correctly.
18909
18910 * rtl.h (JUMP_CROSS_JUMP_DEATH_MATTERS): New.
18911
18912 * builtins.c (expand_builtin_apply_args_1): Remove STACK_REGS hack.
18913 * function.c (assign_parms): Likewise.
18914 * global.c (global_conflicts): Clarify STACK_REGS commentary.
18915
18916 * reg-stack.c (max_uid): Remove.
18917 (blocks, block_begin, block_end, block_drops_in): Remove.
18918 (block_stack_in, block_out_reg_set, block_number): Remove.
18919 (struct block_info_def, BLOCK_INFO): New.
18920 (enum emit_where): New.
18921 (current_block): New.
18922 (BLOCK_NUM): Remove.
18923 (mark_regs_pat, record_label_references): Remove.
18924 (record_reg_life_pat, record_reg_life, find_blocks): Remove.
18925 (nan): New.
18926 (goto_block_pat, print_blocks, dump_stack_info): Remove.
18927 (reg_to_stack): Simplified test for existance of fp code. Use
18928 flow.c code. Call shorten_branches after cross-jump opt.
18929 (check_asm_stack_operands): Renamed from record_asm_reg_life.
18930 Return false if the asm doesn't use stack regs. Don't do life
18931 analysis on the asm.
18932 (emit_pop_insn): Replace function pointer arg `when' with
18933 enum `where'. Update all callers.
18934 (change_stack): Likewise. Update basic block end.
18935 (emit_swap_insn): Use current_block->head to limit reverse search
18936 for start of block. Use emit_block_insn_after.
18937 (subst_stack_regs_pat): Handle USE and CLOBBER patterns.
18938 (subst_asm_stack_regs): Use check_asm_stack_operands. Use direct
18939 structure assignment instead of bcopy.
18940 (print_stack): New.
18941 (convert_regs_entry, convert_regs_exit): New.
18942 (convert_regs_1, convert_regs_2): Split out from convert_regs.
18943 Work on basic blocks and the CFG.
18944 (convert_regs): Use them.
18945
18946 * i386.c (output_fix_trunc): Remove code for DImode input operand
18947 not at top-of-stack.
18948 * i386.c (fix_truncdfdi2, fix_truncsfdi2): Use scratch with
18949 appropriate mode.
18950 (fix_truncdi_1): Allow any mode scratch.
18951
18952 Tue Oct 26 13:30:35 1999 Richard Henderson <rth@cygnus.com>
18953
18954 * alpha.h (TARGET_MEM_FUNCTIONS): Define here.
18955 * linux.h, netbsd.h, vms.h: Not here.
18956
18957 1999-10-26 Gavin Romig-Koch <gavin@cygnus.com>
18958
18959 * config/mips/mips.h (ISA_HAS_64BIT_REGS,ISA_HAS_BRANCHLIKELY,
18960 ISA_HAS_FP4,ISA_HAS_CONDMOVE): New.
18961 (GENERATE_BRANCHLIKELY,HAVE_SQRT_P,
18962 CONDITIONAL_REGISTER_USEAGE): Use them.
18963 * config/mips/mips.c (mips_move_1word,mips_move_2words,
18964 gen_conditional_branch,override_options) : Use them.
18965 * config/mips/mips.md : Use them.
18966
18967 Tue Oct 26 13:09:23 1999 Richard Henderson <rth@cygnus.com>
18968
18969 * i386.md (zero_extendqihi2): Use SImode register name with andl.
18970
18971 Tue Oct 26 12:35:38 1999 Richard Henderson <rth@cygnus.com>
18972
18973 * integrate.c (function_cannot_inline_p): Don't allow inlining
18974 if setjmp is used.
18975
18976 Tue Oct 26 14:10:23 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18977
18978 * c-parse.in (cast_expr): Constify.
18979
18980 * cccp.c (special_symbol): Likewise.
18981
18982 * cse.c (hash_cse_reg_info, cse_reg_info_equal_p): Likewise.
18983
18984 * dwarf2out.c (base_type_die): Likewise.
18985
18986 * global.c (allocno_compare): Likewise.
18987
18988 * local-alloc.c (qty_compare_1, qty_sugg_compare_1): Likewise.
18989
18990 * regclass.c (fix_register): Likewise.
18991
18992 * rtl.h (fix_register): Likewise.
18993
18994 * stupid.c (stupid_reg_compare): Likewise.
18995
18996 * toplev.c (decode_f_option): Likewise.
18997
18998 * tree.c (build_complex_type): Likewise.
18999
19000 Tue Oct 26 18:35:25 1999 Richard Earnshaw <rearnsha@arm.com>
19001
19002 * output.h: Don't unnecessarily conditionalize prototypes on TREE_CODE.
19003
19004 Tue Oct 26 15:42:56 1999 Bernd Schmidt <bernds@cygnus.co.uk>
19005
19006 * reload.c (find_reloads): Compute mode and nregs fields of all
19007 reloads.
19008 * reload1.c (calculate_needs_all_insns): Simplify a bit.
19009 (calculate_needs): Use precomputed mode/nregs values.
19010 (allocate_reload_reg): Likewise.
19011 Break out two...
19012 (failed_reload, set_reload_reg): ... new functions.
19013 (choose_reload_regs_init): New function, mostly broken out from...
19014 (choose_reload_regs): ... here. Lose all the save_xxx nonsense.
19015 Also lose one #if 0 block.
19016
19017 Tue Oct 26 02:48:32 1999 Marc Espie <espie@cvs.openbsd.org>
19018
19019 * Makefile.in (AR_FOR_TARGET, RANLIB_FOR_TARGET): Fix target name
19020 substitution.
19021
19022 Tue Oct 26 01:27:32 1999 Mark Mitchell <mark@codesourcery.com>
19023
19024 * tree.h (BLOCK_TYPE_TAGS): Remove.
19025 (BLOCK_END_NOTE): Likewise.
19026 (BLOCK_LIVE_RANGE_FLAG): Likewise.
19027 (BLOCK_LIVE_RANGE_START): Likewise.
19028 (BLOCK_LIVE_RANGE_END): Likewise.
19029 (tree_block): Remove live_range_flag, live_range_var_flag, and
19030 type_tags. Remove end_note, live_range_start, and live_range_end.
19031 (remember_end_note): Remove prototype.
19032 * tree.c (build_block): Don't set BLOCK_TYPE_TAGS.
19033 * c-decl.c (poplevel): Don't set BLOCK_TYPE_TAGS or call
19034 remember_end_note.
19035 * ggc-common.c (ggc_mark_tree_children): Don't mark
19036 BLOCK_TYPE_TAGS or BLOCK_END_NOTE.
19037 * integrate.c (adjust_copied_decl_tree): Remove.
19038 * print-tree.c (print_node): Don't print BLOCK_TYPE_TAGS.
19039 * stmt.c (last_block_end_note): Remove.
19040 (init_stmt): Don't add a GC root for it.
19041 (expand_fixup): Don't set it.
19042 (remember_end_note): Remove.
19043 (expand_end_bindings): Don't set last_block_end_note.
19044
19045 Tue Oct 26 00:41:54 1999 Bernd Schmidt <bernds@cygnus.co.uk>
19046
19047 * reload1.c (reload_reg_free_for_value_p): Show
19048 RELOAD_FOR_OTHER_ADDRESS reloads can conflict with RELOAD_OTHER
19049 reloads.
19050
19051 Mon Oct 25 23:54:45 1999 Geoff Keating <geoffk@cygnus.com>
19052
19053 * expmed.c (extract_bit_field): Allow for the case of non-integer
19054 objects that are smaller than a word (like SFmode on a 64-bit
19055 machine).
19056
19057 * loop.c (basic_induction_var): A non-integer variable which is
19058 being set by a paradoxical subreg is probably not a biv.
19059
19060 1999-10-25 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
19061
19062 * prefix.c (translate_name) Check for empty prefix string.
19063
19064 Mon Oct 25 23:10:45 1999 Andreas Schwab <schwab@suse.de>
19065
19066 * Makefile.in (CPP_CROSS_NAME): New variable.
19067 (install-cpp): Use it instead of CPP_INSTALL_NAME for the cross
19068 xcpp.
19069 (uninstall-cpp): Use CPP_INSTALL_NAME and CPP_CROSS_NAME for the
19070 names of the files to be uninstalled.
19071
19072 Mon Oct 25 23:03:09 1999 Jeffrey A Law (law@cygnus.com)
19073
19074 * collect2.c (IS_DIR_SEPARATOR): Define.
19075 (prefix_from_string): Use IS_DIR_SEPARATOR and DIR_SEPARATOR.
19076
19077 * som.h (ASM_DECLARE_FUNCTION_NAME): Set PRIV_LEV for static
19078 functions too.
19079
19080 * haifa-sched.c (add_dependence): Update the true dependency
19081 cache the first time we add a true dependence to the LOG_LINKS chain.
19082
19083 Mon Oct 25 22:27:40 1999 Jim Kingdon <http://developer.redhat.com/>
19084
19085 * fold-const.c (fold): Fix comment.
19086
19087 Mon Oct 25 22:49:34 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19088
19089 * dbxout.c (lastfile, cwd, dbxout_type_method_1,
19090 dbxout_symbol_location, dbxout_symbol_name, dbxout_init,
19091 dbxout_start_new_source_file, dbxout_source_file,
19092 dbxout_source_line, dbxout_finish, dbxout_type_fields,
19093 dbxout_type_methods, dbxout_symbol, dbxout_prepare_symbol):
19094 Constify a char*.
19095 (dbxout_types, dbxout_args, dbxout_symbol): Delete prototypes.
19096 (dbxout_symbol): Mark parameter `local' with ATTRIBUTE_UNUSED.
19097 (dbxout_block): Initialize variable `blocknum'.
19098
19099 * dbxout.h (dbxout_init, dbxout_finish,
19100 dbxout_start_new_source_file, dbxout_source_file, dbxout_types,
19101 dbxout_args, dbxout_source_line): Constify a char*.
19102
19103 * dwarfout.c (dwarf_tag_name, dwarf_attr_name,
19104 dwarf_stack_op_name, dwarf_typemod_name, dwarf_fmt_byte_name,
19105 dwarf_fund_type_name, name_attribute, stmt_list_attribute,
19106 low_pc_attribute, high_pc_attribute, body_begin_attribute,
19107 body_end_attribute, comp_dir_attribute, sf_names_attribute,
19108 src_info_attribute, mac_info_attribute, producer_attribute,
19109 lookup_filename, generate_macinfo_entry, fundamental_type_code,
19110 dwarfout_line, dwarfout_start_new_source_file, dwarfout_define,
19111 dwarfout_undef): Constify a char*.
19112 (add_incomplete_type, retry_incomplete_types): Add prototypes.
19113
19114 * dwarfout.h (dwarfout_define, dwarfout_undef,
19115 dwarfout_start_new_source_file, dwarfout_line): Constify a char*.
19116
19117 1999-10-25 Gavin Romig-Koch <gavin@cygnus.com>
19118
19119 * config/mips/mips.h (MIPS_ISA_DEFAULT): Insure it's defined.
19120 (MULTILIB_ISA_DEFAULT): New.
19121 (MULTILIB_DEFAULTS): Use it.
19122 * config/mips/mips.c (): Remove the now unnecessary definition
19123 of MIPS_ISA_DEFAULT.
19124 * config/mips/elf64.h (MULTILIB_DEFAULTS): Remove the now
19125 unnecessary definition.
19126
19127 Mon Oct 25 22:08:35 1999 Richard Earnshaw (rearnsha@arm.com)
19128
19129 * arm.md (pic_load_addr): Add constraints to operand 1.
19130
19131 1999-10-25 Bruce Korb <autogen@linuxbox.com>
19132
19133 * fixinc/genfixes: Provide a means for specifying -D options to
19134 AutoGen
19135
19136 Mon Oct 25 00:42:35 1999 Jeffrey A Law (law@cygnus.com)
19137
19138 * arm.c (arm_override_options): Correct initialization of
19139 arm_fast_multiply, arm_arch4, arm_arch5, arm_ld_sched,
19140 arm_is_strong, and arm_is_6_or_7.
19141
19142 * loop.c (note_set_pseudo_multiple_uses_retval): New variable.
19143 (note_set_pseudo_multiple_uses): New function.
19144 (check_dbra_loop): Use not_set_pseudo_multiple_uses to determine
19145 if a pseudo set in the loop exit is used elsewhere.
19146
19147 Sun Oct 24 20:52:40 1999 Mark Mitchell <mark@codesourcery.com>
19148
19149 * i386.md (mulsi3): Tweak to work with SCO OSR5 COFF assembler.
19150
19151 Sun Oct 24 21:02:46 1999 Richard Henderson <rth@cygnus.com>
19152
19153 * i386.md (*lea_0): Collapse addsi_0, addsi_lea_[123] into
19154 a single load-address pattern.
19155
19156 Sun Oct 24 19:33:24 1999 Mark P. Mitchell <mark@codesourcery.com>
19157
19158 * haifa-sched.c (schedule_insns): Don't assign LUIDs differently
19159 depending on whether or not line-number notes are present.
19160
19161 Sun Oct 24 20:29:59 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19162
19163 * cccp.c (progname, file_buf, default_include, include_file,
19164 macrodef, definition, hashval, wchar_type, user_label_prefix,
19165 directive, out_fname, if_stack, safe_write, index0, get_lintcmd,
19166 expand_to_temp_buffer, is_system_include, base_name,
19167 absolute_filename, read_name_map, open_include_file,
19168 record_control_macro, check_precompiled, check_preconditions,
19169 pcfinclude, pass_thru_directive, create_definition,
19170 check_macro_name, comp_def_part, collect_expansion,
19171 check_assertion, read_token_list, assertion_install,
19172 assertion_lookup, eval_if_expression, conditional_skip,
19173 validate_else, skip_quoted_string, quote_string, macarg1,
19174 error_from_errno, install, lookup, hashf, dump_defn_1,
19175 perror_with_name, pfatal_with_name, main, trigraph_pcp,
19176 check_white_space, rescan, handle_directive, monthnames,
19177 special_symbol, do_include, remap_include_file, write_output,
19178 arglist, do_assert, do_unassert, do_line, do_error, do_once,
19179 do_ident, do_sccs, do_xifdef, skip_if_group,
19180 output_line_directive, macroexpand, macarg, change_newlines,
19181 initialize_builtins, make_definition): Constify a char*.
19182
19183 * pcp.h (stringdef): Likewise.
19184
19185 Sun Oct 24 13:29:28 1999 Richard Henderson <rth@cygnus.com>
19186
19187 * unroll.c (copy_loop_body): Examine SET_DEST of single_set
19188 not of pattern.
19189
19190 Sun Oct 24 13:14:20 1999 Graham <grahams@rcp.co.uk>
19191 Richard Henderson <rth@cygnus.com>
19192
19193 * alias.c: Include ggc.h.
19194 (reg_base_value, new_reg_base_value, reg_base_value_size): Make static.
19195 (record_set): Verify enough room in reg_base_value.
19196 (init_alias_analysis): Allocate reg_base_value with xcalloc.
19197 Register it as a GC root.
19198 (end_alias_analysis): Free reg_base_value. Remove it as a GC root.
19199 * Makefile.in (alias.o): Depend on ggc.h.
19200
19201 * unroll.c (unroll_loop): Verify the insn before a barrier
19202 is a JUMP_INSN before checking JUMP_LABEL.
19203
19204 Sun Oct 24 15:46:44 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19205
19206 * mips/bsd-5.h (ASM_OUTPUT_ASCII): Constify a char*.
19207 * mips/iris4.h (ASM_OUTPUT_ASCII): Likewise.
19208 * mips/mips-5.h (ASM_OUTPUT_ASCII): Likewise.
19209 * mips/mips.h (ASM_OUTPUT_ASCII): Likewise.
19210 * mips/svr3-5.h (ASM_OUTPUT_ASCII): Likewise.
19211 * mips/svr4-5.h (ASM_OUTPUT_ASCII): Likewise.
19212
19213 Sun Oct 24 15:35:43 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19214
19215 * output.h (ctors_section, dtors_section, bss_section): Prototype.
19216
19217 * alpha/alpha-interix.h (text_section): Delete prototype.
19218 * alpha/elf.h (text_section): Likewise.
19219 * arm/linux-elf.h (text_section): Likewise.
19220 * arm/linux-telf.h (text_section): Likewise.
19221 * c4x/c4x.h (text_section): Likewise.
19222 * dsp16xx/dsp16xx.h (bss_section): Likewise.
19223 * elfos.h (text_section): Likewise.
19224 * i386/aix386ng.h (text_section): Likewise.
19225 * i386/i386-interix.h (text_section): Likewise.
19226 * i386/sco5.h (text_section): Likewise.
19227 * i386/svr3gas.h (text_section): Likewise.
19228 * nextstep.h (text_section): Likewise.
19229 * psos.h (text_section): Likewise.
19230 * ptx4.h (text_section): Likewise.
19231 * svr3.h (text_section): Likewise.
19232 * svr4.h (text_section, ctors_section, dtors_section): Likewise.
19233
19234 Sun Oct 24 15:20:59 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19235
19236 * final.c (peephole): Delete prototype.
19237
19238 * gcse.c (process_insert_insn, pre_edge_insert): Add prototypes.
19239 (pre_insert_copies): Remove unused variable `bb'.
19240
19241 * genrecog.c (debug_decision_0, debug_decision_list, main): Add
19242 prototypes.
19243
19244 * output.h (peephole): Add prototype.
19245
19246 Sun Oct 24 11:35:30 1999 Mark P. Mitchell <mark@codesourcery.com>
19247
19248 * config/mips/iris6.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Define to
19249 -O0.
19250
19251 Sat Oct 23 21:13:00 1999 Mark Mitchell <mark@codesourcery.com>
19252
19253 * integrate.c (integrate_decl_tree): Tweak setting of DECL_CONTEXT
19254 for inlined declarations.
19255
19256 Fri Oct 22 18:05:43 1999 Jeffrey A Law (law@cygnus.com)
19257
19258 * arm.c (logical_binary_operator): New fucntion.
19259 * arm.h (logical_binary_operator): Declare it.
19260 (PREDICATE_CODES): Handle logical_binary_operator.
19261 * arm.md (anddi3, anddi_zesidi_di, anddi_sesdi_di): Use "#" for
19262 output constraints. Add appropriate splitters.
19263 (anddi_notdi_di, anddi_notzesidi_di, anddi_notsesidi_di): Likewise.
19264 (iordi3, iordi_zesidi_di, iordi_sesidi_di): Likewise.
19265 (xordi3, xordi_zesidi_di, xordi_sesidi_di): Likewise.
19266
19267 Fri Oct 22 23:46:50 1999 Bernd Schmidt <bernds@cygnus.co.uk>
19268
19269 * genoutput.c (struct operand_data): New elt eliminable.
19270 (output_operand_data): Write it.
19271 (scan_operands): Set it for MATCH_OPERAND, clear for other matchers.
19272 (compare_operands): Take it into account.
19273 * recog.h (struct insn_operand_data): New elt eliminable.
19274 * reload1.c (check_eliminable_occurrences, elimination_effects): New
19275 functions.
19276 (old_asm_operands_vec, new_asm_operands_vec): Delete.
19277 (eliminate_regs): Move code that detects changes to elimination
19278 target regs into new function elimination_effects.
19279 Delete one #if 0 block.
19280 Abort for USE, CLOBBER, ASM_OPERANDS and SET.
19281 (eliminate_regs_in_insn): Return immediately for USEs, CLOBBERs,
19282 ADDR_VECs, ADDR_DIFF_VECs and ASM_INPUTs.
19283 Only call eliminate_regs for real operands of the insn, not for parts
19284 of its structure or parts matched by things like match_operator.
19285 Use elimination_effects and check_eliminable_occurrences. Use
19286 copy_insn to duplicate the pattern when not in the final pass.
19287
19288 Fri Oct 22 09:03:44 1999 Mark Mitchell <mark@codesourcery.com>
19289
19290 * i386.md: Add missing `y' modifiers to uses of fst, fstp, fld,
19291 and fld.
19292
19293 1999-10-22 Bruce Korb <autogen@linuxbox.com>
19294
19295 * fixinc/README: document the "mach" machine matching test
19296 * fixinc/fixfixes.c: Implement the #else/#endif label fix
19297 * fixinc/fixtests.c: Implement the #else/#endif label test
19298 * fixinc/inclhack.def: utilize these tests and fixes
19299 * fixinc/inclhack.sh: regen
19300 * fixinc/fixincl.x: regen
19301 * fixinc/fixincl.sh: regen
19302
19303 Thu Oct 21 20:37:19 1999 Jeffrey A Law (law@cygnus.com)
19304
19305 * Makefile.in (cse.o): Depend on hashtab.h, not splay-tree.h. Also
19306 depend on ggc.h.
19307
19308 Thu Oct 21 20:30:19 1999 Matthias Klose <doko@debian.org>
19309
19310 * gcc.1: Document exit codes.
19311
19312 Thu Oct 21 12:49:05 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19313
19314 * calls.c: Include tm_p.h later, so everything we need is defined.
19315 * expr.c: Likewise.
19316 * function.c: Likewise.
19317
19318 * except.c: Include tm_p.h.
19319
19320 * sparc.c: Likewise.
19321 (dwarf2out_cfi_label): Don't prototype.
19322 (check_return_regs, epilogue_renumber,
19323 ultra_cmove_results_ready_p, ultra_fpmode_conflict_exists,
19324 ultra_find_type, ultra_build_types_avail, ultra_flush_pipeline,
19325 ultra_rescan_pipeline_state, set_extends, ultra_code_from_mask,
19326 ultra_schedule_insn): Add static prototype.
19327 (data_segment_operand, text_segment_operand): Call itself with the
19328 proper number of arguments.
19329 (sparc_flat_save_restore, sparc_v8plus_shift): Constify a char*.
19330
19331 * sparc.h: Move all declarations to sparc-protos.h.
19332 (SELECT_RTX_SECTION): Pass a missing MODE argument to
19333 symbolic_operand.
19334
19335 * sparc/sysv4.h (SELECT_RTX_SECTION): Likewise.
19336
19337 * config/svr4.h (text_section, ctors_section, dtors_section): Add
19338 Prototypes.
19339 (ASM_OUTPUT_SECTION_NAME, UNIQUE_SECTION,
19340 ASM_FINISH_DECLARE_OBJECT, ASM_OUTPUT_LIMITED_STRING,
19341 ASM_OUTPUT_ASCII): Constify a char*.
19342
19343 * sparc-protos.h: New file for sparc prototypes.
19344
19345 Thu Oct 21 12:23:40 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19346
19347 * function.c (record_insns, contains): Always declare and define.
19348 (record_insns): Mark with ATTRIBUTE_UNUSED.
19349
19350 Thu Oct 21 13:03:49 1999 Jonathan Larmour <jlarmour@cygnus.co.uk>
19351
19352 * config/arm/telf.h (ASM_OUTPUT_SECTION_NAME): Add %nobits option
19353 to .section when outputting a .bss section to deal with multiple
19354 .bss input sections (as happens with -fdata-sections)
19355 Also output %progbits, not @progbits so the assembler doesn't treat as
19356 a comment.
19357 * config/arm/unknown-elf.h (ASM_OUTPUT_SECTION_NAME): Likewise
19358
19359 * config/arm/lib1funcs.asm (_call_via_rX): Allow compilation of
19360 thumb parts even when building with non-thumb CPUs, by forcing
19361 thumb mode.
19362
19363 Wed Oct 20 22:57:58 1999 Jeffrey A Law (law@cygnus.com)
19364
19365 * sparc.md (movsf_const_intreg): If splitting, length must be > 1.
19366 (movdf_const_intreg_sp64): Similarly.
19367
19368 * local-alloc.c (update_equiv_regs): Check the correct insn
19369 for pre-existing REG_EQUIV notes.
19370
19371 Wed Oct 20 20:41:46 1999 Mark Mitchell <mark@codesourcery.com>
19372
19373 * cse.c (cse_end_of_basic_block): Don't return the end of a basic
19374 block reached by a branch if we're not going to actually process
19375 this block.
19376
19377 Wed Oct 20 15:18:42 1999 Jim Wilson <wilson@cygnus.com>
19378
19379 * integrate.c (integrate_decl_tree): Set DECL_CONTEXT to 0 if this is
19380 a local extern function declaration.
19381
19382 Wed Oct 20 13:56:01 1999 Richard Henderson <rth@cygnus.com>
19383
19384 * i386.c (ix86_expand_prologue): Properly wrap USE around
19385 reg for CALL_INSN_FUNCTION_USAGE.
19386
19387 Thu Oct 14 18:51:37 1999 Andrew Haley <aph@cygnus.com>
19388
19389 * config/mips/mips.md (movdf_internal1a): Allow floating-point
19390 move between GP_REGs.
19391
19392 Wed Oct 20 15:36:11 1999 Andrew Haley <aph@cygnus.com>
19393
19394 * config/arm/thumb.h (GO_IF_LEGITIMATE_ADDRESS): Take account of
19395 the mode size when finding out if an offset is legal.
19396
19397 Wed Oct 20 06:26:58 1999 Richard Henderson <rth@cygnus.com>
19398
19399 * basic-block.h (PROP_*): Move constants from ...
19400 * flow.c: ... here.
19401 (compute_bb_for_insn): Free the array before reallocating.
19402 (update_life_info): New arg PROP_FLAGS; pass on to propagate_block.
19403 (allocate_reg_life_data): Reset all reg variables collected by
19404 propagate_block.
19405 (get_block_head_tail): Don't convert from bb to block.
19406 (get_bb_head_tail): New. Update all callers of get_block_head_tail.
19407 (find_insn_reg_weight): Take block not bb.
19408 (schedule_block): Don't set block num for moved insns.
19409 (schedule_region): Don't update_life_info or find_insn_reg_weight.
19410 (schedule_insns): Do it here instead.
19411 * combine.c (combine_instructions): Invoke compute_bb_for_insn
19412 before update_life_info.
19413 * recog.c (split_all_insns, peephole2_optimize): Update for
19414 new arg to update_life_info.
19415 * rtlanal.c (remove_note): Cope with NULL note.
19416 * toplev.c (rest_of_compilation): Don't invoke recompute_reg_usage
19417 if we did sched1.
19418
19419 Wed Oct 20 10:46:41 1999 Richard Earnshaw (rearnsha@arm.com)
19420
19421 * jump.c (jump_optimize_1): More accurately detect casesi insns.
19422
19423 * flow.c (merge_blocks_move_predecessor_nojumps): Re-order the basic
19424 block records so that merge_blocks_nomove will clean up correctly.
19425 (split_edge): Handle casesi insns.
19426
19427 * gcc-page.c: Try MAP_ANON if we don't have MAP_ANONYMOUS.
19428
19429 Tue Oct 19 23:43:50 1999 Jeffrey A Law (law@cygnus.com)
19430
19431 * pa.md (call, call_value): Do not emit a blockage after restoring
19432 the PIC register.
19433
19434 Tue Oct 19 17:22:39 1999 Mark Mitchell <mark@codesourcery.com>
19435
19436 * c-typeck.c (c_expand_asm_operands): Fix typo.
19437
19438 Tue Oct 19 18:42:58 1999 Bernd Schmidt <bernds@cygnus.co.uk>
19439
19440 * arm.c (fpu_rhs_operand): Verify modes.
19441 (fpu_add_operand): Likewise.
19442 (di_operand): Likewise.
19443 (soft_df_operand): Likewise.
19444
19445 Tue Oct 19 15:26:11 1999 Richard Earnshaw (rearnsha@arm.com)
19446
19447 * arm.c (arm_return_in_memory): APCS rules state that the elements
19448 of a structure returned in a register must be 'integer-like'.
19449
19450 1999-10-19 Bruce Korb <autogen@linuxbox.com>
19451
19452 * fixinc/Makefile.in: Change the generation rules to run `genfixes'
19453 in the source tree when the generated targets are out of date
19454 * fixinc/genfixes: Alter it to run individual fixes for make.
19455 * fixinc/README: rewrite
19456 * fixinc/inclhack.def: moved initial comments to README
19457
19458 Tue Oct 19 14:01:34 1999 Nick Clifton <nickc@cygnus.com>
19459
19460 * toplev.c (main): Do not generate an error message if an
19461 unrecognised command line switch is recognisable by another
19462 language. If extra_warnings are enabled, then generate a
19463 warning message instead.
19464
19465 Tue Oct 19 11:41:12 1999 Mumit Khan <khan@xraylith.wisc.edu>
19466
19467 * c-pragma.h (PRAGMA_INSERT_ATTRIBUTES): Delete macro.
19468 (insert_pack_attributes): Delete prototype.
19469
19470 * c-pragma.c (default_alignment): New static variable.
19471 (push_alignment): Initialize to current effective alignment.
19472 (pop_alignment): Use to set new alignment.
19473 (insert_pack_attributes): Delete function.
19474 (handle_pragma_token): Set default_alignment as well each time
19475 a #pragma pack(<n>) is encountered.
19476
19477 Tue Oct 19 02:03:00 1999 Jeffrey A Law (law@cygnus.com)
19478
19479 * reg-stack.c (stack_result): Aggregates are not returned in
19480 stack registers.
19481
19482 Tue Oct 19 01:26:48 1999 Alasdair Baird <alasdair@wildcat.demon.co.uk>
19483
19484 * fold-const.c (fold): Fix thinko in x+(-0) -> x transformation.
19485
19486 Mon Oct 18 15:19:41 1999 Richard Henderson <rth@cygnus.com>
19487
19488 * basic-block.h (set_block_num): Declare.
19489 * flow.c (update_life_info): Don't call compute_bb_for_insn
19490 or free_basic_block_vars.
19491 * haifa-sched.c (remove_dependence): Conditionalize on HAVE_cc0.
19492 (insn_orig_block): Remove.
19493 (INSN_BLOCK): Remove. Update all callers to use BLOCK_NUM.
19494 (schedule_block): Keep BLOCK_NUM up-to-date.
19495 (schedule_insns): Use compute_bb_for_insn.
19496 * recog.c (split_all_insns): Likewise.
19497 (peephole2_optimize): Likewise.
19498
19499 Mon Oct 18 18:50:51 1999 Andreas Schwab <schwab@suse.de>
19500
19501 * config/m68k/m68k.h (INITIAL_FRAME_POINTER_OFFSET): Add one word
19502 if the pic register is used.
19503
19504 Mon Oct 18 02:38:46 1999 Bernd Schmidt <bernds@cygnus.co.uk>
19505
19506 * c-decl.c (pushdecl): Use TYPE_CONTEXT rather than TREE_PERMANENT.
19507 (finish_decl): Duplicate test for TREE_ASM_WRITTEN in else branch of
19508 if that tests TREE_PERMANENT.
19509
19510 Mon Oct 18 01:41:35 1999 Jeffrey A Law (law@cygnus.com)
19511
19512 * cse.c (invalidate_for_call): Do not remove memory references from
19513 the table here. It's handled elsewhere.
19514
19515 * haifa-sched.c (add_dependence): Protect references to the
19516 true dependency cache with #ifdef INSN_SCHEDULING.
19517 (remove_dependence): Similarly.
19518
19519 * mn10200.md (outline_epilogue_jump): Embed a (return) to indicate
19520 to the cfg code that this is a return instruction.
19521 * mn10300.md (return_internal): Similarly.
19522
19523 * combine.c (get_last_value): If the last set of a register
19524 is after subst_low_cuid, then we can not use it to determine
19525 the register's last value.
19526
19527 Sun Oct 17 11:02:52 1999 Mark Mitchell <mark@codesourcery.com>
19528
19529 * Makefile.in: Back out previous change.
19530
19531 Sun Oct 17 15:22:50 1999 Jeffrey A Law (law@cygnus.com)
19532
19533 * pa.c (move_operand): Reject (lo_sum (reg) (unspec ...)).
19534
19535 * haifa-sched.c (add_dependence): Only check/update the cache
19536 if it exists.
19537 (remove_dependence): Likewise.
19538 (schedule_insns): Only create the true_dependency_cache if the
19539 average number of instructions in a basic block is very large.
19540
19541 Sun Oct 17 11:02:52 1999 Mark Mitchell <mark@codesourcery.com>
19542
19543 * Makefile.in (ggc-common.o): Depend on genrtl.h.
19544 (ggc-simple.o): Likewise.
19545 (ggc-page.o): Likewise.
19546
19547 Sun Oct 17 02:09:50 1999 Andrew MacLeod <amacleod@cygnus.com>
19548
19549 * basic-block.h (pre_edge_lcm, pre_edge_rev_lcm, compute_available):
19550 Prototype for exported functions.
19551 (pre_lcm, pre_rev_lcm): Remove prototypes.
19552 * gcse.c (compute_ae_kill): Add ae_gen and ae_kill as parameters.
19553 (compute_available): Move to lcm.c, and change parameter order.
19554 (one_classic_gcse_pass): Call compute_ae_kill with parameters.
19555 (pre_insert, s_preds, s_succs, num_preds, num_succs): Delete.
19556 (gcse_main): No longer call compute_preds_succs. Rebuild the
19557 set table after reach pre pass.
19558 (pre_insert_map, pre_delete_map, edge_list): New.
19559 (alloc_pre_mem): Allocate edge vectors.
19560 (free_pre_mem): Delete edge vectors.
19561 (compute_pre_data): Call new edge based lcm routines.
19562 (process_insert_insn): New function.
19563 (insert_insn_end_bb): Use it.
19564 (pre_edge_insert): New function.
19565 (pre_insert_copy_insn): Formatting fixes. Update BLOCK_END as
19566 needed.
19567 (pre_insert_copies): Revamp using new edge based lcm outputs.
19568 (pre_delete): Likewise.
19569 (one_pre_gcse_pass): Insert & remove fake edges to the exit
19570 block.
19571 (compute_code_hoist_vbeinout): New new edge based routines.
19572 * lcm.c: Remove all the old LCM functions. Replace with new ones
19573 that work with the new cfg datastructures and work with edges
19574 instead of blocks.
19575
19576 Sun Oct 17 00:44:17 1999 Bernd Schmidt <bernds@cygnus.co.uk>
19577
19578 * reload.h (struct reload): Add new fields "mode" and "nregs".
19579 * reload1.c: Change all occurrences of reload_mode and reload_nregs
19580 to reference the "mode" and "nregs" field within struct reload.
19581
19582 Sat Oct 16 21:50:28 1999 Jeffrey A Law (law@cygnus.com)
19583
19584 * haifa-sched.c (true_dependency_cache): New.
19585 (add_dependence): Use the true dependency cache to avoid expensive
19586 walks down the LOG_LINKS dependency list. Add entries to the
19587 cache as necessary.
19588 (remove_dependence): Remove entries from the true dependency cache
19589 as needed.
19590 (schedule_insns): Allocate and initialize and free the true
19591 dependency cache.
19592
19593 * haifa-sched.c (schedule_insns): Do not remove inter-block
19594 dependencies anymore.
19595
19596 Sat Oct 16 11:19:52 1999 Richard Henderson <rth@cygnus.com>
19597
19598 * i386/t-cygwin (winnt.o): Depend on RTL_H and TREE_H.
19599 * i386/t-winnt: Likewise.
19600
19601 Sat Oct 16 11:11:54 1999 Richard Henderson <rth@cygnus.com>
19602
19603 * ggc-page.c (init_ggc): Work around SunOS unaligned mmap bug.
19604
19605 1999-10-16 Manfred Hollstein <mhollstein@cygnus.com>
19606
19607 * Makefile.in (LANGUAGES): Omit "proto".
19608 (clean): Remove stale comment about removing unprotoize.c.
19609
19610 Sat Oct 16 11:29:14 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19611
19612 * protoize.c (safe_read, safe_write): Avoid the gcc extension of
19613 using arithmetic on void pointers.
19614
19615 Sat Oct 16 02:48:22 1999 Jeffrey A Law (law@cygnus.com)
19616
19617 * haifa-sched.c (compute_block_forward_dependencies): Only check
19618 for notes, deleted insns and duplicates if ENABLE_CHECKING is defined.
19619
19620 Sat Oct 16 00:07:01 1999 Richard Henderson <rth@cygnus.com>
19621
19622 * gcse.c (hash_expr_1): Add in MEM_ALIAS_SET.
19623 (expr_equiv_p): Reject memories with different alias sets.
19624
19625 Fri Oct 15 15:17:29 1999 Greg McGary <gkm@gnu.org>
19626
19627 * flags.h (flag_bounds_check, flag_bounded_pointers): New extern decls.
19628 * toplev.c (flag_bounds_check, flag_bounded_pointers): New flags.
19629 (f_options): Add "bounded-pointers" and "bounds-check" entries.
19630 * c-lang.c (lang_init_options): Set flag_bounds_check as "unspecified".
19631 (lang_init): Set default for flag_bounds_check if still "unspecified".
19632
19633 Sat Oct 16 13:42:29 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19634
19635 * config/c4x/c4x.md (HF mode patterns): Add missing modes.
19636
19637 Sat Oct 16 13:37:46 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19638
19639 * config/c4x/c4x.md (movstrqi_small): Utilise parallel move
19640 instructions.
19641
19642 Sat Oct 16 13:26:47 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19643
19644 * config/c4x/c4x.md (*db_noclobber,
19645 *decrement_and_branch_until_zero_noclobber): New patterns and
19646 associated splitters.
19647
19648 Sat Oct 16 13:13:15 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19649
19650 * config/c4x/c4x.md (parallel instruction patterns): Rework
19651 constraints to keep reload happy.
19652
19653 Sat Oct 16 13:03:16 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19654
19655 * config/c4x/c4x.md (*absqi2_noclobber, *negqi2_noclobber,
19656 *one_cmplqi2_noclobber, *subqi3_noclobber, *andqi3_255_noclobber,
19657 *andqi3_65535_noclobber, *andnqi3_noclobber, *xorqi3_noclobber):
19658 Add new patterns and associated post-reload splitters.
19659
19660 Sat Oct 16 12:42:12 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19661
19662 * config/c4x/c4x.c (c4x_emit_libcall): Use ggc_alloc_string.
19663
19664 Sat Oct 16 12:34:44 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19665
19666 * config/c4x/c4x.c (c4x_rptb_insert): Emit rpts_top pattern
19667 if appropriate.
19668 * config/c4x/c4x.md (rpts_top): New pattern and splitter.
19669
19670 Sat Oct 16 12:26:30 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19671
19672 * config/c4x/c4x.c (src_operand): Check SYMBOL_REF and LABEL_REF
19673 memory mode.
19674
19675 Fri Oct 15 17:02:09 1999 Jeffrey A Law (law@cygnus.com)
19676
19677 * pa.c (move_operand): Rely on memory_address_p to determine the
19678 validity of non-indexed memory addresses.
19679 * pa.h (GO_IF_LEGITIMATE_ADDRESS): Allow LO_SUM with a symbolic
19680 operand in DFmode and SFmode when generating PA2.0 code.
19681
19682 Fri Oct 15 14:25:19 1999 Richard Henderson <rth@cygnus.com>
19683
19684 * print-rtl.c (print_rtx): Limit last 'u' change to LABEL_REF.
19685
19686 Fri Oct 15 13:48:45 1999 Richard Henderson <rth@cygnus.com>
19687
19688 * mips.c (function_prologue): Fix argument types.
19689 * mips.md (casesi): Use emit_jump_insn for casesi_internal.
19690 (casesi_internal): Write to the scratch register.
19691
19692 1999-10-15 11:16 -0700 Zack Weinberg <zack@bitmover.com>
19693
19694 * cppexp.c (cpp_parse_escape): Make static. Change second arg
19695 to U_CHAR **.
19696 (parse_charconst): Delete unnecessary cast when calling
19697 cpp_parse_escape.
19698 (cpplib.h): Kill prototype of cpp_parse_escape.
19699
19700 Fri Oct 15 11:02:46 1999 Richard Henderson <rth@cygnus.com>
19701
19702 Based on patch from Michael Gschwind <mikeg@watson.ibm.com>:
19703 * unroll.c (unroll_loop): Cast return value of alloca.
19704 * i370/i370.c: Include function.h and toplev.h.
19705 (i370_label_scan): Remove c++ commented abort.
19706 * i370/i370.h (HANDLE_PRAGMA): Takes three arguments.
19707 (ASM_OUTPUT_LABELREF): Fix TOUPPER/else broken 16 Sept.
19708 * i370/xm-i370.h (HOST_BITS_PER_LONGLONG): Define.
19709 * i370/xm-mvs.h, i370/xm-oe.h: Likewise.
19710
19711 Fri Oct 15 03:01:01 1999 Loren Rittle <ljrittle@acm.org>
19712
19713 * config/t-freebsd: Do not override USER_H.
19714 * ginclude/stddef.h: Generalize check for _MACHINE_ANSI_H_.
19715
19716 Fri Oct 15 02:37:28 1999 Alastair J. Houghton <ajh8@doc.ic.ac.uk>
19717 Mumit Khan <khan@xraylith.wisc.edu>
19718
19719 * c-parse.in (component_decl): Support anonymous struct/union.
19720 (%expect): Update.
19721 * c-parse.y: Regenerate.
19722 * c-parse.c: Likewise.
19723 * objc/objc-parse.y: Likewise.
19724 * objc/objc-parse.c: Likewise.
19725 * c-decl.c (finish_struct): Don't sort the fields.
19726 (field_decl_cmp): Delete unused function.
19727
19728 Fri Oct 15 01:20:52 1999 Richard Henderson <rth@cygnus.com>
19729
19730 * sparc.md (movsf_const_intreg): Revert last constraint change.
19731 (movdf_const_intreg_sp32): Likewise.
19732
19733 Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
19734
19735 * cse.c: Include hashtab.h instead of splay-tree.h
19736 (struct cse_reg_info): No longer use variant union. Add new
19737 field "regno". All references changed to avoid union.
19738 (cse_reg_info_used_list, cse_reg_info_used_list_end): New variables.
19739 (free_cse_reg_info): Remove.
19740 (hash_cse_reg_info, cse_reg_info_equal_p): New functions.
19741 (get_cse_reg_info): Revamp to use expandable hash tables instead
19742 of splay trees. Initialize new fields in cse_reg_info structure.
19743 (new_basic_block): Similarly.
19744
19745 Thu Oct 14 23:51:56 1999 Richard Henderson <rth@cygnus.com>
19746
19747 * genrecog.c (message_with_line): Prototype.
19748 (validate_pattern): Pass along the set for the dest, not a flag.
19749 Fix non-lvalue message. Don't warn for VOIDmode SET_DEST of CALL.
19750 Check for PC/CC0 as sources.
19751 (nodes_identical): Check for children position match before
19752 allowing the combination.
19753
19754 * rtl.c (read_rtx): Track line number across \\\n.
19755
19756 Thu Oct 14 23:50:25 1999 Richard Henderson <rth@cygnus.com>
19757
19758 * mips.h (SPECIAL_MODE_PREDICATES): New.
19759 * mips.md (*) Use nonimmediate_operand not general_operand for outputs.
19760 (movdi+1, movsi+1): Add output reload constraint.
19761 (casesi_internal): Likewise. Fix commentary.
19762 (return_internal): Use pmode_register_operand.
19763
19764 Thu Oct 14 23:19:34 1999 Richard Henderson <rth@cygnus.com>
19765
19766 * 1750a.md (movstrqi): Add missing output reload constraint.
19767 (call_value): Likewise.
19768 * a29k.md (cpxxx patterns): Add missing match_operator mode.
19769 (jmpfdec): Add missing inout reload constraint.
19770 * elxsi.md (addsi patterns): Add missing output reload constraint.
19771 (move from sp): Use @ alternates.
19772 (call_value): No constraint on output.
19773 * fr30.md (movsi_pop): Add missing output reload constraint.
19774 (movsf_constant_store): Likewise.
19775 (splits): Remove constraints.
19776 (subsi3): Add missing mode.
19777 * i370.md (cmpstrsi+1): Add missing output reload constraint.
19778 (call_value): Likewise.
19779 * i960.md (cmpinc/cmpdec patterns): Add inout reload constraints.
19780 * m32r.h (PREDICATE_CODES): Add seth_add3_operand.
19781 * m32r.md (movsicc_internal): Add output reload constraint.
19782 (movstrsi_internal): Add inout reload constraints.
19783 * m88k.h (reg_names): Don't declare.
19784 (SPECIAL_MODE_PREDICATES): New.
19785 * m88k.md (*): Use register_operand not reg_or_0_operand
19786 on destinations.
19787 * mn10200.h (PREDICATE_CODES): New.
19788 * ns32k.md (ffs pattern): Add output reload constraint.
19789 * pdp11.md (sob pattern): Add inout reload constraint.
19790 * sh.md (splits): Remove constraints.
19791 (indirect_jump_scratch, fpu_switch): Add output reload constraint.
19792 * v850.md (pattern_is_ok_for_epilogue): Likewise.
19793 * vax.md (jgequ pattern): Add inout reload constraint.
19794
19795 Fri Oct 15 00:05:00 1999 Jeffrey A Law (law@cygnus.com)
19796
19797 * configure.in (djgpp): Revert previous patch.
19798 * configure: Rebuit.
19799 * config/i386/djgpp.h: Revert previous patch.
19800
19801 Fri Oct 15 00:00:24 1999 Loren J. Rittle <ljrittle@acm.org>
19802
19803 * fixinc/inclhack.def: Restore patch lost during last merge of
19804 "no_bogosity" branch.
19805 * fixinc/inclhack.sh, fixinc/fixincl.x: Rebuilt.
19806
19807 Thu Oct 14 23:57:56 1999 Gavin Romig-Koch <gavin@cygnus.com>
19808
19809 * fixincludes: Add a HPUX 11 fix for inttypes.h.
19810 * fixinc/inclhack.def: Same.
19811 * fixinc/inclhack.sh, fixinc/fixincl.sh, fixinc/fixincl.x: Regenerate.
19812
19813 Thu Oct 14 22:51:55 1999 Richard Henderson <rth@cygnus.com>
19814
19815 * alpha.h (GO_IF_LEGITIMATE_SIMPLE_ADDRESS): Accept ADDRESSOF
19816 as the base of a PLUS.
19817
19818 Fri Oct 15 18:36:07 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19819
19820 * config/c4x/c4x.md: Define mode for remaining unspec operators.
19821 * config/c4x/c4x.c (dst_operand): Use nonimmediate_operand.
19822
19823 Thu Oct 14 22:14:23 1999 Richard Henderson <rth@cygnus.com>
19824
19825 * pa.md (post_stw+1): Use pmode_register_operand.
19826 (dcacheflush, icacheflush): Likewise.
19827
19828 * i386.md (movstricthi_1): Allow r/r.
19829
19830 Thu Oct 14 19:44:08 1999 Jan Hubicka <hubicka@freesoft.cz>
19831
19832 * fold-const.c (fold): Convert (or (not arg0) (not arg1))
19833 to (not (and (arg0) (arg1))). Similary for and.
19834
19835 * fold-const.c (fold): Move bit_rotate code to the EXPR_PLUS case,
19836 fallthrough to associate code.
19837 Convert XOR to OR in code like (a&c1)^(a&c2) where c1 and c2 don't have
19838 bits in common.
19839
19840 * combine.c (simplify_logical): Convert XOR to IOR if operands have
19841 no bits in common; remove XOR to ROTATE conversion.
19842
19843 Fri Oct 15 17:40:11 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19844
19845 * config/c4x/c4x.h (c4x_va_start, c4x_va_arg): Declare.
19846
19847 Fri Oct 15 17:27:17 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19848
19849 * config/c4x/c4x.c (dst_operand): New.
19850 (PREDICATE_CODES): Update.
19851 * config/c4x/c4x.h (dst_operand): Declare it.
19852 * config/c4x/c4x.md: Define mode for each unspec usage.
19853 (move patterns): Use dst_operand predicate instead of src_operand.
19854 (movqi_update, movqf_update): Delete.
19855
19856 Thu Oct 14 18:48:54 1999 Richard Henderson <rth@cygnus.com>
19857
19858 * recog.c (pmode_register_operand): New.
19859 * recog.h: Declare it.
19860 * genrecog.c (pred_codes): Likewise.
19861 (special_mode_pred_table): Likewise.
19862 (validate_pattern): Don't warn no mode for address_operand.
19863
19864 * print-rtl.c (print_rtx) [LABEL_REF]: Only do full subexpression
19865 if the operand is not insn-like.
19866
19867 Thu Oct 14 19:38:42 1999 Jeffrey A Law (law@cygnus.com)
19868 Sylvian Pion <Sylvain.Pion@sophia.inria.fr>
19869
19870 * fold-const.c (fold): Handle more simplifications allowed by IEEE.
19871
19872 Thu Oct 14 17:30:14 1999 Richard Henderson <rth@cygnus.com>
19873
19874 * sparc.md (*): Use {nonimmediate,register}_operand as appropriate
19875 instead of general_operand in a SET_DEST. Use const_double_operand
19876 instead of an explicit test against CONST_DOUBLE.
19877 (movsf_const_lo): Add missing register mode.
19878 (goto_handler_and_restore): Add auxiliary test for Pmode.
19879 (flush): Adjust to use address_operand.
19880 (return_sf_no_fpu): Add missing output constraint.
19881
19882 Thu Oct 14 17:21:26 1999 Richard Henderson <rth@cygnus.com>
19883
19884 * rs6000.md (call_value_indirect_aix32): Use wildcard match_operand
19885 for call return value.
19886 (call_value_indirect_aix64, call_value_indirect_nt): Likewise.
19887
19888 Thu Oct 14 13:54:25 1999 Jason Merrill <jason@yorick.cygnus.com>
19889
19890 * toplev.c (main): Only warn about options for other languages.
19891 * collect2.c (main): Pass -w to sub-gcc.
19892
19893 Thu Oct 14 16:27:50 1999 Richard Henderson <rth@cygnus.com>
19894
19895 * flow.c (propagate_block): Add call-clobbered registers to
19896 significant too.
19897
19898 * flow.c (propagate_block): Use free_EXPR_LIST_list instead of
19899 zapping mem_set_list.
19900 (invalidate_mems_from_autoinc): Use free_EXPR_LIST_node.
19901 (mark_set_1, mark_used_regs): Likewise.
19902
19903 Thu Oct 14 10:51:49 1999 Richard Henderson <rth@cygnus.com>
19904
19905 * m68k.md (zero_extendsidi2): Add missing output reload constraint.
19906
19907 Wed Oct 13 00:09:18 1999 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
19908
19909 * invoke.texi: Label -Wbad-function-cast, -Wmissing-prototypes,
19910 -Wnested-externs, -Wstrict-prototypes, and -Wtraditional as C only
19911 options. Also add a new item "C-only Warning Options" to the
19912 option summary.
19913
19914 1999-10-14 Gavin Romig-Koch <gavin@cygnus.com>
19915
19916 * libgcc2.c (__do_global_dtors): Protect __deregister_frame_info
19917 from multiple calls.
19918
19919 Thu Oct 14 04:54:54 1999 Richard Henderson <rth@cygnus.com>
19920
19921 * i386.md (call value patterns): Move to the end of the file.
19922 (prologue_set_got, prologue_get_pc): Use register_operand for op 0.
19923
19924 1999-10-14 Mark Elbrecht <snowball3@bigfoot.com>
19925
19926 * configure.in (djgpp configuration): Define extra_objects..
19927 * configure: Rebuilt.
19928 * config/i386/djgpp.h (CTORS_SECTION_ASM_OP): Define.
19929 (DTORS_SECTION_ASM_OP): Define.
19930 (INIT_SECTION_ASM_OP): Define.
19931 (FINI_SECTION_ASM_OP): Define.
19932 (DATA_SECTION_ASM_OP): Define.
19933 (TEXT_SECTION_ASM_OP): Define.
19934 (EH_FRAME_SECTION_ASM_OP): Define.
19935 (LINK_COMMAND_SPEC): Remove -Tdjgpp.djl.
19936 (STARTFILE_SPEC): Add crtbegin.o.
19937 (ENDFILE_SPEC): Define and add crtend.o. Move argument -Tdjgpp.djl
19938 to here from LINK_COMMAND_SPEC.
19939 (DO_GLOBAL_CTORS_BODY): Define.
19940 (CRTSTUFF_USE_FINI_SECTION): Define
19941 (HAS_INIT_SECTION): Delete.
19942
19943 Thu Oct 14 05:08:14 1999 Andreas Schwab <schwab@suse.de>
19944
19945 * Makefile.in (all.cross): Depend on xcpp$(exeext).
19946
19947 Thu Oct 14 04:00:40 1999 Richard Henderson <rth@cygnus.com>
19948
19949 * pa.h (PREDICATE_CODES): New.
19950
19951 * genrecog.c (validate_pattern): Condense the destination
19952 non-lvalue message.
19953
19954 Thu Oct 14 03:23:08 1999 Richard Henderson <rth@cygnus.com>
19955
19956 * alpha.md (call-1): Supply missing mode for operator.
19957 (*): Add missing output reload constraints. Remove constraints
19958 from define_splits.
19959
19960 * i386.h (SPECIAL_MODE_PREDICATES): New.
19961 * i386.md (movstricthi_1): Use nonimmediate_operand for op 0.
19962 (movqi_1, movdi_1, movdi_2, some splits): Likewise.
19963 (addsi_lea_3): Add missing mode for op 3.
19964 (prologue_set_got, prologue_get_pc): Add missing modes.
19965 (*) Add missing output reload constraints.
19966
19967 Thu Oct 14 03:59:57 1999 Stephane Carrez <stcarrez@worldnet.fr>
19968
19969 * stor-layout.c (layout_union): Use HOST_WIDE_INT for const_size;
19970 check for member bit-size overflow and use var_size if it occurs.
19971 (layout_record): Use bitsize_int() to define the type size in bits.
19972 Likewise for computation and assignment to DECL_FIELD_BITPOS.
19973 (layout_decl): Likewise when assigning to DECL_SIZE.
19974
19975 Thu Oct 14 02:57:05 1999 Richard Henderson <rth@cygnus.com>
19976
19977 * genrecog.c (validate_pattern): Typo last change. Verify
19978 that output operands have output reloads.
19979
19980 Thu Oct 14 01:49:54 1999 Richard Henderson <rth@cygnus.com>
19981
19982 * genrecog.c (special_mode_pred_table): New.
19983 (NUM_SPECIAL_MODE_PREDS): New.
19984 (find_operand): New.
19985 (validate_pattern): New argument `insn'. Warn for assignment to
19986 any predicate accepting non-lvalues. Conditionaly warn for
19987 match_operand without a mode. Try much harder to match source
19988 and destination modes on a set.
19989 * tm.texi (SPECIAL_MODE_PREDICATES): Document.
19990
19991 Thu Oct 14 02:54:13 1999 Jeffrey A Law (law@cygnus.com)
19992
19993 * fold-const.c (fold): Detect rotates built from BIT_XOR_EXPRs.
19994
19995 Thu Oct 14 02:18:19 1999 Marc Espie <espie@cvs.openbsd.org>
19996
19997 * combine.c (simplify_logical): Recognize xor pattern that encodes
19998 rotation.
19999
20000 Wed Oct 13 23:23:45 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
20001
20002 * rs6000.c (expand_block_move): Use INTVAL, not XINT to access
20003 alignment.
20004
20005 Wed Oct 13 21:47:18 1999 Richard Henderson <rth@cygnus.com>
20006
20007 * ggc-page.c (MAP_FAILED): Provide default.
20008
20009 Wed Oct 13 21:41:59 1999 Richard Henderson <rth@cygnus.com>
20010
20011 * sparc.c (symbolic_operand): Verify mode; don't accept CONST_DOUBLE.
20012 * sparc.h (PREDICATE_CODES): Update.
20013
20014 Wed Oct 13 21:18:17 1999 Richard Henderson <rth@cygnus.com>
20015
20016 * alpha.c (some_ni_operand): New.
20017 * alpha-protos.h: Declare it.
20018 * alpha.h (PREDICATE_CODES): Update.
20019 * alpha.md (sXaddq reload insns): Use some_ni_operand
20020 for SET_DEST instead of some_operand.
20021
20022 Wed Oct 13 21:04:45 1999 Richard Henderson <rth@cygnus.com>
20023 Jim Wilson <wilson@cygnus.com>
20024
20025 * genrecog.c (maybe_both_true_2): Don't compare modes of
20026 two DT_pred tests.
20027 (process_tree): Elide peephole2_insns. Invoke simplify_tests
20028 after find_afterward.
20029 (debug_decision_1): Dump next and afterward codes.
20030
20031 Wed Oct 13 20:35:16 1999 Richard Henderson <rth@cygnus.com>
20032
20033 * rtl.c (dump_and_abort): Remove.
20034 (fatal_with_file_and_line): New.
20035 (fatal_expected_char): New.
20036 (read_rtx_lineno, read_rtx_filename): New.
20037 (read_skip_spaces): Track line number.
20038 (read_name): Use fatal_with_file_and_line.
20039 (read_rtx): Use fatal_expected_char. Track line number.
20040 * rtl.h (read_rtx_filename, read_rtx_lineno): Declare.
20041
20042 * print-rtl.c (print_rtx): Don't special case LABEL_REF argument
20043 if it isn't a CODE_LABEL.
20044
20045 * genattr.c (main): Set read_rtx_filename.
20046 * genattrtab.c (main): Likewise.
20047 * gencodes.c (main): Likewise.
20048 * genconfig.c (main): Likewise.
20049 * genemit.c (main): Likewise.
20050 * genextract.c (main): Likewise.
20051 * genflags.c (main): Likewise.
20052 * genopinit.c (main): Likewise.
20053 * genoutput.c (main): Likewise.
20054 * genpeep.c (main): Likewise.
20055
20056 * genrecog.c (decision_test.u.insn): Add `lineno'.
20057 (pattern_lineno, error_count): New variables.
20058 (message_with_line): New.
20059 (add_to_sequence): Break out checking code to ...
20060 (validate_pattern): ... here. Detect SET_DEST matching CONST_INT.
20061 (merge_insn): Use message_with_line.
20062 (make_insn_sequence): Use validate_pattern. Record insn lineno.
20063 (main): Set read_rtx_filename, pattern_lineno. Exit early on error.
20064
20065 Wed Oct 13 22:01:35 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
20066
20067 * expr.c (store_constructor): Clear union if constructor is empty.
20068
20069 Wed Oct 13 15:19:04 1999 Jim Wilson <wilson@cygnus.com>
20070
20071 * config/rs6000/sysv4.h (CC1_SPEC): Fix errors from Jan 19 change.
20072 Add !endian checks. Change %{...} to %(...).
20073
20074 Wed Oct 13 13:30:34 1999 Richard Henderson <rth@cygnus.com>
20075
20076 * i386.md (*addsi3_cc): Renamed from addcsi3.
20077 (*addsi3_carry): Renamed from addxsi3.
20078 (*subsi3_cc): Renamed from subcsi3.
20079 (*subsi3_carry): Renamed from subxsi3.
20080 (*xorqi_cc_1): Renamed from xorcqi_1.
20081 (xorqi_cc_ext_1): Renamed from xorcqi_ext_1.
20082 * i386.c (ix86_expand_fp_compare): Update for xorqi_cc_ext_1.
20083
20084 Wed Oct 13 13:10:46 1999 Richard Henderson <rth@cygnus.com>
20085
20086 * Makefile.in (ggc-common.o): Depend on RTL_H not RTL_BASE_H.
20087 (ggc-simple.o, ggc-page.o, ggc-none.o, ggc-callbacks.o): Likewise.
20088
20089 1999-10-13 Brendan Kehoe <brendan@cygnus.com>
20090
20091 * regmove.c (optimize_reg_copy_3): Make sure P is non-nil as we
20092 climb up the chain of insns.
20093
20094 Wed Oct 13 10:20:58 1999 Richard Henderson <rth@cygnus.com>
20095
20096 * genrecog.c (write_subroutine): Careful for null trees.
20097 (process_tree): Don't elide empty functions.
20098
20099 Wed Oct 13 10:07:54 1999 Richard Henderson <rth@cygnus.com>
20100
20101 * Makefile.in (genrtl.o): Depend on ggc.h.
20102 * configure.in (valloc): Probe for it.
20103 (with-gc): Use ggc-page if valloc present.
20104 * ggc-common.c (ggc_mark_rtx_children): Use ggc_mark_if_gcable.
20105 (ggc_mark_rtvec_children): New from corpse of ggc_mark_rtvec.
20106 (ggc_alloc_string): Moved from ggc-page.c.
20107 * ggc-none.c (ggc_alloc_obj): New.
20108 (ggc_alloc_rtx, ggc_alloc_rtvec): Remove.
20109 * ggc-page.c (sys/mman.h): Only include if HAVE_MMAP.
20110 (struct globals): Likewise for dev_zero_fd.
20111 (init_ggc): Likewise for it's initialization.
20112 (ggc_allocated_p): Move careful dereference from ...
20113 (ggc_lookup_page_table): ... here. Delete.
20114 (lookup_page_table_entry): Don't use ggc_lookup_page_table.
20115 (alloc_anon): Use valloc if no mmap.
20116 (release_pages): Use free if using valloc.
20117 (ggc_alloc_obj): Renamed from alloc_obj.
20118 (ggc_set_mark): Renamed from mark_obj.
20119 (ggc_mark_if_gcable): Renamed from ggc_mark_string_if_gcable.
20120 (ggc_alloc_rtx, ggc_alloc_rtvec): Delete.
20121 (ggc_alloc_tree, ggc_alloc_string, ggc_alloc): Delete.
20122 (ggc_set_mark_rtx, ggc_set_mark_rtvec): Delete.
20123 (ggc_set_mark_tree, ggc_mark_string, ggc_mark): Delete.
20124 (ggc_collect): Use fp printing instead of our own rounding.
20125 * ggc-simple.c (IS_MARKED, IGNORE_MARK): Delete.
20126 (GGC_STRING_MAGIC, GGC_STRING_MAGIC_MARK): Delete.
20127 (GGC_ANY_MAGIC, GGC_ANY_MAGIC_MARK): Delete.
20128 (struct ggc_rtx, struct ggc_rtvec, struct ggc_tree): Delete.
20129 (struct ggc_string, struct ggc_any): Delete.
20130 (offsetof): Provide default definition.
20131 (GGC_BALANCE, GGC_ALWAYS_COLLECT, GGC_ALWAYS_VERIFY): New.
20132 (PTR_KEY): New.
20133 (struct ggc_mem): New, from corpse of ggc_any.
20134 (struct ggc_status): Delete.
20135 (ggc_chain, ggc_allocated_strings, ggc_strings_used): Delete.
20136 (n_rtxs_collected, n_vecs_collected, n_trees_collected): Delete.
20137 (n_strings_collected, n_anys_collected): Delete.
20138 (ggc_alloc_rtx, ggc_alloc_rtvec, ggc_alloc_tree): Delete.
20139 (ggc_alloc_string, ggc_alloc): Delete.
20140 (ggc_free_rtx, ggc_free_rtvec, ggc_free_tree): Delete.
20141 (ggc_free_string, ggc_free_any): Delete.
20142 (ggc_set_mark_rtx, ggc_set_mark_rtvec, ggc_set_mark_tree): Delete.
20143 (ggc_compare_addresses, ggc_mark_string): Delete.
20144 (ggc_mark_string_if_gcable, ggc_mark): Delete.
20145 (search_data): Delete.
20146 (struct globals): New.
20147 (GGC_MIN_EXPAND_FOR_GC, GGC_MIN_LAST_ALLOCATED): New.
20148 (tree_insert, tree_lookup): New.
20149 (ggc_alloc_obj, ggc_set_mark, ggc_mark_if_gcable): New.
20150 (clear_marks, sweep_objs): New.
20151 (ggc_collect): Gut. Use clear_marks, sweep_objs.
20152 (init_ggc): Set allocated_last_gc.
20153 (ggc_push_context): Gut. Use G.context.
20154 (ggc_pop_context): Likewise.
20155 (ggc_pop_context_1): New.
20156 (debug_ggc_tree): New.
20157 (debug_ggc_balance, tally_leaves): New.
20158 * ggc.h (ggc_mark_rtvec, ggc_mark_string, ggc_mark): Remove decl.
20159 (ggc_mark_string_if_gcable): Remove decl.
20160 (ggc_mark_rtx, ggc_mark_tree): Use ggc_set_mark.
20161 (ggc_mark_rtvec_children): New.
20162 (ggc_mark_rtvec, ggc_mark_string, ggc_mark): New.
20163 (ggc_mark_if_gcable): New decl.
20164 (ggc_alloc_rtx, ggc_alloc_rtvec): Remove decl.
20165 (ggc_alloc_tree, ggc_alloc): Likewise.
20166 (ggc_set_mark_rtx, ggc_set_mark_rtvec, ggc_set_mark_tree): Likewise.
20167 (ggc_alloc_obj): New decl.
20168 (ggc_alloc_rtx, ggc_alloc_rtvec): New macros.
20169 (ggc_alloc_tree, ggc_alloc): Likewise.
20170 (ggc_set_mark): New decl.
20171 * rtl.h (struct rtx_def): Remove gc_mark.
20172 (struct rtvec_def): Likewise.
20173 * tree.h (struct tree_common): Likewise.
20174
20175 Wed Oct 13 01:44:29 1999 Carol LePage <carolo@hal.com>
20176
20177 * configure.in (sparc-hal-solaris2*): Fix xm_file, xm_defines,
20178 float_format and thread_file definitions.
20179 * configure: Rebuilt.
20180
20181 Wed Oct 13 09:25:03 1999 Niels Möller <nisse@lysator.liu.se>
20182
20183 * extend.texi (Function Names): Document types of function names.
20184
20185 Wed Oct 13 00:45:04 1999 Bernd Schmidt <bernds@cygnus.co.uk>
20186
20187 * reload1.c (reload_reg_free_for_value_p): RELOAD_OTHER reloads with
20188 an earlyclobbered output conflict with RELOAD_INPUT reloads.
20189
20190 Tue Oct 12 23:28:28 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
20191
20192 * sh.h (BOOL_TYPE_SIZE): Don't use INT_TYPE_SIZE / CHAR_TYPE_SIZE.
20193
20194 Tue Oct 12 23:19:32 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
20195
20196 * sh.h (REGISTER_MOVE_COST): Change PR_REG to PR_REGS.
20197
20198 Tue Oct 12 17:09:38 1999 David Edelsohn <edelsohn@gnu.org>
20199
20200 * collect2.c (main): Do prelimnary link on AIX if rflag.
20201
20202 Tue Oct 12 09:45:19 1999 Jonathan Larmour <jlarmour@cygnus.co.uk>
20203
20204 * config/rs6000/eabi-ctors.c (__do_global_ctors): Run through
20205 __CTOR_LIST__ in opposite order, which is the correct order for sorted
20206 constructors.
20207 (__do_global_dtors): similarly for __DTOR_LIST__.
20208
20209 Fri Oct 8 19:46:03 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
20210 Diego Novillo <dnovillo@cygnus.com>
20211
20212 * config/sh/sh.h (REGISTER_MOVE_COST): Handle moves from T_REGS to
20213 FPUL_REGS.
20214
20215 Tue Oct 12 07:38:41 1999 Bruce Korb <autogen@linuxbox.com>
20216
20217 * fixincl/*: Merged "no_bogosity" branch
20218 * fixincl/fixlib.h: protect against doubly defining t_bool
20219 * fixincl/server.h: protect against doubly defining t_bool
20220
20221 Mon Oct 11 20:18:41 1999 Jim Wilson <wilson@cygnus.com>
20222
20223 * genoutput.c: Include toplev.h.
20224
20225 Mon Oct 11 18:56:14 1999 Jim Wilson <wilson@cygnus.com>
20226
20227 * config/sparc/liteelf.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP):
20228 Undef.
20229 * configure.in (sparclite-*-elf, sparc86x-*-elf): Don't use libgloss.h.
20230 * configure: Regenerate.
20231
20232 Mon Oct 11 16:07:49 1999 Richard Henderson <rth@cygnus.com>
20233
20234 * gcse.c (delete_null_pointer_checks): Returns void.
20235
20236 Mon Oct 11 20:31:51 1999 Bernd Schmidt <bernds@cygnus.co.uk>
20237
20238 * rtl.c (copy_rtx): Don't use accessor macros to copy fields.
20239 * emit-rtl.c (copy_insn_1): Likewise.
20240
20241 Mon Oct 11 13:29:06 1999 Geoffrey Keating <geoffk@cygnus.com>
20242
20243 * config/mips/mips.c (mips_build_va_list): Correct
20244 TREE_CHAIN setting when hard-float.
20245 (mips_va_start): Use corrected setting.
20246 (mips_va_arg): Likewise. Also pass a tree to build of
20247 POSTINCREMENT_EXPR rather than a naked 'int'.
20248
20249 Sun Oct 10 18:27:27 1999 Mark Mitchell <mark@codesourcery.com>
20250
20251 * ggc.h (ggc_push_context): Fix comment.
20252 (ggc_pop_context): Likewise.
20253 (mark_string_if_gcable): Likewise.
20254 * ggc-common.c (ggc_mark_rtx_children): Use
20255 ggc_mark_string_if_gcable.
20256 * ggc-page.c (ggc_lookup_page_table): New function.
20257 (ggc_allocated_p): Likewise.
20258 (mark_obj): Fix formatting.
20259 (ggc_mark_string_if_gcable): New function.
20260 * ggc-simple.c (ggc_allocated_strings): New variable.
20261 (ggc_strings_used): Likewise.
20262 (ggc_compare_addresses): New function.
20263 (ggc_pop_context): Pop the `any' memory too.
20264 (ggc_mark_string_if_gcable): New function.
20265 (ggc_collect): Initialize and tear down ggc_allocated_strings.
20266
20267 Sun Oct 10 20:05:21 1999 David Edelsohn <edelsohn@gnu.org>
20268
20269 * rs6000.md (movstrsi_?reg): Use preferred rD/rS = r5 form.
20270 (scc patterns): Disable most SImode variants if TARGET_POWERPC64.
20271 * rs6000.c (expand_block_move): Match movstrsi_?reg register
20272 changes.
20273
20274 Sun Oct 10 16:37:01 1999 Richard Henderson <rth@cygnus.com>
20275
20276 * haifa-sched.c (sched_reg_n_calls_crossed): Delete.
20277 (sched_reg_live_length, sched_reg_basic_block): Delete.
20278 (current_block_num, bb_live_regs, old_live_regs): Delete.
20279 (dead_notes, struct sometimes): Delete.
20280 (sched_note_set, birthing_insn_p): Delete.
20281 (adjust_priority): Gut useless reg lifetime code.
20282 (create_reg_dead_note, attach_deaths): Delete.
20283 (attach_deaths_insn, new_sometimes_live): Delete.
20284 (finish_sometimes_live): Delete.
20285 (find_pre_sched_live, find_post_sched_live): Delete.
20286 (update_reg_usage): Delete.
20287 (find_insn_reg_weight): New, from corpse of find_pre_sched_live.
20288 (schedule_insns): Delete reg lifetime code.
20289 (sched_analyze): Use REG_SAVE_NOTE to stuff NOTE_INSN notes away.
20290 (unlink_other_notes): Adjust REG_NOTE commentary.
20291 (reemit_notes): Use REG_SAVE_NOTE.
20292 (schedule_block): Likewise.
20293 (schedule_region): Allocate bitmap of blocks in region. Use
20294 count_or_remove_death_notes. Use update_life_info.
20295
20296 * rtl.h (REG_SAVE_NOTE): New.
20297 * rtl.c (reg_note_name): Update.
20298
20299 Sun Oct 10 16:14:16 1999 Richard Henderson <rth@cygnus.com>
20300
20301 * combine.c (refresh_blocks, need_refresh): New.
20302 (combine_instructions): Allocate refresh_blocks. Invoke
20303 update_life_info if needed.
20304 (distribute_notes): Mark refresh_blocks instead of installing
20305 USE insns.
20306 * flow.c (update_life_info): Remove notes if GLOBAL_RM_NOTES.
20307 * basic_block.h (enum update_life_extent): Add GLOBAL_RM_NOTES.
20308
20309 * Makefile.in (recog.o): Depend on basic-block.h.
20310
20311 Sun Oct 10 12:03:21 1999 Richard Henderson <rth@cygnus.com>
20312
20313 * genrecog.c (add_to_sequence): Thinko last change: delete
20314 shadowing allow_const_int variable.
20315
20316 Sun Oct 10 08:40:00 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20317
20318 * cppinit.c: Use HAVE_GCC_VERSION instead of explicitly testing
20319 __GNUC__ and __GNUC_MINOR__.
20320
20321 * gansidecl.h: Likewise.
20322
20323 * rtl.c: Likewise.
20324
20325 * rtl.h: Likewise.
20326
20327 * toplev.h: Likewise.
20328
20329 * tree.c: Likewise.
20330
20331 * tree.h: Likewise.
20332
20333 * varray.c: Likewise.
20334
20335 * varray.h: Likewise.
20336
20337 Sun Oct 10 13:28:48 1999 Bernd Schmidt <bernds@cygnus.co.uk>
20338
20339 * loop.c (find_and_verify_loops): When looking for a BARRIER, don't
20340 use one before a jump table.
20341
20342 * rtl.def (ADDRESS): Change documentation to match reality.
20343 * md.texi: Don't document it.
20344 * gmicro.md (load address pattern): Use 'p' constraint, delete use
20345 of ADDRESS rtx.
20346
20347 * emit-rtl.c (copy_insn_1): Make format_ptr a const char *.
20348
20349 Sun Oct 10 02:41:41 1999 Richard Henderson <rth@cygnus.com>
20350
20351 * genrecog.c (add_to_sequence): Move allow_const_int test outside
20352 known predicate block; default allow_const_int true.
20353 (debug_decision_list): New.
20354
20355 Sun Oct 10 00:43:08 1999 Richard Henderson <rth@cygnus.com>
20356
20357 * i386.h (CC1_SPEC): Typo -- use cc1_cpu.
20358
20359 Sat Oct 9 23:26:55 1999 Jeffrey A Law (law@cygnus.com)
20360
20361 * gcse.c (gcse_main): Avoid global optimizations if we have a
20362 large number of basic blocks and the ratio of edges to blocks
20363 is high.
20364 (delete_null_pointer_checks): Likewise.
20365
20366 Sat Oct 9 23:16:01 1999 Ken Raeburn <raeburn@mit.edu>
20367
20368 * c-common.c (check_format_info): Warn if format string isn't a
20369 string literal.
20370
20371 Sat Oct 9 23:04:02 1999 Jonathan Larmour <jlarmour@cygnus.co.uk>
20372
20373 * configure.in (arm*-*-*): Don't let autoconf remove brackets
20374 * configure: regenerate
20375
20376 Sat Oct 9 13:15:53 1999 Richard Henderson <rth@cygnus.com>
20377
20378 * alpha.md (extendsidi2): Turn into a splitter. Allow f/f.
20379 If TARGET_FIX, allow r/f. Remove cvtlq unspec pattern.
20380 (peepholes): Re-enable.
20381
20382 Sat Oct 9 12:18:16 1999 Richard Henderson <rth@cygnus.com>
20383
20384 * Makefile.in (flow.o): Depend on TREE_H.
20385 * basic-block.h (REG_SET_EQUAL_P): New.
20386 (XOR_REG_SET): New.
20387 (n_edges): Declare.
20388 (free_regset_vector): Remove declaration.
20389 (flow_delete_insn_chain): Declare.
20390 (enum update_life_extent): New.
20391 (update_life_info, count_or_remove_death_notes): Declare.
20392 * combine.c (distribute_notes) [REG_DEAD]: Stop search at bb->head.
20393 Verify register live at bb->global_live_at_start before adding USE.
20394 * flow.c (HAVE_epilogue, HAVE_prologue): Provide default.
20395 (CLEAN_ALLOCA): New.
20396 (n_edges): New.
20397 (PROP_*): New flags.
20398 (find_basic_blocks_1): Use alloc_EXPR_LIST.
20399 (clear_edges): Zero n_edges.
20400 (make_edge): Increment n_edges.
20401 (split_edge): Don't allocate bb->local_set. Increment n_edges.
20402 (flow_delete_insn_chain): Export.
20403 (delete_block): Decrement n_edges.
20404 (merge_blocks_nomove): Likewise.
20405 (life_analysis): Give life_analysis_1 PROP flags.
20406 (verify_wide_reg_1, verify_wide_reg): New.
20407 (verify_local_live_at_start): New.
20408 (update_life_info): Rewrite to call into propogate_block.
20409 (mark_reg): New.
20410 (mark_regs_live_at_end): After reload, if epilogue as rtl,
20411 always mark stack pointer. Conditionally mark PIC register.
20412 After reload, mark call-saved registers, return regsiters.
20413 (life_analysis_1): Accept PROP flags not remove_dead_code.
20414 Call mark_regs_live_at_end before zeroing regs_ever_live.
20415 Use calculate_global_regs_live. Copy global_live_at_end before
20416 calling final propagate_block. Zero reg_next_use on exit.
20417 (calculate_global_regs_live): New.
20418 (allocate_bb_life_data): Don't allocate bb->local_set.
20419 (init_regset_vector, free_regset_vector): Remove.
20420 (propagate_block): Accept FLAGS not FINAL or REMOVE_DEAD_CODE.
20421 Test flags before every operation. Warn if prologue/epilogue insn
20422 would have been deleted.
20423 (mark_set_regs, mark_set_1): Accept and use FLAGS.
20424 Use alloc_EXPR_LIST.
20425 (mark_used_regs): Accept and use FLAGS, not FINAL.
20426 Remove special handling for RETURN.
20427 (try_pre_increment): Use alloc_EXPR_LIST.
20428 (dump_flow_info): Dump n_edges.
20429 (unlink_insn_chain, split_hard_reg_notes): Remove.
20430 (maybe_add_dead_note, maybe_add_dead_note_use): Remove.
20431 (find_insn_with_note, new_insn_dead_notes): Remove.
20432 (update_n_sets, sets_reg_or_subreg_1, sets_reg_or_subreg): Remove.
20433 (maybe_remove_dead_notes, prepend_reg_notes): Remove.
20434 (replace_insns): Remove.
20435 (count_or_remove_death_notes): New.
20436 (verify_flow_info): Abort on error after all checks.
20437 (remove_edge): Decrement n_edges.
20438 (remove_fake_edges): Tweak format.
20439 * haifa-sched.c (schedule_insns): Use split_all_insns.
20440 * output.h (update_life_info): Remove declaration.
20441 * recog.c (split_all_insns): From the corpse of split_block_insns,
20442 do the whole function block by block. Use update_life_info.
20443 (recog_last_allowed_insn): New.
20444 (recog_next_insn): Mind it.
20445 (peephole2_optimize): Set it. Walk backwards through blocks.
20446 Use update_life_info.
20447 * rtl.h (update_flow_info, replace_insns): Remove declarations.
20448 (split_all_insns): Declare.
20449 * toplev.c (rest_of_compilation): Thread prologue before flow2.
20450 Use split_all_insns.
20451
20452 * i386.md (or -1 peep2s): Disable.
20453
20454 Fri Oct 8 17:49:08 1999 Richard Henderson <rth@cygnus.com>
20455
20456 * config/mips/mips.md (movstrsi+[123]) : Combine these into
20457 a single pattern. Scrap the 'd' versions as unnecessary.
20458
20459 * config/mips/mips.md (tablejump_internal3,tablejump_mips161,
20460 tablejump_mips162,tablejump_internal4): The operands to a
20461 label_ref must be VOIDmode.
20462
20463 Fri Oct 8 16:12:42 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20464
20465 * configure.in (c-mbchar): Append, don't overwrite, `extra_c_flags'.
20466
20467 Fri Oct 8 11:58:34 1999 Richard Henderson <rth@cygnus.com>
20468
20469 * mips.c (mips_va_arg) [EABI]: Return addr_rtx.
20470
20471 Fri Oct 8 11:58:34 1999 Richard Henderson <rth@cygnus.com>
20472
20473 * lists.c (init_EXPR_INSN_LIST_cache): Don't need to zap the
20474 cache every function if ggc_p.
20475
20476 Fri Oct 8 18:46:11 1999 Bernd Schmidt <bernds@cygnus.co.uk>
20477
20478 * jump.c (duplicate_loop_exit_test): Use copy_insn/copy_insn_1
20479 instead of copy_rtx. Accept sequences that contain asm statements.
20480 * emit-rtl.c (copy_insn_1, copy_insn): New functions.
20481 (copy_insn_scratch_in, copy_insn_scratch_out, copy_insn_n_scratches,
20482 orig_asm_operands_vector, copy_asm_operands_vector,
20483 orig_asm_constraints_vecotr, copy_asm_constraints_vector): New static
20484 variables.
20485 * rtl.h (copy_insn, copy_insn_1): Declare.
20486
20487 Fri Oct 8 13:08:12 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20488
20489 * Makefile.in (insn-recog.o): Depend on hard-reg-set.h and resource.h.
20490
20491 * alpha.h (ASM_OUTPUT_MI_THUNK): Pass the correct number of
20492 arguments to `current_file_function_operand'.
20493
20494 * genrecog.c: Include hard-reg-set.h and resource.h in the
20495 generated output file.
20496
20497 * real.c: Include tm_p.h.
20498
20499 Fri Oct 8 18:46:11 1999 Bernd Schmidt <bernds@cygnus.co.uk>
20500
20501 * i386.md (prologue_allocate_stack): Add '=' constraint letter on
20502 output operand.
20503
20504 Thu Oct 7 23:06:50 1999 Richard Henderson <rth@cygnus.com>
20505
20506 * rs6000.md (fix_truncdfsi2_internal+1): Emit a clobber
20507 before the fctiwz insn.
20508
20509 Thu Oct 7 22:53:00 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
20510 Mark Mitchell <mark@codesourcery.com>
20511
20512 * tree.c (make_lang_type_fn): New funtion pointer.
20513 (make_lang_type): Call it.
20514 * tree.h (make_lang_type): Declare.
20515 (make_lang_type_fn): Likewise.
20516 * rs6000.c (rs6000_build_va_list): Use make_lang_type.
20517
20518 Thu Oct 7 00:36:17 1999 Diego Novillo <dnovillo@cygnus.com>
20519
20520 * config/rs6000/rs6000.c (secondary_reload_class): For TARGET_ELF
20521 make sure that HIGH instructions are copied into BASE_REGS.
20522
20523 Thu Oct 7 17:02:34 1999 Jason Merrill <jason@yorick.cygnus.com>
20524
20525 * expr.c (expand_expr, TARGET_EXPR): Set TREE_USED sooner.
20526
20527 Thu Oct 7 17:01:58 1999 Greg McGary <gkm@gnu.org>
20528
20529 * c-decl.c (finish_struct): Use simpler method of
20530 removing elements of a singly-linked list.
20531
20532 Thu Oct 7 15:23:28 1999 Michael Meissner <meissner@cygnus.com>
20533
20534 * alpha.md (peephole2's): Comment out peephole2's that generate
20535 buggy code.
20536
20537 Thu Oct 7 12:00:53 1999 Richard Henderson <rth@cygnus.com>
20538
20539 * genrecog.c (add_to_sequence): Disable mode check for
20540 wildcard matches.
20541
20542 Thu Oct 7 20:14:16 1999 Bernd Schmidt <bernds@cygnus.co.uk>
20543
20544 * ggc-simple.c (init_ggc): Set empty_string.
20545
20546 Thu Oct 7 01:13:15 1999 Richard Henderson <rth@cygnus.com>
20547
20548 * configure.in: Detect mmap. Add --with-gc=foo to select
20549 garbage collector; default to page if mmap available.
20550 * Makefile.in (GGC): Substitute.
20551
20552 Wed Oct 6 23:56:30 1999 Richard Henderson <rth@cygnus.com>
20553
20554 * c-decl.c (ggc_p): Enable.
20555
20556 Wed Oct 6 17:17:08 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20557
20558 * flow.c (verify_flow_info): Make it extern & unconditionally define.
20559
20560 1999-10-06 Brendan Kehoe <brendan@cygnus.com>
20561
20562 * sparc/sp86x-elf.h (SUBTARGET_SWITCHES): Add missing doc
20563 string for little-endian-data.
20564
20565 Wed Oct 6 16:10:35 1999 Michael Meissner <meissner@cygnus.com>
20566
20567 * varray.h (VARRAY_CHECK): Fix up appropriate revision check, in
20568 case somebody tries to compile --enable-checking code with gcc
20569 1.34 or such.
20570
20571 Wed Oct 6 12:22:50 1999 Richard Henderson <rth@cygnus.com>
20572
20573 * genrecog.c (add_to_sequence): Verify operand to label_ref is
20574 VOIDmode.
20575
20576 Wed Oct 6 10:21:15 1999 Richard Henderson <rth@cygnus.com>
20577
20578 * genconfig.c (main): Disable HAVE_conditional_arithmetic.
20579 * jump.c (jump_optimize_1): Document why.
20580
20581 Wed Oct 6 10:41:56 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20582
20583 * collect2.c (scan_prog_file, scan_libraries): Prototype function
20584 pointers and casts for `int_handler' and `quit_handler'.
20585
20586 * flow.c (verify_flow_info, split_hard_reg_notes,
20587 find_insn_with_note, sets_reg_or_subreg_1, prepend_reg_notes,
20588 remove_edge, remove_fake_successors): Add static prototypes.
20589 (verify_flow_info): Wrap with macro ENABLE_CHECKING.
20590 (mark_set_1): Initialize variable `regno'.
20591 (unlink_insn_chain): Likewise for variable `curr'.
20592 (remove_fake_edges): Remove unused variables `e', `tmp' and `last'.
20593
20594 * loop.c (strength_reduce): Initialize variable
20595 `unrolled_insn_copies'.
20596 (cmp_combine_givs_stats, cmp_recombine_givs_stats): Add static
20597 prototypes. Change these functions to take const PTR parameters
20598 to avoid prototype conflict when used as the comparson argument
20599 for qsort.
20600 (check_dbra_loop): Initialize variable `comparison_val'.
20601
20602 * reload.c (debug_reload_to_stream, debug_reload): Add prototypes.
20603 (get_secondary_mem): Mark parameter `x' with ATTRIBUTE_UNUSED.
20604 (find_valid_class): Initialize variable `best_class'.
20605 (find_reloads): Call memcpy, not bcopy.
20606
20607 * reload1.c (gen_mode_int, dump_needs): Add prototypes.
20608 (hard_reg_use_compare): Don't needlessly cast away const.
20609 (reload_reg_class_lower): Likewise.
20610 (choose_reload_regs): Initialize variable `regno'.
20611
20612 Tue Oct 5 16:34:12 1999 Paul Burchard <burchard@pobox.com>
20613
20614 * ggc-page.c (GGC_ALWAYS_COLLECT): Fix typo when undef'ing.
20615
20616 Tue Oct 5 16:14:40 1999 Michael Meissner <meissner@cygnus.com>
20617
20618 * libgcc1-test.c (toplevel): Include stddef.h to get size_t.
20619 ({,d}discard): Add forward declarations. Declare parameter as
20620 unused.
20621 (main_without_main): Explicitly declare return type to be int.
20622 (memcpy): Properly declare.
20623
20624 * libgcc2.c (toplevel): If inhibit_libc is defined and not
20625 building the trampoline support, declare malloc, free, and
20626 atexit.
20627 (__clear_cache): Mark arguments as potentially unused.
20628
20629 * frame.c (toplevel): If inhibit_libc is defined, declare
20630 malloc and free.
20631
20632 Tue Oct 5 12:00:32 1999 Richard Henderson <rth@cygnus.com>
20633
20634 * flow.c (make_edge): Accept an optional 2D bitmap in which
20635 to cache edge existence. Update all callers.
20636 (make_label_edge, make_eh_edge): Pass through the edge cache.
20637 (make_edges): Provide the cache.
20638
20639 Tue Oct 5 12:16:49 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20640
20641 * mbchar.c (literal_codeset, local_mbtowc, local_mblen): Constify
20642 a char*.
20643 (local_mbtowc): Change the type of variable `i' from int to size_t.
20644
20645 * mbchar.h (ISSJIS1, ISSJIS2): Use parens around && within ||.
20646 (local_mbtowc, local_mblen, literal_codeset): Constify a char*.
20647
20648 Tue Oct 5 11:34:52 1999 Michael Meissner <meissner@cygnus.com>
20649
20650 * ggc-common.c (toplevel): Reorder includes, so that ggc.h comes
20651 after other includes that define the appropriate types. Include
20652 tm_p.h for getting user prototypes.
20653 * ggc-callbacks.c (toplevel): Ditto.
20654 * ggc-none.c (toplevel): Ditto.
20655 * gcc-page.c (toplevel): Ditto.
20656 * ggc-simple.c (toplevel): Ditto.
20657
20658 Mon Oct 4 16:48:16 1999 Diego Novillo <dnovillo@cygnus.com>
20659 Jonathan Larmour <jlarmour@cygnus.co.uk>
20660
20661 * config/mips/mips.c (mips_move_2words): Split doubles if
20662 ISA >= 3, !TARGET_64BIT, and destination is not an FP register.
20663
20664 Mon Oct 4 21:47:31 1999 Richard Henderson <rth@cygnus.com>
20665
20666 * genrecog.c (struct decision_test): New.
20667 (struct decision): Remove test-related members, sort the rest by size.
20668 (IS_SPLIT): Simplify.
20669 (new_decision, new_decision_test): New.
20670 (add_to_sequence): Use them. No special handling for args of
20671 non-MATCH codes.
20672 (maybe_both_true): Renamed from not_both_true; return sense changed.
20673 (maybe_both_true_1, maybe_both_true_2): New. Broken out
20674 of maybe_both_true and adjusted for decision_test.
20675 (position_merit): Remove.
20676 (nodes_identical, nodes_identical_1): New, broken out of merge_trees.
20677 (merge_accept_insn): New, broken out of merge_trees.
20678 (merge_trees): Use them. No special case for c_test; no node
20679 splitting; use test type instead of position_merit.
20680 (factor_tests): New.
20681 (simplify_tests): New.
20682 (break_out_subroutines): Don't write code now.
20683 (find_afterward): New.
20684 (write_afterward, write_switch, write_cond): New.
20685 (write_action, is_unconditional): New.
20686 (write_node): New. Use them.
20687 (write_tree_1): Rewrite. Use the new functions above.
20688 (write_tree): Remove afterward processing.
20689 (write_subroutine): Simplify function variant emission.
20690 (write_subroutines): New.
20691 (same_codes, clear_codes): Remove.
20692 (same_modes, clear_modes): Remove.
20693 (write_header): New, broken out of main.
20694 (make_insn_sequence): Use new_decision and new_decision_test.
20695 (process_tree): New, broken out of main.
20696 (main): Adjust for merge_trees interface change.
20697 Don't #define operands in the output file.
20698 (record_insn_name): New, broken out of make_insn_sequence.
20699 (debug_decision_2, debug_decision_1, debug_decision_0): New.
20700 (debug_decision): New.
20701
20702 1999-10-04 21:58 -0700 Zack Weinberg <zack@bitmover.com>
20703
20704 * resource.c (find_free_register): Mark class_str argument const.
20705 * resource.h: Update prototype to match.
20706
20707 * i386.h (PREDICATE_CODES): Add entry for long_memory_operand.
20708 * i386.md: Give all anonymous insns names.
20709
20710 Mon Oct 4 21:12:02 1999 Jeffrey A Law (law@cygnus.com)
20711
20712 * flow.c (merge_blocks): Avoid assing BASIC_BLOCK for non-existent
20713 blocks.
20714
20715 Mon Oct 4 21:01:39 1999 Richard Henderson <rth@cygnus.com>
20716
20717 * toplev.c (dbr_sched_time): Unconditional.
20718 (peephole2_time): New.
20719 (compile_file): Add pass numbers to all of the dump file suffixes.
20720 Dump peephole2_time. Don't dump times for non-applicable passes.
20721 (rest_of_compilation): Add pass numbers to dump file suffixes.
20722 Conditionalize calls to the scheduler.
20723 * invoke.texi: Update.
20724
20725 Mon Oct 4 20:25:13 1999 Anthony Green <green@cygnus.com>
20726
20727 * flow.c (make_edges): Fix insn iteration.
20728 (find_basic_blocks): Assign NULL_RTX, not 0, to rtx.
20729 (find_basic_blocks_1): Fix spelling mistake.
20730
20731 Mon Oct 4 16:56:11 1999 Richard Henderson <rth@cygnus.com>
20732
20733 * tree.c (build1): Set TREE_SIDE_EFFECTS for expressions that
20734 always have side-effects. Use memset not bzero.
20735 (make_node): Likewise.
20736
20737 Mon Oct 4 16:22:20 1999 Mark Mitchell <mark@codesourcery.com>
20738
20739 * stmt.c (expand_anon_union_decl): When any of the elements of the
20740 union is addressable, so is the entire union.
20741
20742 Mon Oct 4 11:38:33 1999 Richard Henderson <rth@cygnus.com>
20743
20744 * sbitmap.c (sbitmap_ones): Don't set too many bits.
20745
20746 * bitmap.h (enum bitmap_bits): Add BITMAP_XOR.
20747 * bitmap.c (bitmap_operation): Return true iff TO changed.
20748 (bitmap_equal_p): New.
20749 (bitmap_bit_p): Tidy arithmetic.
20750 (debug_bitmap_file): Likewise.
20751
20752 Mon Oct 4 11:28:37 1999 Richard Henderson <rth@cygnus.com>
20753
20754 * toplev.c (rest_of_compilation): Turn on cse_not_expected
20755 before cse2 instead of after.
20756
20757 Mon Oct 4 09:55:17 1999 Stan Cox <scox@cygnus.com>
20758
20759 * mips.h (GO_IF_LEGITIMATE_ADDRESS): Let leasi/liadi handle large
20760 register offsets.
20761
20762 Mon Oct 4 08:54:12 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
20763
20764 * cppinit.c (is_idchar initializer): Loosen tests to accept
20765 gcc 2.>6 and >2.
20766
20767 Mon Oct 4 02:31:20 1999 Mark Mitchell <mark@codesourcery.com>
20768
20769 * mips.md: Define conditional move patterns for floating point
20770 operands and DI mode conditions.
20771
20772 Mon Oct 4 02:12:41 1999 Mark Mitchell <mark@codesourcery.com>
20773
20774 * tree.c (make_node): Set TREE_SIDE_EFFECTS for expressions that
20775 always have side-effects.
20776
20777 Sun Oct 3 14:14:16 1999 Jeffrey A Law (law@cygnus.com)
20778
20779 * mn10200.c (asm_file_start): Fix typo.
20780
20781 * cppinit.c (is_idchar initializer): Tighten tests for when
20782 to put the table into initialized memory.
20783
20784 * ggc-none.c (ggc_alloc_rtvec): An rtvec is an array of rtx,
20785 not an array of rtunion.
20786 * gcc-page.c (ggc_alloc_rtvec): Similarly.
20787 * gcc-simple (ggc_free_rtvec): Similarly.
20788
20789 * genattrtab.c (simplify_cond): Make TESTS an array of rtxs, instead
20790 of rtunions.
20791
20792 * mbchar.h: Add missing #endif.
20793
20794 * t-fr30 (LIB2FUNCS_EXTRA): Remove definition.
20795 (FPBIT, DPBIT): Define.
20796
20797 Sun Oct 3 12:44:05 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20798
20799 * print-tree.c (print_node, indent_to): Remove redundant prototypes.
20800
20801 * profile.c (instrument_arcs, output_gcov_string,
20802 tablejump_entry_p): Add static prototypes.
20803 (output_gcov_string): Constify a char*.
20804
20805 * regmove.c (replacement_quality, fixup_match_2): Add static
20806 prototypes.
20807
20808 * resource.h (reg_dead_p): Add extern prototype.
20809
20810 * rtl.c (trim_filename): Add static prototype.
20811
20812 * scan-decls.c (skip_to_closing_brace): Likewise.
20813
20814 * stmt.c (expand_decl_cleanup_no_eh): Hide definition.
20815 (expand_end_case): Initialize variable `range'.
20816 (emit_case_nodes): Remove unused prototype `rtx_fn'.
20817
20818 * varasm.c (asm_emit_uninitialised): Add static prototype.
20819 (asm_emit_uninitialised, assemble_variable): Mark parameter with
20820 ATTRIBUTE_UNUSED.
20821
20822 Sun Oct 3 12:24:52 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20823
20824 * cpplib.c (if_directive_nameo): Add static prototype.
20825
20826 * cse.c (cse_insn): Remove unused variable `p'.
20827
20828 * except.c (create_rethrow_ref, push_entry,
20829 receive_exception_label, new_eh_region_entry, find_func_region,
20830 clear_function_eh_region, process_nestinfo): Add static prototypes.
20831 (get_reg_for_handler): Hide definition.
20832 (process_nestinfo): Initialize variable `extra_handlers'.
20833
20834 * expr.h (expand_builtin_longjmp): Add extern prototype.
20835
20836 * final.c (final_addr_vec_align, align_fuzz): Add static prototypes.
20837
20838 * function.c (prepare_function_start): Likewise.
20839 (pop_function_context_from): Mark parameter `context' with
20840 ATTRIBUTE_UNUSED.
20841 (push_temp_slots_for_block, flush_addressof): Hide definition.
20842
20843 * gcov.c (init_arc, reverse_arcs, create_program_flow_graph,
20844 solve_program_flow_graph, calculate_branch_probs,
20845 function_summary, main, fancy_abort): Add prototypes.
20846
20847 * gen-protos.c (add_hash, parse_fn_proto, main): Likewise.
20848 (add_hash): Constify a char*.
20849
20850 * ggc-common.c (ggc_mark_rtx_ptr, ggc_mark_tree_ptr,
20851 ggc_mark_tree_varray_ptr, ggc_mark_tree_hash_table_ptr,
20852 ggc_mark_string_ptr, ggc_mark_tree_hash_table_entry): Add prototypes.
20853
20854 * integrate.c (expand_inline_function_eh_labelmap): Likewise.
20855
20856 * lists.c (free_list, zap_lists): Likewise.
20857
20858 Sun Oct 3 12:05:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20859
20860 * alias.c (nonlocal_reference_p): Add static prototype.
20861
20862 * bitmap.c (bitmap_element_allocate): Prototype args in function
20863 pointer cast.
20864
20865 * builtins.c (stabilize_va_list): Add static prototype.
20866 (expand_builtin_va_arg): Constify a char*.
20867
20868 * c-lex.c (getch, put_back, extend_token_buffer_to,
20869 read_line_number, token_getch, token_put_back): Add static
20870 prototypes.
20871
20872 * c-parse.gperf (hash, is_reserved_word): Likewise.
20873
20874 * cccp.c (is_dir_separator): Likewise.
20875
20876 Sat Oct 2 16:07:56 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20877
20878 * graph.h: New file to prototype functions exported by graph.c.
20879
20880 * Makefile.in (graph.o, toplev.o): Depend on graph.h.
20881
20882 * graph.c: Include graph.h.
20883
20884 * toplev.c: Likewise. Remove redundant prototypes.
20885
20886 Sat Oct 2 11:28:33 1999 Krister Walfridsson <cato@df.lth.se>
20887
20888 * invoke.texi: Removed duplicated description for -Q.
20889
20890 Sat Oct 2 11:16:00 1999 Jim Kingdon <http://developer.redhat.com>
20891
20892 * extend.texi: Grammar fix in __extension__ text.
20893
20894 Sat Oct 2 11:06:31 1999 Richard Henderson <rth@cygnus.com>
20895
20896 * md.texi (define_peephole2): New section.
20897
20898 Sat Oct 2 10:57:56 1999 Jan Hubicka <hubicka@freesoft.cz>
20899
20900 * i386.md (mov?i patterns): Fix handling of TARGET_USE_MOV0
20901 (mov $-1 to or peepholer): Enable for pentium when optimizing for
20902 speed.
20903
20904 Sat Oct 2 10:55:25 1999 Jan Hubicka <hubicka@freesoft.cz>
20905
20906 * builtins.c (expand_builtin_strlen): Fix best mode searching loop.
20907
20908 Sat Oct 2 10:53:22 1999 Jan Hubicka <hubicka@freesoft.cz>
20909
20910 * i386.md (ffs expander): Emit Pentium friendly code for
20911 TARGET_PENTIUM.
20912
20913 Sat Oct 2 02:48:21 1999 Mark P. Mitchell <mark@codesourcery.com>
20914
20915 * tree.c (build): Don't look at TREE_SIDE_EFFECTS or TREE_RAISES
20916 for non-trees.
20917 (build1): Likewise.
20918
20919 Fri Oct 1 18:01:11 1999 Bernd Schmidt <bernds@cygnus.co.uk>
20920
20921 * i386elf.h (TARGET_DEFAULT): Use symbolic constants.
20922
20923 Fri Oct 1 12:42:53 1999 Andreas Schwab <schwab@suse.de>
20924
20925 * config/m68k/m68k.c (use_return_insn): Return false if the pic
20926 register is in use.
20927
20928 Fri Oct 1 10:56:06 1999 Bernd Schmidt <bernds@cygnus.co.uk>
20929
20930 * md.texi (No Constraints): Delete section.
20931 * Makefile.in (genattrtab.o): Don't depend on "insn-config.h".
20932 * final.c (final_scan_insn): We always have register constraints.
20933 * genattrtab.c: Don't include "insn-config.h".
20934 (write_attr_case): We always have register constraints.
20935 * genconfig.c (register_constraint_flag): Delete.
20936 (walk_insn_part): Don't check whether we have register constraints.
20937 (main): Don't write out "#define REGISTER_CONSTRAINTS".
20938 * genoutput.c (have_constraints): Delete.
20939 (main): Don't set it.
20940 (output_operand_data): We always have constraints.
20941 (scan_operands): Likewise.
20942 (compare_operands): Likewise.
20943 * local-alloc.c (block_alloc): We always have constraints.
20944 (requires_inout): Always compile this function.
20945 * recog.c (extract_insn): We always have constraints.
20946 (constrain_operands, reg_fits_class_p): Always compile these
20947 functions.
20948 * recog.h (struct recog_data): Delete non-REGISTER_CONSTRAINTS
20949 fields.
20950 (struct insn_operand_data): Likewise.
20951 * regclass.c (regclass): We always have constraints.
20952 (record_reg_classes, copy_cost, record_address_regs,
20953 auto_inc_dec_reg_p): Always compile these functions.
20954 * regmove.c (regmove_optimize): We always have constraints.
20955 * reload.c (find_reloads): Likewise.
20956 * reload1.c (reload): Likewise.
20957 (reload_cse_simplify_operands): Likewise.
20958 * i860.c (output_delay_insn): Likewise.
20959
20960 Thu Sep 30 23:04:41 1999 Mark P. Mitchell <mark@codesourcery.com>
20961
20962 * iris6.h (BUILD_VA_LIST_TYPE): Define.
20963
20964 Thu Sep 30 18:44:50 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
20965
20966 * rs6000.c (rs6000_build_va_list): Create a TYPE_DECL node
20967 for the va_list record.
20968
20969 Thu Sep 30 18:34:54 1999 Jan Hubicka <hubicka@freesoft.cz>
20970
20971 * i386.c (ix86_adjust_cost): Ignore false ebp dependencies in
20972 prologues.
20973
20974 Thu Sep 30 18:31:36 1999 Jan Hubicka <hubicka@freesoft.cz>
20975
20976 * alias.c: Include insn-flags.h.
20977 * Makefile.in (alias.o): Update.
20978
20979 Thu Sep 30 18:21:30 1999 Jan Hubicka <hubicka@freesoft.cz>
20980
20981 * i386.c (ix86_expand_int_movcc): Convert LEU and GTU comparisons
20982 to LTU and GEU. Handle more cases using sbb.
20983
20984 Thu Sep 30 18:18:39 1999 Jan Hubicka <hubicka@freesoft.cz>
20985
20986 * i386.md (truncatexfdf splitters): Do not use subreg.
20987 (fop XFmode patterns): Fix mode in operand testing.
20988
20989 Thu Sep 30 18:04:13 1999 Richard Henderson <rth@cygnus.com>
20990
20991 * jump.c (jump_optimize_1): Amend last change to test only the
20992 form of the operand, not the insn.
20993
20994 * jump.c (jump_optimize_1) [conditional_move]: Use general_operand
20995 not register_operand to determine when B may need preloading.
20996
20997 Thu Sep 30 17:39:16 1999 Richard Henderson <rth@cygnus.com>
20998
20999 * alpha.md (*): Use nonimmediate not general_operand for SET_DEST.
21000 (ffsdi2, extxl, insxh, mskxh): Add missing DImode to SET_SRC.
21001 (call-value patterns): Move to end of file.
21002 (*): Remove mode from label_ref in (pc) context.
21003 (movstrqi): Use memory not general_operand for BLKmode operands.
21004 (prologue_stack_probe_loop, builtin_longjmp): Add missing mode
21005 to register_operand operands.
21006 (peep2 patterns): Convert from commented-out peephole patterns.
21007
21008 Thu Sep 30 14:39:17 1999 Bernd Schmidt <bernds@cygnus.co.uk>
21009
21010 * tree.h (enum built_in_function): Rename BUILT_IN_DWARF_REG_SIZE
21011 to BUILT_IN_INIT_DWARF_REG_SIZES.
21012 * builtins.c (expand_builtins, case BUILT_IN_INIT_DWARF_REG_SIZES):
21013 Renamed from BUILT_IN_DWARF_REG_SIZE; call
21014 expand_builtin_init_dwarf_reg_sizes.
21015 * c-decl.c (init_decl_processing): Replace __builtin_dwarf_reg_size
21016 with __builtin_init_dwarf_reg_size_table.
21017 * dwarf2out.c (struct reg_size_range): Delete.
21018 (expand_builtin_init_dwarf_reg_sizes): New function.
21019 (expand_builtin_dwarf_reg_size): Delete.
21020 * except.h (expand_builtin_init_dwarf_reg_sizes): Declare.
21021 (expand_builtin_dwarf_reg_size): Don't declare.
21022 * libgcc2.c (dwarf_reg_size_table_initialized): New.
21023 (dwarf_reg_size_table): New.
21024 (init_reg_size_table): New function.
21025 (copy_reg): Use dwarf_reg_size_table.
21026 (eh_context_initialize): Make sure dwarf_reg_size_table is initialized
21027 before use.
21028
21029 Thu Sep 30 05:40:34 1999 Richard Earnshaw <rearnsha@arm.com>
21030
21031 * c-lang.c (finish_file case ndef ASM_OUTPUT_{CON,DE}STRUCTOR):
21032 Correctly build argument list to constructor and destructor functions.
21033
21034 Thu Sep 30 00:13:27 1999 Dirk Zoller <duz@rtsffm.com>
21035
21036 * c-tree.h (warn_float_equal): Declare.
21037 * c-decl.c (warn_float_equal): Define.
21038 (c_decode_option): Recognize -W[no-]float-equal.
21039 * c-typeck.c (build_binary_op): Conditionally warn
21040 about equality tests of floating point types.
21041 * toplev.c (documented_lan_options): Add -W[no-]float-equal.
21042 * invoke.texi: Add docs for -Wfloat-equal warning.
21043
21044 Wed Sep 29 23:43:39 1999 Jeffrey A Law (law@cygnus.com)
21045
21046 * h8300.h (INIT_TARGET_OPTABS): Use init_one_optab instead of
21047 generating RTL directly.
21048 * mips.h (INIT_TARGET_OPTABS): Likewise.
21049 * mn10200.h (INIT_TARGET_OPTABS): Likewise.
21050
21051 * expr.h (init_mov_optab): Delete declaration
21052
21053 * h8300.c (WORD_REG_USED): Update to avoid useless register
21054 saves in interrupt functions and functions which never return.
21055
21056 * cse.c (struct set): Delete inner_dest_loc field.
21057 (cse_insn): Remove assignments to inner_dest_loc field.
21058
21059 Wed Sep 29 16:06:20 1999 Richard Henderson <rth@cygnus.com>
21060
21061 * ggc-page.c: Don't include <unistd.h> etc taken care of
21062 by "system.h". Include <sys/mman.h> afterward.
21063
21064 Wed Sep 29 16:05:18 1999 Richard Henderson <rth@cygnus.com>
21065
21066 * rs6000.c (rs6000_encode_section_info): If ggc_p, use
21067 ggc_alloc_string.
21068
21069 Tue Sep 28 16:45:40 1999 David Edelsohn <edelsohn@gnu.org>
21070
21071 * xcoffout.c (xcoffout_declare_function): Add documentation.
21072 * rs6000.c (num_insns_constant_wide): Use TARGET_POWERPC64 not
21073 TARGET_64BIT. Compare constant to -1, not bit pattern.
21074 (easy_fp_constant): Use TARGET_POWERPC64 not TARGET_64BIT.
21075 (expand_block_move): Allow 8 DImode loads for PowerPC64. Fix
21076 gen_movsi typos.
21077
21078 Tue Sep 28 16:43:14 1999 Nick Clifton <nickc@cygnus.com>
21079
21080 * dwarf2out.c (add_abstract_origin_attribute): Abort if
21081 origin_die is NULL.
21082 (gen_inlined_enumeration_type_die): Do not abort if the type has
21083 not been writeen out.
21084 (gen_inlined_structure_type_die): Do not abort if the type has
21085 not been writeen out.
21086 (gen_inlined_union_type_die): Do not abort if the type has
21087 not been writeen out.
21088 (gen_tagged_type_instantiation_die): Do not abort if the type
21089 has not been written out.
21090
21091 Tue Sep 28 14:33:47 1999 Bernd Schmidt <bernds@cygnus.co.uk>
21092
21093 * c-decl.c (init_decl_processing): If MD_INIT_BUILTINS is defined,
21094 call it.
21095 * reg-stack.c (straighten_stack): Copy hard reg set with
21096 COPY_HARD_REG_SET.
21097
21098 Tue Sep 28 01:11:05 1999 Richard Henderson <rth@cygnus.com>
21099
21100 * builtins.c (stabilize_va_list): Stabilize array type va_list
21101 to a pointer type, not the base record type.
21102 (expand_builtin_va_copy): Dereference the pointers explicitly;
21103 use the correct size for the copy.
21104
21105 * rs6000.c (rs6000_va_start): Dereference valist to get to the record.
21106 (rs6000_va_arg): Likewise.
21107
21108 Mon Sep 27 23:27:21 1999 Richard Henderson <rth@cygnus.com>
21109
21110 * rtl.h (struct rtx_def): Move gc_mark to align mode field.
21111
21112 Mon Sep 27 23:20:29 1999 Mark Mitchell <mark@codesourcery.com>
21113
21114 * tree.h (struct tree_decl): Use `bclass', not `class', in name of
21115 field.
21116 (DECL_BUILT_IN_CLASS): Adjust accordingly.
21117
21118 Mon Sep 27 23:03:16 1999 Richard Henderson <rth@cygnus.com>
21119
21120 * ggc-page.c (GGC_MIN_LAST_ALLOCATED): New.
21121 (init_ggc): Use it instead of a constant.
21122 (ggc_collect): Bound allocated_last_gc by it.
21123
21124 Mon Sep 27 19:06:04 1999 Jeffrey A Law (law@cygnus.com)
21125
21126 * fixinc/fixinc.irix (stdio.h): Hack stdio.h to avoid problems
21127 with va_list.
21128
21129 Mon Sep 27 19:40:17 CEST 1999 Marc Espie <espie@cvs.openbsd.org>
21130
21131 * configure.in (mips*el-*-openbsd*): Don't duplicate default settings.
21132 (mips*-*-openbsd*): Let big endian configuration be a fragment.
21133 * configure: Regen.
21134 * config/mips/openbsd.h: New, OpenBSD little endian target.
21135 * config/mips/openbsd-be.h: New, OpenBSD big endian target fragment.
21136 * config/mips/xm-openbsd.h: New, OpenBSD host.
21137
21138 Mon Sep 27 10:28:48 1999 Andreas Schwab <schwab@suse.de>
21139
21140 * config/m68k/m68k.c (output_function_prologue,
21141 output_function_epilogue): Use
21142 current_function_uses_pic_offset_table instead of regs_ever_live
21143 to decide whether to save/restore pic register.
21144 (legitimize_pic_address): Don't modify regs_ever_live any more.
21145
21146 Sun Sep 26 10:55:36 1999 Mark Mitchell <mark@codesourcery.com>
21147
21148 * function.h (struct function): Add x_dont_save_pending_sizes_p.
21149 * stor-layout.c (variable_size): Don't add sizes to the pending
21150 sizes list if x_dont_save_pending_sizes_p is set.
21151
21152 Sun Sep 26 16:36:52 1999 Robert Lipe (robertlipe@usa.net)
21153
21154 * config/i386/dgux.h (SELECT_RTX_SECTION): Provide dummy argument
21155 for symbolic_operand().
21156 * config/i386/sco5.h (SELECT_RTX_SECTION): Likewise.
21157
21158 Sun Sep 26 07:37:11 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21159
21160 * combine.c (gen_rtx_combine): Add missing call to va_end().
21161
21162 * final.c (asm_fprintf): Likewise.
21163
21164 * genattrtab.c (attr_rtx): Likewise.
21165
21166 Sat Sep 25 13:11:07 1999 Jeffrey A Law (law@cygnus.com)
21167
21168 * cse.c: Update comments.
21169 (cse_insn): When converting a conditional/computed jump into
21170 an unconditional jump, always make sure a BARRIER immediately
21171 follows the converted jump. Do not delete unreachable code.
21172 (cse_basic_block): Do not delete unreachable code.
21173 * toplev.c (rest_of_compilation): Move call to
21174 delete_trivially_dead_insns after the conditional call to
21175 jump_optimize.
21176
21177 Sat Sep 25 09:03:17 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21178
21179 * collect2.c (make_temp_file): Don't prototype.
21180
21181 * gcc.c (make_temp_file): Likewise.
21182
21183 * mips.c (mips_make_temp_file): Renamed from `make_temp_file'.
21184
21185 Sat Sep 25 13:42:15 1999 Nick Clifton <nickc@cygnus.com>
21186
21187 * varasm.c (asm_emit_uninitialised): New function: Generate
21188 the assembler statements necessary to declare an uninitialised
21189 variable.
21190 (ASM_EMIT_LOCAL): New macro: Emit a local, uninitialised
21191 variable.
21192 (ASM_EMIT_BSS): New macro: Emit an entry in the bss section.
21193 (ASM_EMIT_COMMON): New macro: Emit an entry in the common
21194 section.
21195 (assemble_variable): Use asm_emit_uninitialised to emit an
21196 uninitialised variable.
21197
21198 Fri Sep 24 17:10:56 1999 Nick Clifton <nickc@cygnus.com>
21199
21200 * combine.c (simplify_comparison): Cope with downshifting a 32 bit
21201 constant on a 64 bit host. Patch supplied by Geoffrey Keating
21202 <geoffk@cygnus.com>.
21203
21204 Fri Sep 24 10:48:10 1999 Bernd Schmidt <bernds@cygnus.co.uk>
21205
21206 * builtins.c (expand_builtin): Use MD_EXPAND_BUILTIN if defined.
21207 * c-common.h (builtin_function): Don't declare.
21208
21209 * c-decl.c (duplicate_decls): Use DECL_BUILT_IN_CLASS rather than
21210 DECL_BUILT_IN.
21211 (pushdecl): Likewise.
21212 (finish_decl): Likewise.
21213 (builtin_function): New arg CLASS. Arg FUNCTION_CODE now of type
21214 int. All callers changed.
21215 Set the builtin's DECL_BUILT_IN_CLASS.
21216 * tree.h (enum built_in_class): New.
21217 (enum built_in_function): Delete NOT_BUILT_IN.
21218 (DECL_FUNCTION_CODE): The corresponding field in tree_decl is now
21219 in a union.
21220 (DECL_SET_FUNCTION_CODE): Likewise.
21221 (DECL_BUILT_IN_CLASS): New macro.
21222 (DECL_BUILT_IN): Use DECL_BUILT_IN_CLASS.
21223 (struct tree_decl): Split builtin function code field into a
21224 struct.
21225 (builtin_function): Declare.
21226
21227 Fri Sep 24 01:45:05 1999 Mark Mitchell <mark@codesourcery.com>
21228
21229 * optabs.c (init_traps): Fix typo in last change.
21230
21231 Fri Sep 24 01:10:11 1999 Mark Mitchell <mark@codesourcery.com>
21232
21233 * toplev.c (rest_of_decl_compilation): Update comment.
21234
21235 Fri Sep 24 11:57:06 1999 Geoffrey Keating <geoffk@cygnus.com>
21236
21237 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Put the symbol
21238 in .sbss if appropriate.
21239 (EXTRA_SECTION_FUNCTIONS): Add sbss.
21240 (SBSS_SECTION_ASM_OP): New macro.
21241 * config/mips/linux.h (EXTRA_SECTION_FUNCTIONS): Add sbss.
21242 (EXTRA_SECTIONS): Add in_sbss.
21243 * config/mips/mips.h: Prototype sbss_section.
21244
21245 Thu Sep 23 18:18:55 1999 Mark Mitchell <mark@codesourcery.com>
21246
21247 * stmt.c (expand_start_bindings): Don't allow cleanup instructions
21248 to disappear.
21249
21250 Thu Sep 23 18:07:01 1999 Mark Mitchell <mark@codesourcery.com>
21251
21252 * optabs.c (init_traps): Register trap_rtx as a GC root.
21253
21254 Thu Sep 23 17:41:47 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
21255
21256 * config/mips/mips.c (function_arg_pass_by_reference): Define
21257 unconditionally, since it's called unconditionally.
21258
21259 Thu Sep 23 13:40:02 1999 Jason Merrill <jason@yorick.cygnus.com>
21260
21261 * toplev.c (documented_lang_options): Add -fshort-wchar.
21262 * c-decl.c (c_decode_option): Likewise.
21263 (init_decl_processing): If -fshort-wchar, use 'short unsigned int'
21264 for wchar_t.
21265 * c-common.c, c-lex.c: Get WCHAR_TYPE_SIZE from wchar_type_node.
21266 * gcc.c (default_compilers): If -fshort-wchar,
21267 override __WCHAR_TYPE__.
21268 * tm.texi (C Dialect Options): Add -fshort-wchar.
21269
21270 * dwarf2out.c (output_aranges): Use DW_AT_location to find the
21271 symbol for a variable.
21272
21273 * cpplib.h (CPP_PREPROCESSED): New macro.
21274 * cpplib.c (handle_directive): Don't complain about `# NUMBER' if
21275 we're seeing this input for a second time.
21276
21277 Thu Sep 23 12:54:49 1999 Alex Samuel <samuel@codesourcery.com>
21278
21279 * emit-rtl.c (init_emit_once): Initialize modes first.
21280
21281 Sun Sep 19 01:23:23 1999 Alex Samuel <samuel@codesourcery.com>
21282
21283 * config/i386/i386.c (pic_label_name): Change to char pointer.
21284 (global_offset_table): New variable.
21285 (load_pic_register): Fill global_offset_table if it hasn't
21286 already been done. Allocate pic_label_name dynamically.
21287 * ggc.h (empty_string): New variable.
21288 * ggc-simple.c (empty_string): Likewise.
21289 (init_ggc): Allocate empty_string and add as root.
21290 * stmt.c (digit_strings): New variable.
21291 (init_stmt): Add last_block_end_note as root. Allocate and
21292 initialize digit_strings.
21293 (expand_asm_operands): Use empty_string instead of string
21294 constant. Use digit_strings instead of string constants.
21295 * profile.c (init_arc_profiler): Allocate string with
21296 ggc_alloc_string instead of xmalloc.
21297 (output_func_start_profiler): Likewise.
21298 * c-typeck.c (digest_init): Check if init is error_mark_node.
21299
21300 Thu Sep 23 12:59:14 1999 Alex Samuel <samuel@codesourcery.com>
21301 Richard Henderson <rth@cygnus.com>
21302
21303 * ggc-page.c: New file.
21304 * Makefile.in (ggc-page.o): New.
21305
21306 Thu Sep 23 13:55:21 1999 Jeffrey A Law (law@cygnus.com)
21307
21308 * invoke.texi: Document -fdelete-null-pointer-checks
21309 * toplev.c (flag_delete_null_pointer_checks): New.
21310 (f_options): Add entry for -fdelete-null-pointer-checks.
21311 (rest_of_compilation): Conditionalize null pointer check
21312 elimination on flag_delete_null_pointer_checks.
21313 (main): If -O2 or greater, enable -fdelete-null-pointer-checks
21314
21315 1999-09-23 10:56 -0700 Zack Weinberg <zack@bitmover.com>
21316
21317 * iso646.h, stdarg.h, stdbool.h, stddef.h, varargs.h: Add
21318 copyright notice and special exception to GPL.
21319
21320 Thu Sep 23 13:40:23 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21321
21322 * abi64.h (mips_function_value): Add prototype arguments.
21323
21324 * mips-protos.h: New file with mips prototypes.
21325
21326 * mips.c: Include "tm_p.h".
21327 (mktemp, lookup_name): Add prototype arguments.
21328 (extern_list, string_constant, mips_fill_delay_slot,
21329 mips_output_external, mips_output_external_libcall,
21330 mips_output_filename, mips_declare_object, function_prologue,
21331 mips_expand_prologue, function_epilogue, mips16_constant,
21332 build_mips16_function_stub, mips_output_conditional_branch):
21333 Constify a char*.
21334 (mips_va_start): Remove unused variable `u'.
21335 (mips_va_arg): Cast value to unsigned when comparing against one.
21336 (trace): Delete.
21337 (save_restore_insns, mips_expand_prologue): Add missing arg in
21338 call to `large_int'.
21339
21340 * mips.h: Move prototypes to mips-protos.h.
21341 (data_section, memory_address_p, rdata_section,
21342 readonly_data_section, simple_epilogue_p, text_section): Delete
21343 prototypes delcared elsewhere.
21344 (mips_epilogue_delay_slots, print_options): Delete unused decls.
21345 (trace): Delete.
21346 (GO_PRINTF, GO_PRINTF2): Call fprintf, not trace.
21347
21348 * mips.md: Delete extra args in call to `mips_move_2words'.
21349
21350 * xm-iris6.h (alloca): Add prototype argument.
21351
21352 * genpeep.c: Include "tm_p.h" in generated output file.
21353
21354 Thu Sep 23 10:36:55 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
21355
21356 * basic-block.h (find_edge_index): Change parameters.
21357 * flow.c (verify_edge_list): Pass basic_block parameters to
21358 find_edge_index instead of integers.
21359
21360 Thu Sep 23 15:54:12 1999 Nick Clifton <nickc@cygnus.com>
21361
21362 * combine.c (simplify_comparison): Use an unsigned shift to adjust
21363 the constant.
21364
21365 Thu Sep 23 08:46:21 1999 Guy Harris <guy@netapp.com>
21366
21367 * gcc.1: Fix a formatting error.
21368
21369 Wed Sep 22 16:10:21 1999 Martin v. Löwis <loewis@informatik.hu-berlin.de>
21370
21371 * install.texi (Configurations): Remove pyramid. Add fr30, i686,
21372 i786, mn10200, mn10300, pdp11, v850.
21373
21374 Thu Sep 23 07:37:13 1999 Dan Nicolaescu <dann@ics.uci.edu>
21375
21376 * libgcc2.c (num_digits): Add prototype with
21377 __attribute__((const)).
21378 (__terminate): Add prototype.
21379
21380 Thu Sep 23 05:32:06 1999 Richard Henderson <rth@cygnus.com>
21381
21382 * builtins.c, dbxout.c, varasm.c: Include tm_p.h.
21383
21384 * alpha/alpha.c (print_operand): Fix type of `code'.
21385 (alpha_output_filename): Constify.
21386 * alpha/alpha.h: Move all function declarations ...
21387 * alpha/alpha-protos.h: ... here. New file.
21388 * alpha/elf.h (CONST_SECTION_FUNCTION): Prototype the function.
21389 (SECTION_FUNCTION_TEMPLATE): Likewise.
21390
21391 Thu Sep 23 11:15:36 1999 Bernd Schmidt <bernds@cygnus.co.uk>
21392
21393 * expmed.c (do_cmp_and_jump): Pass ccp_jump to can_compare_p.
21394 * expr.c (expand_expr): Likewise.
21395 (do_jump): Likewise.
21396 (do_store_flag): Pass ccp_store_flag to can_compare_p.
21397 * expr.h (enum optab_index): Add cbranch, cmov, cstore optabs and
21398 accessor macros.
21399 (enum can_compare_purpose): New.
21400 (can_compare_p): Adjust prototype.
21401 (prepare_cmp_insn, prepare_operand): Declare.
21402 * genopinit.c (optabs): Add cbranch_optab, cmov_optab, cstore_optab.
21403 * optabs.c (cmp_available_p): Deleted.
21404 (expand_abs): Pass ccp_jump to can_compare_p.
21405 (can_compare_p): New arg PURPOSE. Check for combined optabs.
21406 (prepare_cmp_insn): No longer static. Add arg PURPOSE.
21407 Call can_compare_p rather than cmp_available_p.
21408 (prepare_operand): No longer static.
21409 (emit_cmp_and_jump_insn): Check for and use cbranch patterns.
21410 (emit_cmp_and_jump_insns): Pass ccp_jump to prepare_cmp_insn.
21411 (expand_float): Fix a slightly broken emit_cmp_insn/emit_jump_insn
21412 sequence to use emit_cmp_and_jump_insns.
21413 (init_optabs): Initialize cbranch_optab, cmov_optab, cstore_optab.
21414
21415 Wed Sep 22 17:58:01 1999 Stan Cox <scox@cygnus.com>
21416
21417 * mips.h (GO_IF_LEGITIMATE_ADDRESS): Don't accept large
21418 register offsets; let LEGITIMIZE_ADDRESS load it into a register.
21419 (LEGITIMIZE_ADDRESS): Use plus_constant to avoid
21420 (plus (reg) (const_int 0))
21421 * mips.md (call_internal3c): New pattern for -mips16 -mlong-calls.
21422
21423 Wed Sep 22 17:55:31 1999 David Edelsohn <edelsohn@gnu.org>
21424
21425 * rs6000.c (expand_block_move): DImode loads and stores require
21426 word-aligned displacements. Increment address registers with
21427 adddi3 on 64-bit platform. Use TARGET_POWERPC64 not TARGET_64BIT.
21428
21429 Wed Sep 22 17:35:55 1999 Michael Meissner <meissner@cygnus.com>
21430
21431 * dwarf2out.c (base_type_die): Use the name __unknown__ if there
21432 is no name for the base type, rather than segfault. If we are
21433 writing out a complex integer type, use DW_ATE_lo_user.
21434
21435 * expr.c (emit_move_insn_1): If we are copying a complex that fits
21436 in one word or less (complex char, complex short, or on 64 bit
21437 systems complex float) to/from a hard register, copy it through
21438 memory instead of dying in gen_{real,imag}part. If we have a
21439 short complex type, prevent inlining since it allocates stack
21440 memory.
21441
21442 * tree.c (build_complex_type): If we are writing dwarf2 output,
21443 generate a name for complex integer types.
21444
21445 Wed Sep 22 11:34:08 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
21446
21447 * basic-block.h (add_noreturn_fake_exit_edges): Use correct name.
21448 * flow.c (remove_edge): Remove extra whitespace.
21449 (remove_fake_edges): Fix comment.
21450 (add_noreturn_fake_exit_edges): Use the correct name.
21451
21452 Wed Sep 22 16:12:40 BST 1999 Nathan Sidwell <nathan@acm.org>
21453
21454 * Makefile.in (INTL_MOSTLYCLEAN, INTL_CLEAN): New variables.
21455 (mostlyclean): Depend on INTL_MOSTLYCLEAN.
21456 (clean): Depend on INTL_CLEAN.
21457 (maintainer-clean): Adjust.
21458
21459 Wed Sep 22 10:18:56 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21460
21461 * configure.in (AC_PREREQ): Bump to 2.13.
21462 (AC_C_STRINGIZE): Call this instead of using a custom macro.
21463
21464 * gansidecl.h (HAVE_STRINGIZE): Define, if stage2 gcc && __STDC__.
21465
21466 * system.h (HAVE_STRINGIZE): Test this instead of HAVE_CPP_STRINGIFY.
21467
21468 * acconfig.h (HAVE_CPP_STRINGIFY): Delete.
21469
21470 * alpha/xm-vms.h (HAVE_CPP_STRINGIFY): Delete.
21471 (HAVE_STRINGIZE): Define.
21472
21473 Wed Sep 22 06:25:15 1999 Jim Kingdon <http://developer.redhat.com>
21474
21475 * c-parse.in: save and restore warn_pointer_arith on __extension__
21476 along with pedantic.
21477 (SAVE_WARN_FLAGS, RESTORE_WARN_FLAGS): Added.
21478 Set the type of extension to itype rather than $<itype>1 kludge.
21479 * extend.texi (Alternate Keywords): Adjust documentation.
21480 * c-parse.c, c-parse.y, objc-parse.c, objc-parse.y: Rebuilt.
21481
21482 Wed Sep 22 06:06:57 1999 Jeffrey A Law (law@cygnus.com)
21483
21484 * pa.c, pa.h, pa.md: Support multiple assembler dialects in
21485 most assembler templates.
21486
21487 * pa.c (hppa_legitimize_address): Handle full offsets for PA2.0
21488 FP loads and stores.
21489 (following_call): Always return zero for the PA8000.
21490 * pa.h (GO_IF_LEGITIMATE_ADDRESS): Handle full offsets for PA2.0
21491 FP loads and stores.
21492 (LEGITIMIZE_RELOAD_ADDRESS): Similarly.
21493
21494 * pa.h (BRANCH_COST): Define.
21495
21496 * pa.md (return, return_internal): Use bve for PA2.0.
21497
21498 * pa.md (fused multiply): Add variants which reduce height for the
21499 fused multiply, but which still generate 2 insns.
21500 (fnegabs): Similarly.
21501
21502 * pa.md (subsi3): Turn into an expander. Create two anonymous
21503 patterns. One for PA2.0 one for PA1.x. Use mtsarcm for PA2.0.
21504 * pa.h (EXTRA_CONSTRAINT): Handle 'S'.
21505
21506 * pa.md (floatunssisf2, floatunssidf2): Generate different RTL
21507 for TARGET_PA_20.
21508 (floatunssidf2_pa20, floatunssisf2_pa20): New patterns for PA2.0
21509 code generation.
21510 (floatunsdisf2, floatunsdidf2, fixuns_truncsfsi2): Likewise.
21511 (fixuns_truncdfsi2, fixuns_truncsfdi2, fixuns_truncdfsi2): Likewise.
21512
21513 * regclass.c (init_regs): Add "top_of_stack" as a garbage
21514 collection root.
21515
21516 * flow.c (record_active_eh_regions): Terminate loop after finding
21517 the last insn in the last basic block.
21518
21519 Wed Sep 22 20:25:00 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
21520
21521 * config/c4x/c4x.md: Delete parallel instruction peepholes.
21522
21523 Wed Sep 22 19:59:19 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
21524
21525 * config/c4x/c4x.c (c4x_add_gc_roots): Add tree roots.
21526
21527 Wed Sep 22 19:56:25 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
21528
21529 * config/c4x/c4x.c (c4x_process_after_reload): Rework machdep insn
21530 splitting to not use output template.
21531
21532 Wed Sep 22 19:50:12 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
21533
21534 * config/c4x/c4x.h (EXPAND_BUILTIN_VA_START): Call c4x_va_start.
21535 * config/c4x/c4x.c (c4x_va_start): New function.
21536
21537 Tue Sep 21 18:40:01 1999 Jan Hubicka <hubicka@freesoft.cz>
21538
21539 * genrecog.c (not_both_true): Handle correctly cases when called for
21540 tests with different positions in the insn.
21541
21542 Tue Sep 21 18:29:11 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21543
21544 * machmode.h (HOST_PTR_PRINTF): Move from here ...
21545
21546 * system.h (HOST_PTR_PRINTF): ... to here.
21547
21548 * mips-tfile.c: Don't include machmode.h.
21549
21550 * Makefile.in (MACHMODE_H): New variable. Update to use it.
21551 (mips-tfile.o): Don't depend on machmode.h.
21552
21553 Tue Sep 21 18:27:34 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21554
21555 * haifa-sched.c (sched_analyze): Rename local variable `region' to
21556 avoid conflicts with typedef struct `region' at the top level scope.
21557
21558 Tue Sep 21 14:14:50 1999 Richard Henderson <rth@cygnus.com>
21559
21560 * basic-block.h (basic_block): Add eh_beg, eh_end.
21561 * flow.c (entry_exit_blocks): Update.
21562 (find_basic_blocks): Don't allocate bb_eh_end, or pass it around.
21563 Call new functions.
21564 (find_basic_blocks_1): Don't record eh_list at each bb. Use
21565 lists.c functions to allocate insn lists.
21566 (make_edges): Use eh_beg+eh_end, not the lists. Split out EH
21567 edge creation ...
21568 (make_eh_edge): ... here. New.
21569 (move_stray_eh_region_notes): New.
21570 (record_active_eh_regions): New.
21571 (delete_unreachable_blocks): Split out block merging ...
21572 (try_merge_blocks): ... here. New.
21573 (merge_blocks_move_predecessor_nojumps): Remove edge arg.
21574 Dump debugging data.
21575 (merge_blocks_move_successor_nojumps): Likewise.
21576 (merge_blocks): Use eh_beg+eh_end to validate block movement.
21577
21578 Tue Sep 21 11:15:03 1999 Martin v. Löwis <loewis@informatik.hu-berlin.de>
21579
21580 * extend.texi (Bound member functions): Document unbound pmf
21581 conversion.
21582
21583 Tue Sep 21 14:55:11 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
21584
21585 * flow.c (split_edge): Handle insertion on a fallthrough edge which
21586 has the EXIT_BLOCK as a dest.
21587
21588 Tue Sep 21 14:51:23 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
21589
21590 * flow.c (remove_edge): New function to remove an edge from the
21591 flow graph.
21592 (remove_fake_successors): New function to remove fake successor edges.
21593 (remove_fake_edges): New function to remove all fake edges from the
21594 flow graph.
21595 (add_fake_exit_edges): New function to add fake edges from all blocks
21596 with no successors to the exit block.
21597 * basic-block.h (remove_fake_edges, add_fake_exit_edges): Add
21598 prototypes for new functions.
21599
21600 Tue Sep 21 14:49:53 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
21601
21602 * config/mips/elf64.h (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR):
21603 Use Pmode to determine whether to output .dword or .word.
21604
21605 Tue Sep 21 11:04:34 1999 Alex Samuel <samuel@codesourcery.com>
21606
21607 * tree.c (built_in_filename): New variable.
21608 (BUILT_IN_FILENAME): New macro.
21609 (init_tree_codes): Allocate built_in_filename.
21610 (make_node): Use built_in_filename instead of string constant.
21611
21612 Tue Sep 21 14:13:27 1999 Nick Clifton <nickc@cygnus.com>
21613
21614 * configure.in: Add fr30 target.
21615 * configure: Regenerate.
21616 * config/fr30: New directory.
21617 * config/fr30/crti.asm: New file.
21618 * config/fr30/fr30.c: New file.
21619 * config/fr30/crtn.asm: New file.
21620 * config/fr30/fr30.h: New file.
21621 * config/fr30/fr30.md: New file.
21622 * config/fr30/lib1funcs.asm: New file.
21623 * config/fr30/t-fr30: New file.
21624 * config/fr30/xm-fr30.h: New file.
21625
21626 Tue Sep 21 06:45:31 1999 Jeffrey A Law (law@cygnus.com)
21627
21628 * flow.c (merge_blocks_move_successor_nojumps): Delete the
21629 BARRIER at the end of the successor, not the BARRIER before
21630 the successor.
21631
21632 * pa.c (pa_add_gc_roots): Fix thinko in last change.
21633
21634 Tue Sep 21 05:29:17 1999 Richard Earnshaw (rearnsha@arm.com)
21635
21636 * stmt.c (any_pending_cleanups): Don't crash when
21637 current_function->stmt is unset.
21638
21639 Tue Sep 21 00:59:49 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
21640
21641 * emit-rtl.c (init_emit_once): Initialize const_int_rtx before
21642 other initializations that may use it for relative offsets.
21643
21644 Mon Sep 20 21:43:25 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
21645
21646 * config/i386/sol2.h (PREFERRED_DEBUGGING_TYPE): Use stabs.
21647 (ASM_SPEC): Moved from sol2dbg.h. Added work-around for gas.
21648 * config/i386/sol2dbg.h: Removed.
21649 * config/i386/sol2gas.h: New file, to enable gas work-around.
21650 * configure.in: Use i386/sol2gas.h on Solaris/x86 --with-gas.
21651 Don't use sol2dbg.h.
21652 * configure: Rebuilt.
21653
21654 Mon Sep 20 13:29:41 1999 Mark Mitchell <mark@codesourcery.com>
21655
21656 * invoke.texi (-fthis-is-variable): Remove documentation.
21657
21658 Mon Sep 20 12:59:16 1999 Richard Henderson <rth@cygnus.com>
21659
21660 * basic-block.h (compute_bb_for_insn): Declare.
21661 * flow.c (compute_bb_for_insn): Export. Don't accept the varray
21662 to use; set size of basic_block_for_insn directly.
21663 (find_basic_blocks): Update.
21664
21665 Mon Sep 20 15:11:54 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21666
21667 * flow.c (verify_flow_info): Fix typo, "abort;" -> "abort ();".
21668
21669 Mon Sep 20 14:56:34 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21670
21671 * crtstuff.c (ON_EXIT): Delete empty macro definition.
21672 (__do_global_ctors_aux): Call atexit(), not ON_EXIT().
21673
21674 Mon Sep 20 15:25:35 1999 Nick Clifton <nickc@cygnus.com>
21675
21676 * c-decl.c (c_decode_option): Extend comment.
21677
21678 Mon Sep 20 14:43:37 1999 Nick Clifton <nickc@cygnus.com>
21679
21680 * toplev.c (progname): Make 'const char *'
21681 (flag_print_mem): Move out of main.
21682 (version_flag): Move out of main.
21683 (filename): Move out of main.
21684 (debug_args): Remove g prefix from options.
21685 (documented_lang_options): Remove cpplib specific options.
21686 (display_help): Add g prefix to debug options.
21687 (check_lang_option): Delete this function.
21688 (decode_d_option): New function: Decode -d... option.
21689 (decode_f_option): New function: Decode -f... option.
21690 (decode_W_option): New function: Decode -W... option.
21691 (decode_g_option): New function: Decode -g... option.
21692 (independent_decode_option): New function: Decode a language
21693 independent command line option.
21694 (main): Invoke lang_decode_option and then
21695 independent_decode_option on each command line option in
21696 turn.
21697
21698 Mon Sep 20 05:41:36 1999 Jeffrey A Law (law@cygnus.com)
21699
21700 Revert this change. Gavin's patch to operand_equal_p is a better fix.
21701 * fold-const.c (fold_range_test): Do not try to fold the range
21702 test if the rhs or lhs has side effects.
21703
21704 * basic-block.h (compute_flow_dominators): Declare.
21705
21706 * gcse.c (alloc_code_hoist_mem): New function.
21707 (free_code_hoist_mem, compute_code_hoist_vbeinout): Likewise.
21708 (compute_code_hoist_data, hoist_expr_reaches_here_p): Likewise.
21709 (hoist_code, one_code_hoisting_pass): Likewise.
21710 (gcse_main): If optimizing for size, then hoist expressions
21711 computed in multiple dominated basic blocks.
21712
21713 * gcse.c (invalid_nonnull_info): New function.
21714 (delete_null_pointer_checks): Likewise.
21715 * rtl.h (delete_null_pointer_checks): Declare.
21716 * toplev.c (rest_of_compilation): Call delete_null_pointer_checks.
21717
21718 * flow.c (merge_blocks_move_predecessor_nojumps): New function.
21719 (merge-blocks_move_successor_nojumps): Likewise.
21720 (merge_blocks): Allow merging of some blocks, even if it requires
21721 physical movement of the blocks, but not if it requires new jumps.
21722
21723 * bitmap.c (debug_bitmap_file): Renmaed from bitmap_debug_file.
21724 Callers and prototype changed.
21725 * bitmap.h: Fix debug_bitmap and debug_bitmap_file prototypes.
21726
21727 Mon Sep 20 06:56:32 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
21728
21729 * config/sparc/sol2.h (LINK_SPEC): Avoid the duplication of
21730 -YP when both -p and -pg are present. From i386/sol2.h.
21731
21732 Mon Sep 20 10:49:05 1999 Bernd Schmidt <bernds@cygnus.co.uk>
21733
21734 * Makefile.in (distclean): Delete tm_p.h.
21735 * configure.in: Create a new file, "tm_p.h", from a list in
21736 "tm_p_file". For ix86 systems, set up "tm_p_file" to include
21737 "i386/i386-protos.h".
21738
21739 * alias.c: Include "tm_p.h".
21740 * c-typeck.c: Likewise.
21741 * calls.c: Likewise.
21742 * cse.c: Likewise.
21743 * emit-rtl.c: Likewise.
21744 * explow.c: Likewise.
21745 * expmed.c: Likewise.
21746 * expr.c: Likewise.
21747 * final.c: Likewise.
21748 * flow.c: Likewise.
21749 * fold-const.c: Likewise.
21750 * function.c: Likewise.
21751 * gcse.c: Likewise.
21752 * global.c: Likewise.
21753 * haifa-sched.c: Likewise.
21754 * integrate.c: Likewise.
21755 * jump.c: Likewise.
21756 * local-alloc.c: Likewise.
21757 * loop.c: Likewise.
21758 * optabs.c: Likewise.
21759 * recog.c: Likewise.
21760 * reg-stack.c: Likewise.
21761 * regclass.c: Likewise.
21762 * regmove.c: Likewise.
21763 * reload.c: Likewise.
21764 * reload1.c: Likewise.
21765 * reorg.c: Likewise.
21766 * resource.c: Likewise.
21767 * stmt.c: Likewise.
21768 * stor-layout.c: Likewise.
21769 * toplev.c: Likewise.
21770 * tree.c: Likewise.
21771 * unroll.c: Likewise.
21772 * genattrtab.c (main): Make generated file include "tm_p.h".
21773 * genemit.c (main): Likewise.
21774 * genoutput.c (main): Likewise.
21775 * genrecog.c (main): Likewise.
21776
21777 * i386.h: Delete all prototypes.
21778 * i386.c: Include "tm_p.h".
21779 (ix86_attr_length_default): Call constant_call_address_operand
21780 with correct number of arguments.
21781 * i386-protos.h: New file.
21782 * i386.md (unnamed patterns): Call constant_call_address_operand
21783 with correct number of arguments.
21784 (exception_receiver): Call load_pic_register with correct number
21785 of arguments.
21786
21787 Sun Sep 19 14:18:39 1999 Richard Henderson <rth@cygnus.com>
21788
21789 * c-pragma.c (mark_align_stack): Dereference the void* properly.
21790
21791 Sun Sep 19 09:03:40 1999 Mark Mitchell <mark@codesourcery.com>
21792
21793 * rtl.h (insns_safe_to_move_p): New function.
21794 * loop.c (find_and_verify_loops): Use it.
21795 * rtlanal.c (insns_safe_to_move_p): Define it.
21796
21797 Sun Sep 19 02:54:33 1999 Richard Henderson <rth@cygnus.com>
21798
21799 * c-pragma.c: Include ggc.h.
21800 * Makefile.in (c-pragma.o): Update.
21801
21802 Sat Sep 18 16:01:18 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
21803
21804 * config/i386/sol2.h (CPP_SPEC): Support -[p]threads
21805 (LIB_SPEC): Likewise.
21806 (LINK_SPEC): Do not assert -z text with -shared -mimpure-text.
21807 Reindent -YP/-p/-pg.
21808 Copied from config/sparc/sol2.h.
21809
21810 Sat Sep 18 11:52:43 1999 Richard Henderson <rth@cygnus.com>
21811
21812 * c-pragma.c (mark_align_stack): New.
21813 (init_pragma): New.
21814 * c-pragma.h (init_pragma): Declare it.
21815 * c-lex.c (init_parse): Call it.
21816
21817 Sat Sep 18 15:20:38 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
21818
21819 * configure.in: Pick up thread library on Solaris/x86 just
21820 like on Solaris/sparc.
21821 * configure: Rebuilt.
21822
21823 Sat Sep 18 11:15:58 1999 Alex Samuel <samuel@codesourcery.com>
21824
21825 * rtl.h (global_rtx_index): New enum.
21826 (global_rtl): Change to array of rtx.
21827 (pc_rtx, cc0_rtx): Redefine accordingly.
21828 (cc0_rtx, stack_pointer_rtx, frame_pointer_rtx): Likewise.
21829 (hard_frame_pointer_rtx, arg_pointer_rtx): Likewise.
21830 (virtual_incoming_args_rtx, virtual_stack_vars_rtx): Likewise.
21831 (virtual_outgoing_args_rtx, virtual_cfa): Likewise.
21832 (const_int_rtx): Change to array of rtx.
21833 (const0_rtx, const1_rtx, const2_rtx, constm1_rtx): Redefine
21834 accordingly.
21835 * emit-rtl.c (global_rtl): Change to array of rtx.
21836 (const_int_rtx): Change to aray of rtx.
21837 (gen_rtx_CONST_INT): Redefine accordingly.
21838 (init_emit_once): Allocate and initialize global_rtl. Likewise
21839 for const_int_rtx. Add both as GC roots.
21840 * genattrtab.c (global_rtl): Update declaration.
21841
21842 1999-09-17 Ulrich Drepper <drepper@cygnus.com>
21843
21844 * Makefile (USER_H): Add iso646.h back.
21845
21846 Sat Sep 18 01:07:21 1999 Jeffrey A Law (law@cygnus.com)
21847
21848 * haifa-sched.c (sched_analyze): Use free_INSN_LIST_list instead of
21849 zapping the LOG_LINKS of sched_before_next_call.
21850
21851 * pa.h (INSN_SETS_ARE_DELAYED): Delete.
21852 * pa.c (insn_refs_are_delayed): Renamed from
21853 insn_sets_and_refs_are_delayed.
21854
21855 Fri Sep 17 15:19:01 1999 Mark Mitchell <mark@codesourcery.com>
21856
21857 * functiion.h (struct function): Add x_whole_function_mode_p.
21858 (retrofit_block): Declare.
21859 * function.c (retrofit_block): New function.
21860 (identify_blocks): Add assertions. Allow an incomplete set of
21861 block notes if we're still generating code for the function.
21862 * integrate.c: Include loop.h.
21863 (expand_inline_function): Call find_loop_tree_blocks to map block
21864 notes to blocks when in whole-function mode. Use retrofit_block
21865 to insert new BLOCKs for the inlined function, rather than
21866 insert_block.
21867 * stmt.c (expand_fixup): Likewise. Don't use pushlevel/polevel.
21868 * Makefile.in (integrate.o): Depend on loop.h.
21869
21870 Fri Sep 17 15:11:20 1999 Mark Mitchell <mark@codesourcery.com>
21871
21872 * tree.h (warn_about_unused_variables): Declare.
21873 * stmt.c (warn_about_unused_variables): New function, split out
21874 from ...
21875 (expand_end_bindings): Here.
21876
21877 Fri Sep 17 15:07:37 1999 Mark Mitchell <mark@codesourcery.com>
21878
21879 * stmt.c (preserve_subexpressions_p): Don't crash when
21880 current_function->stmt is unset.
21881
21882 Fri Sep 17 15:03:16 1999 Mark Mitchell <mark@codesourcery.com>
21883
21884 * stmt.c (expand_start_bindings): Allow callers to pass a flag
21885 indicating that no NOTE_INSN_BLOCK_BEG note is required.
21886 (expand_start_target_temps): Use it.
21887 * except.c (expand_eh_region_start_for_decl): Likewise.
21888 * expr.c (expand_expr): Likewise.
21889
21890 Fri Sep 17 15:05:27 1999 Gavin Romig-Koch <gavin@cygnus.com>
21891
21892 * fold-const.c (operand_equal_p): Pay attention to side effects.
21893
21894 Fri Sep 17 11:14:17 1999 Jason Merrill <jason@yorick.cygnus.com>
21895
21896 * libgcc2.c (L_exit): Check for ON_EXIT, not HAVE_ON_EXIT.
21897 * sparc/sunos4.h (HAVE_ON_EXIT): Remove.
21898
21899 * tlink.c (scan_linker_output): Look for keywords before accepting
21900 a mangled name in quotes.
21901
21902 Thu Sep 16 16:47:08 1999 Richard Henderson <rth@cygnus.com>
21903
21904 * alpha/alpha-interix.h (DWARF2_UNWIND_INFO): Define to zero.
21905 * alpha/osf2or3.h (DWARF2_UNWIND_INFO): Likewise.
21906
21907 Thu Sep 16 16:35:41 1999 Richard Henderson <rth@cygnus.com>
21908
21909 * alpha.md: Revert Thu Nov 26 change that came in through the
21910 last gcc2 merge: reinstate (plus (plus ...)) reload patterns.
21911 Avoid earlyclobber when possible.
21912
21913 Thu Sep 16 18:44:48 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21914
21915 * libgcc2.c (__do_global_ctors): Call atexit with one arg.
21916
21917 * sparc/sunos4.h (on_exit): Wrap prototype parameters in PARAMS().
21918 Define HAVE_ON_EXIT.
21919
21920 Thu Sep 16 18:06:35 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21921
21922 * system.h (CTYPE_CONV, TOUPPER, TOLOWER): New macros. Use
21923 CTYPE_CONV in all ctype macros.
21924
21925 * cccp.c (initialize_char_syntax): Use uppercase ctype macro
21926 from system.h.
21927
21928 * cexp.y (initialize_random_junk): Likewise.
21929
21930 * c4x.c (c4x_interrupt_function_p, c4x_handle_pragma): Likewise.
21931
21932 * i370.c (handle_pragma): Likewise.
21933
21934 * i370.h (ASM_OUTPUT_LABELREF, ASM_OUTPUT_ASCII): Likewise.
21935
21936 * v850.c (override_options): Likewise.
21937
21938 * doprint.c (_doprnt): Likewise.
21939
21940 * fixinc/fixincl.c (main, quoted_file_exists, extract_quoted_files):
21941 Likewise.
21942
21943 * fixinc/server.c (load_data): Likewise.
21944
21945 * fold-const.c (real_hex_to_f): Likewise.
21946
21947 * genattr.c (write_upcase, gen_attr): Likewise.
21948
21949 * genattrtab.c (convert_const_symbol_ref, evaluate_eq_attr,
21950 write_upcase): Likewise.
21951
21952 * genemit.c (print_code): Likewise.
21953
21954 * genopinit.c (gen_insn): Likewise.
21955
21956 * genpeep.c (print_code): Likewise.
21957
21958 * genrecog.c (print_code): Likewise.
21959
21960 * optabs.c (init_libfuncs): Likewise.
21961
21962 Thu Sep 16 14:03:32 1999 Mark Mitchell <mark@codesourcery.com>
21963
21964 * haifa-sched.c (sched_analyze): Keep the list of notes organized
21965 in pairs.
21966 (reemit_notes): Likewise.
21967
21968 Thu Sep 16 11:50:52 1999 Alex Samuel <samuel@codesourcery.com>
21969
21970 * ggc.h (ggc_root): Move to ggc-common.c.
21971 (roots): Remove.
21972 (ggc_mark_rtx, ggc_mark_tree): Change to macro.
21973 (ggc_mark_rtvec, ggc_mark_tree_varray): Declare extern.
21974 (ggc_mark_tree_hash_table, ggc_mark_string, ggc_mark): Likewise.
21975 (ggc_mark_roots, ggc_mark_rtx_children, ggc_mark_tree_children): New.
21976 * ggc-common.c (ggc_root): Move from ggc.h.
21977 (roots): Declare, static.
21978 (ggc_mark_rtx, ggc_mark_tree): Renamed to...
21979 (ggc_mark_rtx_children, ggc_mark_tree_children): Don't check for
21980 null or check/set mark bit.
21981 (ggc_mark_roots): New.
21982 * ggc-simple.c (ggc_collect): Call ggc_mark_roots.
21983
21984 Thu Sep 16 11:37:32 1999 Richard Henderson <rth@cygnus.com>
21985
21986 * m32r.c: Include toplev.h.
21987 (*): Add ATTRIBUTE_UNUSED as needed to arguments.
21988 (gen_compare): Rename swap_p to must_swap to match uses.
21989 Add default abort case.
21990 (m32r_output_function_epilogue): Remove unused variables.
21991 (m32r_print_operand): Use HOST_WIDE_INT_PRINT_HEX.
21992 * m32r.h (PROTO, STDIO_PROTO): Rename XPROTO; unconditionally
21993 define to empty parameter list. Update all uses.
21994 (predicate decls): Use enum machine_mode not int.
21995 * m32r.md (movsi): Call abort, not fatal_insn.
21996 (zero_branch_insn, rev_zero_branch_insn): Add default abort case.
21997
21998 1999-09-14 Andrew Haley <aph@cygnus.com>
21999
22000 * config/mips/mips.md (movsi_usw): if operand 1 is const_int 0,
22001 use $0 instead of 0.
22002
22003 Thu Sep 16 10:53:36 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22004
22005 * reload1.c (order_regs_for_reload): Move hard_reg_n_uses
22006 computation out of loop over hard regs.
22007
22008 Wed Sep 15 21:37:06 1999 Mark Mitchell <mark@codesourcery.com>
22009
22010 * function.c (identify_blocks): Don't shadow a variable in an
22011 outer scope.
22012 * integrate.c (integrate_decl_tree): Don't use pushlevel,
22013 pushdecl, or poplevel to build up the new BLOCK tree.
22014 (expand_inline_function): Likewise.
22015 (integrate_parm_decls): Likewise.
22016
22017 Wed Sep 15 21:20:38 1999 Mark Mitchell <mark@codesourcery.com>
22018
22019 * c-typeck.c (qualify_type): Merge qualifiers from both types.
22020
22021 1999-09-15 Brad Lucier <lucier@math.purdue.edu>
22022
22023 * toplev.c: Allow -f[no-]math-errno to set (clear) flag_errno_math
22024 * invoke.texi: Document this change.
22025
22026 Wed Sep 15 17:56:00 1999 Richard Henderson <rth@cygnus.com>
22027
22028 * emit-rtl.c (free_emit_status): Don't check DECL_DEFER_OUTPUT.
22029 Free the struct.
22030 (mark_emit_status): Renamed from mark_emit_state.
22031 * except.c (mark_eh_status): Renamed from mark_eh_state.
22032 Check not null before marking.
22033 (free_eh_status): New.
22034 * expr.c (mark_expr_status, free_expr_status): New.
22035 * function.c (free_machine_status): New.
22036 (free_after_parsing): New.
22037 (free_after_compilation): Move bits to free_after_parsing; call
22038 free_eh_status, free_expr_status; zero the marked members of the
22039 function state.
22040 (prepare_function_start): No can_garbage_collect.
22041 Call init_eh_for_function.
22042 (expand_dummy_function_end): Free up current_function state.
22043 (mark_function_status): Renamed from mark_function_state.
22044 (mark_function_chain): No can_garbage_collect. Call mark_expr_status.
22045 * function.h (struct function): No can_garbage_collect.
22046 (free_machine_status, free_after_parsing): Declare.
22047 (free_eh_status, free_expr_status): Declare.
22048 * ggc.h (mark_expr_status): Declare.
22049 * stmt.c (free_stmt_status): Free the struct.
22050 (mark_stmt_status): Renamed from mark_stmt_state.
22051 (init_stmt): Don't call init_eh.
22052 (init_stmt_for_function): Don't call init_eh_for_function.
22053 * toplev.c (compile_file): Call init_eh.
22054 (rest_of_compilation): Free basic block info before ggc_collect.
22055 Call free_after_parsing; conditionally call free_after_compilation.
22056 * varasm.c (mark_varasm_status): Renamed from mark_varasm_state.
22057 Check not null before marking.
22058 (free_varasm_status): Don't check DECL_DEFER_OUTPUT. Free the struct.
22059
22060 Wed Sep 15 17:53:16 1999 Richard Henderson <rth@cygnus.com>
22061
22062 * c-lex.c (yylex): Initialize warn.
22063
22064 Wed Sep 15 18:35:38 1999 Jeffrey A Law (law@cygnus.com)
22065
22066 * pa.c (emit_move_sequence): Properly set the mode of the scratch
22067 register when performing secondary reloads for the SAR register.
22068
22069 Wed Sep 15 15:51:52 1999 Mark Mitchell <mark@codesourcery.com>
22070
22071 * rtl.h (NOTE_BLOCK_NUMBER): Replace with ...
22072 (NOTE_BLOCK): New macro.
22073 (NOTE_BLOCK_LIVE_RANGE_BLOCK): Remove.
22074 * function.h (identify_blocks): Change prototype.
22075 * function.c (identify_blocks): Simplify.
22076 (reorder_blocks): Likewise.
22077 * ggc-common.c (ggc_mark_rtx): Mark the BLOCK associated with a
22078 NOTE_INSN_BLOCK_{BEG,END}.
22079 * haifa-sched.c (sched_analyze): Don't put NOTE_BLOCK_NUMBER on
22080 the list of saved notes if the note isn't a
22081 NOTE_INSN_BLOCK_{BEG,END}.
22082 (move_insn1): Use NOTE_EH_HANDLER in comment, rather than
22083 NOTE_BLOCK_NUMBER.
22084 (reemit_notes): Adjust recreation of notes to reflect new saved
22085 note structure.
22086 * print-rtl.c (print_rtx): Print the address of the BLOCK when
22087 printing a block note.
22088 * stmt.c (block_vector): Remove.
22089 (find_loop_tree_blocks): Simplify.
22090 (unroll_block_trees): Likewise.
22091 * tree.h (reorder_block): Change prototype.
22092
22093 Wed Sep 15 14:39:35 1999 Jason Merrill <jason@yorick.cygnus.com>
22094
22095 * gbl-ctors.h: Lose HAVE_ATEXIT. Don't define ON_EXIT.
22096 * libgcc2.c: Lose obsolete defn of WEAK_ALIAS.
22097 (__bb_init_func, __bb_init_prg): Use atexit instead of ON_EXIT.
22098 (__do_global_dtors): Likewise. Don't mess with _exit_dummy_decl.
22099 (atexit, exit): Simplify.
22100 * tm.texi: Document NEED_ATEXIT and ON_EXIT. Remove HAVE_ATEXIT.
22101 * config/lots: Remove defns of HAVE_ATEXIT.
22102
22103 Wed Sep 15 10:25:12 1999 Mark Mitchell <mark@codesourcery.com>
22104
22105 * calls.c (precompute_arguments): Fix typo in comment.
22106 * expr.c (preexpand_calls): Don't preexpand the cleanup in a
22107 TARGET_EXPR.
22108
22109 Wed Sep 15 09:59:59 1999 Mark Mitchell <mark@codesourcery.com>
22110
22111 * dsp16xx.c (override_options): Fix typos in GC root registration.
22112
22113 Wed Sep 15 15:23:28 1999 Philip Blundell <pb@nexus.co.uk>
22114
22115 * config/arm/linux-elf.h (MAKE_DECL_ONE_ONLY): Copy definition
22116 from config/svr4.h.
22117 (UNIQUE_SECTION_P, UNIQUE_SECTION): Likewise.
22118 (FUNCTION_PROFILER): Redefine appropriately for Linux.
22119 (CC1_SPEC): Likewise.
22120
22121 Wed Sep 15 10:09:48 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22122
22123 * genattr.c (main): Add extern prototype. Call return, not exit.
22124 * genattrtab.c (main): Likewise.
22125 * gencheck.c (main): Likewise.
22126 * gencodes.c (main): Likewise.
22127 * genconfig.c (main): Likewise.
22128 * genemit.c (main): Likewise.
22129 * genextract.c (main): Likewise.
22130 * genflags.c (main): Likewise.
22131 * gengenrtl.c (main): Likewise.
22132 * genopinit.c (main): Likewise.
22133 * genoutput.c (main): Likewise.
22134 * genpeep.c (main): Likewise.
22135 * genrecog.c (main): Likewise.
22136
22137 * genattr.c (get_insn_name): Mark parameter with ATTRIBUTE_UNUSED.
22138 * genattrtab.c (get_insn_name): Likewise.
22139 * gencodes.c (get_insn_name): Likewise.
22140 * genconfig.c (get_insn_name): Likewise.
22141 * genemit.c (get_insn_name): Likewise.
22142 * genextract.c (get_insn_name): Likewise.
22143 * genflags.c (get_insn_name): Likewise.
22144 * genopinit.c (get_insn_name): Likewise.
22145 * genpeep.c (get_insn_name): Likewise.
22146
22147 * gencheck.c (usage): Add static prototype.
22148 * genextract.c (print_path): Constify a char*.
22149 * genopinit.c (optabs): Likewise.
22150 * genoutput.c (operand_data, data, output_predicate_decls,
22151 compare_operands): Likewise.
22152 * genrecog.c (write_tree): Add default case in switch.
22153
22154 Wed Sep 15 09:59:16 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22155
22156 * rtl.h (get_insn_name, print_rtl_with_bb): Add prototypes.
22157
22158 * print-rtl.c (get_insn_name): Remove prototype.
22159
22160 * toplev.h (progname): Declare const.
22161
22162 * toplev.c (init_decl_processing, init_obstacks, init_tree_codes,
22163 init_regs, init_optabs, init_stmt, init_reg_sets, dump_flow_info,
22164 dump_sched_info, dump_local_alloc, regset_release_memory,
22165 print_rtl, print_rtl_with_bb, rest_of_decl_compilation,
22166 error_with_file_and_line, error_with_decl, error_for_asm, error,
22167 fatal, warning_with_file_and_line, warning_with_decl, warning,
22168 pedwarn, pedwarn_with_decl, pedwarn_with_file_and_line, sorry):
22169 Remove redundant prototypes.
22170
22171 (notice, check_lang_option, report_file_and_line, vnotice,
22172 mark_file_stack): Add static prototype.
22173 (set_fatal_function): Add prototype.
22174 (vnotice, report_file_and_line, set_fatal_function,
22175 check_lang_option): Constify a char*.
22176 (main): Prototype. Call return, not exit.
22177
22178 Wed Sep 15 09:50:18 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22179
22180 * aclocal.m4 (AC_GCC_C_LONG_DOUBLE): New macro.
22181
22182 * configure.in (AC_GCC_C_LONG_DOUBLE): Call it.
22183
22184 * gansidecl.h (HAVE_LONG_DOUBLE): Define if gcc for stage2.
22185
22186 * ggc-simple.c (HAVE_LONG_DOUBLE): Test before using long double.
22187
22188 Wed Sep 15 11:04:43 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22189
22190 * function.c (assign_parms): Delete arg SECOND_TIME. Don't test it,
22191 behave as if it's zero in all cases.
22192 (expand_function_start): Adjust call to assign_parms.
22193 * tree.h (assign_parms): Adjust prototype.
22194 * objc/objc-act.c (hack_method_prototype): Adjust call to
22195 assign_parms.
22196
22197 Tue Sep 14 21:47:06 1999 Jeffrey A Law (law@cygnus.com)
22198
22199 * cse.c (FIXED_BASE_PLUS_P): Do not consider referneces to
22200 arg_pointer_rtx fixed if the argument pointer register is
22201 not fixed.
22202 (NONZERO_BASE_PLUS_P): Likewise.
22203
22204 Tue Sep 14 20:26:02 1999 Richard Henderson <rth@cygnus.com>
22205
22206 * rtl.def (match_insn, match_insn2): Remove match_insn; rename
22207 match_insn2 to match_insn.
22208 * genrecog.c (add_to_sequence): Rename MATCH_INSN2.
22209
22210 Tue Sep 14 20:10:29 1999 Richard Henderson <rth@cygnus.com>
22211
22212 * Makefile.in (USER_H): Remove va-foo.h.
22213
22214 * ginclude/{va-alpha.h,va-arc.h,va-c4x.h,va-clipper.h,va-h8300.h,
22215 va-i860.h,va-i960.h,va-m32r.h,va-m88k.h,va-mips.h,va-mn10200.h,
22216 va-mn10300.h,va-pa.h,va-ppc.h,va-pyr.h,va-sh.h,va-sparc.h,
22217 va-spur.h,va-v850.h}: Remove.
22218
22219 Tue Sep 14 19:43:16 1999 Richard Henderson <rth@cygnus.com>
22220
22221 * sparc/sparc.md (eligible_for_return_delay): New attribute.
22222 (in_return_delay): Use it instead of match_insn.
22223
22224 Tue Sep 14 23:05:37 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
22225
22226 * config/alpha/va_list.h (va-alpha.h): Do not include.
22227 (__gnuc_va_list): Typedef as in varargs.h.
22228
22229 Tue Sep 14 18:14:03 1999 Richard Henderson <rth@cygnus.com>
22230
22231 * ggc-common.c (ggc_mark_tree): Mark DECL_SOURCE_FILE and
22232 DECL_LIVE_RANGE_RTL.
22233
22234 Tue Sep 14 16:47:08 1999 Mark Mitchell <mark@codesourcery.com>
22235
22236 * except.c (expand_eh_region_start_for_decl): Use NOTE_EH_HANDLER,
22237 not NOTE_BLOCK_NUMBER.
22238 (expand_eh_region_end): Likewise.
22239 (find_exception_handler_labels): Likewise.
22240 (scan_region): Likewise.
22241 (exception_optimize): Likewise.
22242 (update_rethrow_references): Likewise.
22243 (set_insn_eh_region): Likewise.
22244 * final.c (final_scan_insn): Likewise.
22245 * flow.c (make_edges): Likewise.
22246 * integrate.c (expand_inline_function): Likewise.
22247 * print-rtl.c (print_rtx): Likewise.
22248
22249 Tue Sep 14 16:30:16 1999 Richard Henderson <rth@cygnus.com>
22250
22251 * ginclude/stdarg.h, ginclude/varargs.h: Implement in
22252 terms of builtin functions and types.
22253
22254 * mips.c (mips_build_va_list): New.
22255 (mips_va_start, mips_va_arg): New.
22256 * mips.h (BUILD_VA_LIST_TYPE): New.
22257 (EXPAND_BUILTIN_VA_START, EXPAND_BUILTIN_VA_ARG): New.
22258
22259 * sh.c (sh_builtin_saveregs): Use get_varargs_alias_set.
22260 (sh_build_va_list, sh_va_start, sh_va_arg): New.
22261 * sh.h (BUILD_VA_LIST_TYPE): New.
22262 (EXPAND_BUILTIN_VA_START, EXPAND_BUILTIN_VA_ARG): New.
22263
22264 Tue Sep 14 16:20:24 1999 Richard Henderson <rth@cygnus.com>
22265
22266 * recog.h (struct recog_data): Make dup_num, operand_address_p,
22267 n_operands, n_dups, n_alternatives `char' instead of `unsigned char'.
22268 (struct insn_data): Likewise with n_operands, n_dups,
22269 n_alternatives, output_format.
22270 * regclass.c (scan_one_insn): Cast n_operands to int before
22271 arithmetic inside comparison.
22272
22273 Tue Sep 14 15:13:36 1999 Richard Henderson <rth@cygnus.com>
22274
22275 * toplev.c (compile_function): Unconditionally emit nop.
22276
22277 Tue Sep 14 14:41:47 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22278
22279 * haifa-sched.c (actual_hazard): Move declaration of variable
22280 `this_cost' into the scope where it is used.
22281
22282 Tue Sep 14 14:14:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22283
22284 * c-pragma.c (handle_pragma_token): Wrap variables `name' and
22285 `value' in HANDLE_PRAGMA_WEAK. Wrap variable `align' in
22286 HANDLE_PRAGMA_PACK||HANDLE_PRAGMA_PACK_PUSH_POP.
22287
22288 * genrecog.c (make_insn_sequence): Call memset, not bzero.
22289
22290 * jump.c (find_insert_position): Don't declare or define unless
22291 !HAVE_conditional_arithmetic.
22292 (returnjump_p_1, delete_prior_computation): Add static prototypes.
22293
22294 * mips-tdump.c (fatal, fancy_abort, main): Add extern prototypes.
22295
22296 * recog.c (offsettable_address_p): Prototype function pointer.
22297 (preprocess_constraints): Call memset, not bzero.
22298
22299 * tree.c (tree_node_kind_names): Constify a char*. Make static.
22300 (gcc_obstack_init): Don't declare.
22301 (fix_sizetype): Add static prototype.
22302 (gcc_obstack_init): Use prototype casts in call to _obstack_begin.
22303 (tree_cons): Call memset, not bzero.
22304
22305 * varasm.c (remove_from_pending_weak_list): Wrap declaration and
22306 definition in macro ASM_WEAKEN_LABEL.
22307 (mark_const_hash_entry): Add static prototype.
22308
22309 Tue Sep 14 12:22:50 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22310
22311 * c-lex.c (handle_generic_pragma): Remove unused variable `c'.
22312
22313 * unroll.c (find_common_reg_term, subtract_reg_term,
22314 loop_find_equiv_value): Add static prototypes.
22315 (unroll_loop): Wrap variable `prev' in macro HAVE_cc0.
22316 (copy_loop_body): Remove unreachable break statement.
22317
22318 * sparc.c (sparc_va_arg): Remove unused variable `tmp'.
22319
22320 * sparc.h (sparc_va_start, sparc_va_arg): Add extern prototypes.
22321
22322 Tue Sep 14 15:28:00 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22323
22324 Undo some changes from the gcc2 merge:
22325 * rtl.def (CONSTANT_P_RTX): Fix the comment for this rtx code.
22326 * emit-rtl.c (gen_rtx_REG): Don't test special reg rtx's for null
22327 pointers.
22328
22329 Undo this change:
22330 Sat Oct 3 07:20:28 1998 Stephen L Moshier <moshier@world.std.com>
22331 * emit-rtl.c (gen_lowpart_common): Disable optimization of
22332 initialized float-int union if the value is a NaN.
22333
22334 Tue Sep 14 04:03:44 1999 Mumit Khan <khan@xraylith.wisc.edu>
22335
22336 * gthr-win32.h: New file.
22337
22338 * i386/winnt.c (i386_pe_valid_decl_attribute_p): Recognize
22339 shared as a valid attribute.
22340 * i386/cygwin.h (ASM_OUTPUT_SECTION): Handle shared attribute.
22341 * extend.texi: Document `shared' variable attribute.
22342
22343 Tue Sep 14 04:01:46 1999 Loren Rittle <ljrittle@acm.org>
22344
22345 * configure.in: Handle --enable-threads on FreeBSD.
22346 * configure: Rebuit.
22347
22348 Tue Sep 14 03:58:44 1999 Andreas Jaeger <aj@arthur.rhein-neckar.de>
22349
22350 * configure.in: Add crtbeginS.o, crtendS.o for mips-linux; add
22351 thread support.
22352 * configure: Rebuilt.
22353
22354 Tue Sep 14 03:47:23 1999 Joel Sherrill <joel@OARcorp.com>
22355 Charles-Antoine Gauthier <charles.gauthier@iit.nrc.ca>
22356 Rosimildo DaSilva <rdasilva@connecttel.com>
22357
22358 * configure.in (m68k-*-rtemscoff*): Added.
22359 * configure.in (mips64orion-*-rtems*): Converted to ELF.
22360 * configure.in (sparc-*-rtemsaout*): Added as alias for old
22361 sparc-rtems configuration.
22362 * configure.in (sparc-*-rtemself*): Added.
22363 * configure.in (sparc-*-rtems*): Now ELF not a.out.
22364 * config/i386/rtems.h: Added comment.
22365 * config/sparc/rtemself.h: New file.
22366
22367 * configure.in (m68k-rtemself): Added.
22368 * config/elfos.h: Added ifndef wrapper for DWARF2_DEBUGGING_INFO
22369 and DWARF_DEBUGGING_INFO.
22370 * config/m68k/crti.s: New file.
22371 * config/m68k/crtn.s: New file.
22372 * config/m68k/t-crtstuff: New file.
22373 * config/m68k/rtemself.h: New file.
22374
22375 * configure.in (i[[34567]]86-*-rtemself*): Now uses crtstuff for
22376 global ctor/dtor and C++ exception handling.
22377 * config/i386/rtemself.h: Now uses crtstuff (crti.o + crtbegin.o)
22378 for STARTFILE_SPEC and crtstuff (crtend.o + crtn.o) for
22379 ENDFILE_SPEC.
22380 * config/i386/t-rtems-i386: New File.
22381
22382 Tue Sep 14 09:47:41 1999 Andreas Schwab <schwab@suse.de>
22383
22384 * stmt.c (expand_end_case): Return right away if the case stack is
22385 empty.
22386
22387 Tue Sep 14 01:47:19 1999 Jeffrey A Law (law@cygnus.com)
22388
22389 * Makefile.in (version.c): Remove rule incorrectly brought in from
22390 the gcc2 merge.
22391
22392 Tue Sep 14 01:42:27 1999 Marc Espie <espie@cvs.openbsd.org>
22393
22394 * Makefile.in: Prepend $(SHELL) to move-if-change calls.
22395 * msdos/top.sed: Take into account a prepended $(SHELL) to
22396 move-if-change.
22397 * winnt/config-nt.sed: Likewise. Kill bogus substitution.
22398
22399 * objc/Make-lang.in: Prepend $(SHELL) to move-if-change calls.
22400
22401 Tue Sep 14 01:38:52 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
22402
22403 * regmove.c (fixup_match_1): Don't change an unchanging register.
22404 (stable_but_for_p): Renamed to:
22405 (stable_and_no_regs_but_for_p). Reject unchanging registers too.
22406 Changed all callers.
22407
22408 Tue Sep 14 01:33:15 1999 Andreas Schwab <schwab@suse.de>
22409
22410 * loop.c (strength_reduce): Don't call reg_used_between_p if the
22411 insn from BL2 is after the insn from BL.
22412
22413 Mon Sep 13 21:06:01 1999 Richard Henderson <rth@cygnus.com>
22414
22415 * recog.h (INSN_OUTPUT_FORMAT_*): New.
22416 (struct insn_data): Merge `template' and `outfun' into `output'.
22417 Add `output_format'.
22418 * genoutput.c (INSN_OUTPUT_FORMAT_*): New.
22419 (struct data): Remove `outfun'; add `output_format'.
22420 (name_for_index): Remove declaration.
22421 (output_insn_data): Handle output formats.
22422 (process_template): Emit the bare array for @.
22423 (gen_expand, gen_split): Set output_format to NONE.
22424 * output.h (get_insn_template): Declare.
22425 * final.c (get_insn_template): New.
22426 (final_scan_insn): Use it.
22427 * toplev.c (compile_file): Likewise.
22428
22429 * c4x/c4x.c (c4x_process_after_reload): Likewise.
22430 * i860/i860.c (output_delayed_branch): Likewise.
22431 (output_delay_insn): Likewise.
22432
22433 1999-09-13 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
22434
22435 * rtl.c (obstack_alloc_rtx): Removed.
22436
22437 1999-09-13 17:03 -0700 Zack Weinberg <zack@bitmover.com>
22438
22439 * config/gmicro/gmicro.md: Disable move DF->DI anonymous pattern.
22440
22441 Mon Sep 13 15:21:46 1999 Richard Henderson <rth@cygnus.com>
22442
22443 * i386.c (call_insn_operand): Reject const_int.
22444 (expander_call_insn_operand): Use call_insn_operand.
22445
22446 Mon Sep 13 17:44:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22447
22448 * gcc.c (getrusage): Wrap prototype arguments in PROTO().
22449
22450 1999-09-13 12:18 -0700 Zack Weinberg <zack@bitmover.com>
22451
22452 * config/i370/i370.md (mulsi, divsi, modsi anonymous insns):
22453 Use DImode operation.
22454
22455 1999-09-13 12:13 -0700 Zack Weinberg <zack@bitmover.com>
22456
22457 * gcc.c: Include sys/resource.h.
22458 (report_times): New flag.
22459 (execute): If report_times is set, calculate and report the
22460 CPU time consumed by each subprocess.
22461
22462 (rus, prus): New globals.
22463 (option_map): Add --time.
22464 (display_help): Document -time.
22465 (process_command): Set report_times if -time is given.
22466 Turn off -pipe if -time is given.
22467
22468 * invoke.texi: Document new option -time.
22469
22470 * configure.in: Check for getrusage. Check if we have to
22471 prototype getrusage.
22472 * acconfig.h: Add NEED_DECLARATION_GETRUSAGE.
22473 * configure: Regenerate.
22474 * config.in: Regenerate.
22475
22476 Mon Sep 13 12:57:06 1999 Dave Brolley <brolley@cygnus.com>
22477
22478 * cppinit.c (append_include_chain): Initialize 'next' and 'alloc'
22479 fields.
22480
22481 Mon Sep 13 10:01:33 1999 Nick Clifton <nickc@cygnus.com>
22482
22483 * config/fp-bit.c: Define L_thenan_sf or L_thenan_df (as
22484 appropriate) if FINE_GRAINED_LIBRARIES is not defined.
22485 (nan): Return _thenan_sf or _thenan_df as appropriate.
22486 (L_thenan_sf): Define _thenan_sf.
22487 (L_thenan_df): Define _thenan_df.
22488
22489 * Makefile.in (FPBIT_FUNCS): Add _thenan_sf.
22490 (DPBIT_FUNCS): Add _thenan_df.
22491
22492 Mon Sep 13 09:38:53 1999 Andreas Schwab <schwab@suse.de>
22493
22494 * tree.c (fix_sizetype): Exchange the types for TYPE_SIZE and
22495 TYPE_SIZE_UNIT.
22496
22497 Sun Sep 12 23:28:20 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22498
22499 * Makefile.in (gcc.o, gccspec.o, cppspec.o): Depend on gcc.h.
22500
22501 * gcc.h: New file.
22502 (lang_specific_driver): Don't take a function pointer parameter.
22503 All callers changed.
22504
22505 * gcc.c: Include gcc.h.
22506 (do_spec, fancy_abort,lang_specific_driver,lang_specific_pre_link,
22507 lang_specific_extra_outfiles, fatal): Don't declare.
22508 (multilib_defaults_raw): Constify.
22509 (read_specs): Call memset, rather than bzero.
22510 (main): Call return, not exit.
22511 (lookup_compiler): Call memcpy, not bcopy.
22512 (fatal): Make extern.
22513
22514 * cppspec.c: Include gcc.h.
22515 (lang_specific_driver): Initialize variable `quote'. Constify a
22516 char*. All calls to the function pointer parameter now
22517 explicitly call `fatal'.
22518
22519 * gccspec.c (lang_specific_driver): Include gcc.h.
22520
22521 Sun Sep 12 19:52:10 1999 Richard Earnshaw <rearnsha@arm.com>
22522
22523 * arm.c (note_invalid_constants): Use recog_data.operand_type
22524 for recog_op_type.
22525
22526 Sun Sep 12 15:53:20 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22527
22528 * tree.h (build_common_tree_nodes, build_common_tree_nodes_2):
22529 Declare.
22530
22531 * reload.h (reload_in, reload_out, reload_in_reg, reload_out_reg,
22532 reload_reg_class, reload_inmode, reload_outmode, reload_optional,
22533 reload_nongroup, reload_inc, reload_opnum, reload_secondary_p,
22534 reload_secondary_in_reload, reload_secondary_out_reload,
22535 reload_secondary_in_icode, reload_secondary_out_icode,
22536 reload_reg_rtx, reload_when_needed): Delete declarations.
22537 (struct reload): New structure.
22538 (rld): Declare new array.
22539 * reload.c (reload_in, reload_out, reload_in_reg, reload_out_reg,
22540 reload_reg_class, reload_inmode, reload_outmode, reload_optional,
22541 reload_nongroup, reload_inc, reload_opnum, reload_secondary_p,
22542 reload_secondary_in_reload, reload_secondary_out_reload,
22543 reload_secondary_in_icode, reload_secondary_out_icode,
22544 reload_reg_rtx, reload_when_needed): Delete definitions.
22545 (rld): New array.
22546 (whole file): Replace uses of the deleted arrays with uses of rld.
22547 * reload1.c (whole file): Replace uses of the deleted arrays with
22548 uses of rld.
22549 (choose_reload_regs): Copy in/out of save_reload_reg_rtx with
22550 explicit loops, not with bcopy.
22551
22552 Sun Sep 12 05:00:24 1999 Richard Henderson <rth@cygnus.com>
22553
22554 * recog.h (insn_template, insn_outfun, insn_n_operands, insn_n_dups,
22555 insn_n_alternatives, insn_operand_constraint, insn_operand_address_p,
22556 insn_operand_mode, insn_operand_strict_low, insn_operand_predicate,
22557 insn_name): Delete and consolidate into new structures.
22558 (insn_operand_predicate_fn): New.
22559 (insn_output_fn): New.
22560 (insn_gen_fn): New.
22561 (struct insn_operand_data): New.
22562 (struct insn_data): New.
22563 (insn_data): New.
22564 (OUT_FCN): Update for insn_data change.
22565 * builtins.c (expand_builtin_strlen): Likewise.
22566 (expand_builtin_memcmp): Likewise.
22567 * combine.c (make_extraction, simplify_comparison): Likewise.
22568 * cse.c (canon_reg, cse_insn): Likewise.
22569 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
22570 * expmed.c (store_bit_field, extract_bit_field): Likewise.
22571 (emit_store_flag): Likewise.
22572 * expr.c (convert_move, emit_block_move): Likewise.
22573 (clear_storage, emit_push_insn, expand_increment): Likewise.
22574 (do_store_flag): Likewise.
22575 * expr.h (GEN_FCN): Likewise.
22576 (insn_gen_function): Die.
22577 * final.c (final_scan_insn): Update for insn_data change.
22578 (output_asm_name): Likewise.
22579 * function.c (fixup_var_refs_1): Likewise.
22580 * loop.c (check_dbra_loop): Likewise.
22581 * optabs.c (expand_binop, expand_twoval_binop): Likewise.
22582 (expand_unop, expand_complex_abs, emit_unop_insn): Likewise.
22583 (prepare_cmp_insn, prepare_operand, emit_indirect_jump): Likewise.
22584 (emit_conditional_move, gen_add2_insn, gen_sub2_insn): Likewise.
22585 * recog.c (validate_replace_rtx_1, extract_insn): Likewise.
22586 * regmove.c (gen_add3_insn): Likewise.
22587 * reload.c (push_secondary_reload, combine_reloads): Likewise.
22588 (find_reloads, find_reloads_address_1): Likewise.
22589 (debug_reload_to_stream): Likewise.
22590 * reload1.c (emit_reload_insns, gen_reload): Likewise.
22591 * stmt.c (expand_end_case): Likewise.
22592 * toplev.c (compile_file): Likewise.
22593
22594 * c4x/c4x.c (c4x_process_after_reload): Likewise.
22595 * i860/i860.c (output_delayed_branch, output_delay_insn): Likewise.
22596
22597 * print-rtl.c (insn_name_ptr): Remove declaration.
22598 (get_insn_name): Declare.
22599 (print_rtx): Use it.
22600 * genoutput.c (insn_name_ptr): Remove.
22601 (next_operand_number): New.
22602 (struct operand_data): New.
22603 (null_operand, odata, odata_end): New.
22604 (struct data): Use struct operand_data.
22605 (idata, idata_end): Renamed from insn_data and end_of_insn_data.
22606 (get_insn_name): Renamed from name_for_index.
22607 (output_prologue): Define NO_MD_PROTOTYPES.
22608 (output_predicate_decls): Break out from output_epilogue.
22609 Iterate over the operands list.
22610 (output_operand_data): Break out from output_epilogue. Emit
22611 just the operands list.
22612 (output_insn_data): Break out from output_epilogue. Emit just
22613 the insn data.
22614 (output_epilogue): Remove.
22615 (output_get_insn_name): New.
22616 (constraints, op_n_alternatives, predicates, address_p): Die.
22617 (modes, strict_low, seen): Die.
22618 (scan_operands): Take new param `d' instead of writing to
22619 seven global variables.
22620 (compare_operands): New.
22621 (place_operands): New.
22622 (validate_insn_alternatives): Update for struct data change.
22623 (gen_insn): Don't zero or copy 7 global arrays. Update for
22624 scan_operands; call place_operands.
22625 (gen_peephole, gen_expand, gen_split): Likewise.
22626 (main): Update for new output routines.
22627
22628 * genattr.c (insn_name_ptr): Remove.
22629 (get_insn_name): New function.
22630 * genattrtab.c, gencodes.c, genconfig.c, genemit.c: Likewise.
22631 * genextract.c, genflags.c, genopinit.c, genpeep.c: Likewise.
22632 * genrecog.c: Likewise.
22633
22634 * alpha.md (adddi3): Make `pattern' array static.
22635
22636 Sun Sep 12 22:05:21 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
22637
22638 * config/c4x/c4x.h (c4x_rpts_cycles_string,
22639 c4x_cpu_version_string): Constify char *.
22640 * config/c4x/c4x.c (c4x_rpts_cycles_string,
22641 c4x_cpu_version_string): Likewise.
22642
22643 Sat Sep 11 23:28:33 1999 Richard Henderson <rth@cygnus.com>
22644
22645 * tree.c (save_tree_status): Revert 10 Sep change.
22646 (restore_tree_status): Likewise. Call obstack_free with NULL
22647 before freeing the obstack proper.
22648
22649 Sat Sep 11 23:23:46 1999 Richard Henderson <rth@cygnus.com>
22650
22651 * cse.c (cse_main): If gc'ing, collect around cse_basic_block.
22652
22653 * ggc-simple.c (ggc_pop_context): Fold outstanding bytes into
22654 surrounding context.
22655
22656 Sat Sep 11 19:52:43 1999 Mark Mitchell <mark@codesourcery.com>
22657
22658 * tree.c (type_hash_canon): Put all types in the hash-table, when
22659 GC'ing.
22660
22661 Sat Sep 11 18:37:04 1999 Richard Henderson <rth@cygnus.com>
22662
22663 * recog.h (struct recog_data, recog_data): New.
22664 (recog_foo variables): Kill.
22665 * recog.c (recog_operand, recog_operand_loc): Kill.
22666 (recog_dup_loc, recog_dup_num, recog_n_operands): Kill.
22667 (recog_n_dups, recog_n_alternatives, recog_operand_mode): Kill.
22668 (recog_constraints, recog_op_type, recog_operand_address_p): Kill.
22669 (recog_data): Define.
22670 (extract_insn): Update all recog_foo references to use recog_data.
22671 (preprocess_constraints, constrain_operands): Likewise.
22672 * final.c (final_scan_insn, cleanup_subreg_operands): Likewise.
22673 * genattrtab.c (main): Likewise.
22674 * genextract.c (main): Likewise.
22675 * genoutput.c: Likewise.
22676 * genrecog.c (write_subroutine, main): Likewise.
22677 * local-alloc.c (block_alloc): Likewise.
22678 * reg-stack.c (record_asm_reg_life, subst_asm_stack_regs): Likewise.
22679 * regclass.c (scan_one_insn, record_reg_classes): Likewise.
22680 * regmove.c (regmove_optimize, find_matches, fixup_match_1): Likewise.
22681 * reload.c (find_reloads, find_reloads_toplev): Likewise.
22682 * reload1.c (maybe_fix_stack_asms, eliminate_regs_in_insn): Likewise.
22683 (reload_cse_simplify_operands): Likewise.
22684
22685 * arc/arc.c (arc_final_prescan_insn): Likewise.
22686 * arm/arm.c (note_invalid_constants, arm_final_prescan_insn): Likewise.
22687 * h8300/h8300.c (notice_update_cc): Likewise.
22688 * i386/i386.c (ix86_attr_length_default, ix86_agi_dependant): Likewise.
22689 * i860/i860.c (output_delayed_branch, output_delay_insn): Likewise.
22690 * mn10200/mn10200.c (notice_update_cc): Likewise.
22691 * mn10300/mn10300.c (notice_update_cc): Likewise.
22692 * romp/romp.c (update_cc): Likewise.
22693 * sparc/sparc.c (check_pic): Likewise.
22694 * v850/v850.c (notice_update_cc): Likewise.
22695
22696 * genemit.c (main): Don't declare recog_operand.
22697
22698 Sat Sep 11 12:41:55 1999 Alex Samuel <samuel@codesourcery.com>
22699
22700 * ggc.h (rtvec_def): Forward declare.
22701 (tree_node): Likewise.
22702 (ggc_root): Define.
22703 (roots): Declare.
22704 (ggc_set_mark_rtx): Add prototype.
22705 (ggc_set_mark_rtvec): Likewise.
22706 (ggc_set_mark_tree): Likewise.
22707 * ggc-simple.c (ggc_root): Don't define.
22708 (roots): Don't declare.
22709 (ggc_mark_rtx): Remove.
22710 (ggc_mark_rtvec): Likewise.
22711 (ggc_mark_tree): Likewise.
22712 (ggc_mark_varray): Likewise.
22713 (ggc_mark_tree_hash_table_entry): Likewise.
22714 (ggc_mark_tree_hash_table): Likewise.
22715 (ggc_set_mart_rtx): New function.
22716 (ggc_set_mark_rtvec): Likewise.
22717 (ggc_set_mark_tree): Likewise.
22718 (ggc_add_root): Remove.
22719 (ggc_add_rtx_root): Likewise.
22720 (ggc_remove_tree_root): Likewise.
22721 (ggc_add_string_root): Likewise.
22722 (ggc_add_tree_varray_root): Likewise.
22723 (ggc_add_tree_hash_table_root): Likewise.
22724 (ggc_del_root): Likewise.
22725 (ggc_mark_rtx_ptr): Likewise.
22726 (ggc_mark_tree_ptr): Likewise.
22727 (ggc_mark_string_ptr): Likewise.
22728 (ggc_mark_tree_varray_ptr): Likewise.
22729 (ggc_mark_tree_hash_table_ptr): Likewise.
22730 * ggc-common.c: New file.
22731 * Makefile.in (OBJS): Add ggc-common.o.
22732 (ggc-common.o): List dependencies.
22733
22734 1999-09-10 22:37 -0700 Zack Weinberg <zack@bitmover.com>
22735
22736 * cppalloc.c (xstrdup): Use memcpy.
22737 * cpperror.c (cpp_print_containing_files): Don't use
22738 cpp_notice.
22739 * cpplib.c (conditional_skip): Set temp->lineno.
22740 (do_endif): Make error message less obscure.
22741 (if_directive_name): New function.
22742 (cpp_get_token [case EOF]): Unwind the if stack and generate
22743 error messages for each unterminated conditional in this file.
22744 (parse_string): Do not behave differently if -traditional.
22745
22746 Fri Sep 10 14:04:07 1999 Richard Henderson <rth@cygnus.com>
22747
22748 * builtins.c (expand_builtin_va_arg): Cope with an array-type
22749 va_list decomposing to pointer-type.
22750 * rs6000.c (rs6000_va_start) Unwrap the ARRAY_TYPE to get at fields.
22751 (rs6000_va_arg): Likewise.
22752
22753 Fri Sep 10 13:21:21 1999 Jim Wilson <wilson@cygnus.com>
22754
22755 * except.c (start_dynamic_handler): Compute size using
22756 STACK_SAVEAREA_MODE.
22757
22758 Fri Sep 10 16:01:23 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22759
22760 * protoize.c: Remove various __STDC__ and POSIX hacks. Don't
22761 include directory headers. Don't define strrchr. Don't provide
22762 my_* replacement functions. Prefer PTR over `pointer_type'.
22763 Don't prototype system functions. Don't redefine getopt.
22764
22765 (shortpath, fancy_abort, notice, savestring, dupnstr, substr,
22766 safe_read, safe_write, save_pointers, restore_pointers,
22767 is_id_char, in_system_include_dir, directory_specified_p,
22768 file_excluded_p, unexpand_if_needed, abspath, check_aux_info,
22769 find_corresponding_lparen, referenced_file_is_newer,
22770 save_def_or_dec, munge_compile_params, gen_aux_info_file,
22771 process_aux_info_file, identify_lineno, check_source,
22772 seek_to_line, forward_to_next_token_char, output_bytes,
22773 output_string, output_up_to, other_variable_style_function,
22774 find_rightmost_formals_list, do_cleaning, careful_find_l_paren,
22775 do_processing, is_syscalls_file, rename_c_file, find_extern_def,
22776 find_static_definition, connect_defs_and_decs, add_local_decl,
22777 add_global_decls, needs_to_be_converted, visit_each_hash_node,
22778 add_symbol, lookup, free_def_dec, find_file, reverse_def_dec_list,
22779 edit_fn_declaration, edit_formals_lists, edit_fn_definition,
22780 scan_for_missed_items, edit_file, string_list_cons): Add static
22781 prototypes.
22782 (standard_exec_prefix, target_machine, target_version,
22783 default_syscalls_dir, string_list, string_list_cons, find_file,
22784 do_cleaning): Constify a char*.
22785 (safe_read, safe_write): Use PTR, not a char*.
22786 (is_id_char): Take an int, not a char.
22787 (main): Add prototype. Call return, not exit.
22788
22789 Fri Sep 10 16:48:26 1999 Andrew Haley <aph@cygnus.com>
22790
22791 * tree.c (type_hash_lookup): Check for equal TYPE_ALIGN fields
22792 when comparing types.
22793
22794 Fri Sep 10 08:43:32 1999 Richard Henderson <rth@cygnus.com>
22795
22796 * loop.c (basic_induction_var): Typo NULL_RTX -> NULL.
22797 (strength_reduce): Release the varrays from the no-bivs early exit.
22798
22799 * reload1.c (order_regs_for_reload): Init hard_reg_n_uses before
22800 the loop over the registers.
22801
22802 * tree.c (save_tree_status): Set maybepermanent_firstobj NULL
22803 for a new obstack.
22804 (restore_tree_status): Check that instead when freeing the obstack.
22805
22806 Wed Sep 8 16:12:04 1999 Andrew Haley <aph@cygnus.com>
22807
22808 * alias.c (rtx_equal_for_memref_p): Allow CONST_DOUBLEs to be used
22809 as pointers.
22810
22811 Fri Sep 10 11:58:55 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22812
22813 * i386.md (ashlqi3): For NON_QI_REG_P regs, use sall. Fix some
22814 operand size modifiers.
22815
22816 Fri Sep 10 10:32:32 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22817
22818 * c-common.c (c_common_nodes_and_builtins): Don't build
22819 va_list_type_node.
22820 * c-common.h (enum c_tree_index and related accesor macros): Remove
22821 everything now declared in tree.h.
22822 * c-decl.c (CHAR_TYPE_SIZE, SHORT_TYPE_SIZE, INT_TYPE_SIZE,
22823 LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE, WCHAR_UNSIGNED, FLOAT_TYPE_SIZE,
22824 DOUBLE_TYPE_SIZE, LONG_DOUBLE_TYPE_SIZE): Don't provide defaults.
22825 (error_mark_node, void_type_node, char_type_node, integer_type_node,
22826 unsigned_type_node, ptr_type_node, va_list_type_node,
22827 integer_zero_node, null_pointer_node, integer_one_node): Delete.
22828 (init_decl_processing): Call build_common_tree_nodes and
22829 build_common_tree_nodes_2 instead of building their nodes here.
22830 Don't add roots for these nodes.
22831 * stor-layout.c (size_zero_node, size_one_node): Delete.
22832 (set_sizetype): Make a new node for bitsizetype each time.
22833 * tree.c (global_trees): New variable.
22834 (init_obstacks): Add a gc root for it.
22835 (CHAR_TYPE_SIZE, SHORT_TYPE_SIZE, INT_TYPE_SIZE,
22836 LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE, FLOAT_TYPE_SIZE,
22837 DOUBLE_TYPE_SIZE, LONG_DOUBLE_TYPE_SIZE): Provide defaults.
22838 (build_common_tree_nodes): New function.
22839 (fix_sizetype): New function.
22840 (build_common_tree_nodes_2): New function.
22841 * tree.h (enum tree_index): New.
22842 (global_trees): Declare.
22843 Add accessor macros for all nodes now moved to global_trees.
22844 Delete their declarations.
22845
22846 Thu Sep 9 20:15:46 1999 Richard Henderson <rth@cygnus.com>
22847
22848 * c-decl.c (finish_function): When processing a nested function,
22849 push and pop GC context around rest_of_compilation.
22850
22851 Thu Sep 9 16:42:06 1999 Richard Henderson <rth@cygnus.com>
22852
22853 * i386.c (override_options): Remove ppro, pentium2, and p2 as aliases.
22854 Default ix86_arch to PROCESSOR_I386.
22855 * i386.h (CC1_CPU_SPEC): Don't add -march=foo. Remove -mno-foo.
22856 (CPP_486_SPEC, CPP_586_SPEC, CPP_686_SPEC): Delete.
22857 (CPP_CPU_DEFAULT_SPEC): Define to __tune_foo__.
22858 (CC1_CPU_SPEC): Make -march=foo define __foo__, and provide
22859 __tune_foo__ if no -mcpu. Make -mcpu=bar define __tune_bar__.
22860 (EXTRA_SPECS): Remove deleted specs.
22861
22862 Thu Sep 9 16:03:06 1999 Richard Henderson <rth@cygnus.com>
22863
22864 * function.c (assign_stack_local_1): Allocate from
22865 function->x_frame_offset, not frame_offset.
22866
22867 Thu Sep 9 14:36:31 1999 Mark Mitchell <mark@codesourcery.com>
22868
22869 * ggc.h (lang_cleanup_tree): Remove.
22870 * gcc-simple.c (ggc_free_tree): Don't call lang_cleanup_tree.
22871 * ggc-callbacks.c (lang_cleanup_tree): Remove.
22872
22873 * c-decl.c (finish_struct): Use ggc_alloc to allocate
22874 TYPE_LANG_SPECIFIC when garbage collecting.
22875 (lang_mark_tree): Mark TYPE_LANG_SPECIFIC.
22876 (lang_cleanup_tree): Remove.
22877
22878 Thu Sep 9 14:23:02 1999 Jason Merrill <jason@yorick.cygnus.com>
22879
22880 * defaults.h (EH_FRAME_SECTION, EH_FRAME_SECTION_ASM_OP): Define here.
22881 * crtstuff.c: Not here.
22882 * dwarf2out.c: Or here.
22883 * libgcc2.c (__do_global_ctors, __do_global_dtors): Handle EH frame
22884 info.
22885
22886 Thu Sep 9 09:40:58 1999 Mark Mitchell <mark@codesourcery.com>
22887
22888 * function.h (free_after_compilation): Remove decl parameter.
22889 (free_varasm_status0: Likewise.
22890 (free_emit_status): Likewise.
22891 (free_stmt_status): Likewise.
22892 (free_after_compilation): Likewise.
22893 (init_lang_status): New variable.
22894 (free_lang_status): Likewise.
22895 * emit-rtl.c (free_emit_status): Make decl parameter implicit.
22896 * function.c (init_lang_status): New variable.
22897 (free_lang_status): Likewise.
22898 (push_function_context_to): Don't set function::decl here.
22899 (free_after_copmilation): Make decl parameter implicit. Call
22900 free_lang_status if defined.
22901 (prepare_function_start): Call init_lang_status if defined.
22902 (init_function_start): Set function::decl here.
22903 * profile.c (output_func_start_profiler): Don't call pushdecl
22904 until we've actually started the function.
22905 * stmt.c (free_stmt_status): Make decl parameter implicit.
22906 * toplev.c (rest_of_compilation): Don't pass decl to
22907 free_after_compilation.
22908 * varasm.c (free_varasm_status): Likewise.
22909
22910 Thu Sep 9 17:23:19 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22911
22912 * except.c (call_get_eh_context): Add root when allocating static
22913 tree variable.
22914
22915 Thu Sep 9 15:24:59 BST 1999 Richard Earnshaw <rearnsha@arm.com>
22916
22917 * arm.c: Include "ggc.h".
22918 (arm_add_gc_roots): New function.
22919 (arm_override_options): Call it.
22920 (aof_pic_entry): Add a GC root for aof_pic_label when it's allocated.
22921
22922 * arm.md (define_asm_attributes): Add a pool_range attribute.
22923
22924 Thu Sep 9 12:32:57 BST 1999 Nathan Sidwell <nathan@acm.org>
22925
22926 * extend.texi (Volatiles): New node.
22927
22928 Thu Sep 9 03:37:31 1999 Richard Henderson <rth@cygnus.com>
22929
22930 * ggc-simple.c (IS_MARKED, IGNORE_MARK): New.
22931 (GGC_ANY_MAGIC, GGC_ANY_MAGIC_MARK): New.
22932 (struct ggc_any): Replace `mark' with `magic_mark'.
22933 (ggc_alloc_string): Use memcpy, not bcopy.
22934 (ggc_alloc_any): Set magic_mark. Update bytes_alloced_since_gc.
22935 (ggc_free_{rtx,rtvec,tree,string}): Mark inline.
22936 (ggc_free_any): New.
22937 (ggc_mark_string): Use IGNORE_MARK. Calc back to struct gcc_string.
22938 (ggc_mark): Use IGNORE_MARK. Abort if magic doesn't match.
22939 (ggc_collect): Re-enable collection avoidance. Use GGC_ANY_MARK.
22940 Use IS_MARKED. Use ggc_free_any.
22941
22942 1999-09-09 Scott Bambrough <scottb@netwinder.org>
22943
22944 * config/arm/linux-elf.h: define NO_IMPLICIT_EXTERN_C
22945
22946 Thu Sep 9 01:55:21 1999 Richard Henderson <rth@cygnus.com>
22947
22948 * toplev.c (main): Always init_ggc.
22949
22950 Wed Sep 8 23:53:22 1999 Richard Henderson <rth@cygnus.com>
22951
22952 * except.c (find_all_handler_type_matches): Free the list if
22953 we found no matches.
22954
22955 * combine.c (SUBST): Break out to a real function do_SUBST.
22956 (SUBST_INT): Likewise.
22957 * gcse.c (free_pre_mem): Free `temp_bitmap'.
22958 (pre_insert): Free `inserted'.
22959 * loop.c (basic_induction_var): Always set `location'.
22960
22961 * function.c (expand_function_end): Add initial_trampoline as a root.
22962 * rtl.h (init_varasm_once): Declare.
22963 * toplev.c (compile_file): Call it.
22964 * ggc-simple.c (ggc_mark_string_ptr): New.
22965 (ggc_add_string_root): New.
22966 (ggc_collect): Disable collection avoidance temporarily.
22967 * ggc.h (ggc_add_string_root): Declare.
22968 * except.c (create_rethrow_ref): Use ggc_alloc_string.
22969 * optabs.c (init_libfuncs): Likewise.
22970 * varasm.c (named_section): Use ggc_alloc_string.
22971 (make_function_rtl): Likewise.
22972 (make_decl_rtl): Likewise.
22973 (assemble_static_space): Likewise.
22974 (assemble_trampoline_template): Likewise.
22975 (output_constant_def): Likewise.
22976 (force_const_mem): Likewise.
22977 (mark_const_hash_entry): New.
22978 (mark_pool_sym_hash_table): New.
22979 (mark_varasm_state): Use it.
22980 (init_varasm_once): New.
22981
22982 * expr.h (init_one_libfunc): Declare.
22983 * optabs.c (init_one_libfunc): New.
22984 (init_optabs): Use it.
22985 * config/gofast.h: Likewise.
22986 * config/sparc/sol2.h (INIT_SUBTARGET_OPTABS): Likewise.
22987 * config/sparc/sparc.h (INIT_TARGET_OPTABS): Likewise.
22988
22989 Thu Sep 9 13:46:06 1999 Geoffrey Keating <geoffk@cygnus.com>
22990
22991 * Makefile.in (cppexp.o): Depend on cpphash.h.
22992 * cppexp.c (cpp_lex): Handle `defined (xxx)' for poisoned xxx.
22993 Include cpphash.h.
22994 * cpphash.c (special_symbol): Handle plain `xxx' for poisoned xxx.
22995 * cpplib.c (do_define): Generalise to handle poisoned definitions,
22996 redefining poisoned identifiers, etc.
22997 (do_undef): Don't allow poisoned identifiers to be undefined.
22998 (do_pragma): Add #pragma poison.
22999 (do_xifdef): Handle `#ifdef xxx' for poisoned xxx.
23000
23001 * cccp.c: Add T_POISON node type.
23002 (special_symbol): Handle `defined(xxx)' and plain `xxx' for
23003 poisoned xxx.
23004 (do_define): Generalise to handle poisoned definitions,
23005 redefining poisoned identifiers, etc.
23006 (do_undef): Don't allow poisoned identifiers to be undefined.
23007 (do_pragma): Add #pragma poison.
23008 (do_xifdef): Handle `#ifdef xxx' for poisoned xxx.
23009
23010 * c-pragma.c (handle_pragma_token): Ignore #pragma poison.
23011 * c-pragma.h: Add ps_poison state. We now always have generic
23012 pragmas.
23013
23014 Wed Sep 8 20:30:42 1999 Mark Mitchell <mark@codesourcery.com>
23015
23016 * ggc.h (ggc_alloc): New function.
23017 (ggc_mark): Likewise.
23018 * ggc-simple.c (ggc_any): New structure.
23019 (ggc_status): Add anys.
23020 (n_anys_collected): New variable.
23021 (ggc_alloc): Define.
23022 (ggc_mark): Likewise.
23023 (ggc_collect): Collect the anys.
23024
23025 Wed Sep 8 20:15:14 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23026
23027 * c-decl.c (mark_binding_level): Make static to match prototype.
23028
23029 Wed Sep 8 16:41:27 1999 Richard Henderson <rth@cygnus.com>
23030
23031 * flow.c (new_insn_dead_notes): Don't early out for preexisting regs.
23032
23033 Wed Sep 8 16:07:52 1999 Richard Henderson <rth@cygnus.com>
23034
23035 * gengenrtl.c (CONST_DOUBLE_FORMAT): Take the size REAL_ARITHMETIC
23036 will use into account. Expand the max width to 5.
23037 * rtl.c: Likewise.
23038
23039 Wed Sep 8 16:01:14 1999 Richard Henderson <rth@cygnus.com>
23040
23041 * ggc-simple.c (ggc_free_rtx): Poison the correct amount
23042 for the rtx length.
23043
23044 Wed Sep 8 15:23:54 1999 Richard Henderson <rth@cygnus.com>
23045
23046 * alpha.md (call value patterns): Remove the result predicates.
23047
23048 Wed Sep 8 13:35:38 1999 Richard Henderson <rth@cygnus.com>
23049
23050 * Makefile.in (stmp-fixinc): Remove extraneous exit 1 from
23051 last change.
23052
23053 Wed Sep 8 15:32:16 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23054
23055 * system.h (sbrk, malloc, calloc, realloc): Backup prototypes
23056 changed from extern char *, to extern PTR. Also fix typo in
23057 NEED_DECLARATION_REALLOC test.
23058
23059 * mips-tdump.c (malloc, calloc, realloc): Don't prototype.
23060
23061 Wed Sep 8 11:40:47 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23062
23063 * gansidecl.h (__attribute__, ATTRIBUTE_UNUSED_LABEL,
23064 ATTRIBUTE_UNUSED, ATTRIBUTE_NORETURN, ATTRIBUTE_PRINTF,
23065 ATTRIBUTE_PRINTF_1, ATTRIBUTE_PRINTF_2, ATTRIBUTE_PRINTF_3,
23066 ATTRIBUTE_PRINTF_4, ATTRIBUTE_PRINTF_5, GENERIC_PTR): Delete.
23067
23068 * c-decl.c (field_decl_cmp): Use PTR instead of GENERIC_PTR.
23069
23070 * cccp.c (pcfinclude): Likewise.
23071
23072 * global.c (allocno_compare): Likewise.
23073
23074 * haifa-sched.c (rank_for_schedule): Likewise.
23075
23076 * local-alloc.c (qty_sugg_compare_1, qty_compare_1): Likewise.
23077
23078 * reload1.c (hard_reg_use_compare, reload_reg_class_lower): Likewise.
23079
23080 * stupid.c (stupid_reg_compare): Likewise.
23081
23082 * tree.c (_obstack_allocated_p): Likewise.
23083
23084 * varray.h (varray_data_tag, VARRAY_GENERIC_PTR_INIT): Likewise.
23085
23086 1999-09-08 Bruce Korb autogen@linuxbox.com
23087
23088 * Makefile.in: Give the hapless gperf user a hint about
23089 why "gperf -F" fails.
23090
23091 Wed Sep 8 04:43:22 1999 Richard Henderson <rth@cygnus.com>
23092
23093 * lists.c: Include ggc.h.
23094 (zap_lists): New.
23095 (init_EXPR_INSN_LIST_cache): Install it.
23096
23097 * ggc-simple.c (init_ggc): Absorb the old init.
23098 (ggc_push_context): Use xcalloc.
23099 (ggc_alloc_rtx, ggc_alloc_rtvec, ggc_alloc_tree): Likewise.
23100 (ggc_collect): Add [rvts] tags to the collection stats.
23101
23102 Wed Sep 8 11:14:25 1999 Andreas Schwab <schwab@suse.de>
23103
23104 * cccp.c (main): Fix handling of -include and -imacros options.
23105
23106 Wed Sep 8 02:23:08 1999 Jeffrey A Law (law@cygnus.com)
23107
23108 * cpplib.c (cpp_push_buffer): Fix order of arguments.
23109
23110 Wed Sep 8 04:44:09 1999 Alexandre Oliva <oliva@dcc.unicamp.br>
23111
23112 * rtl.h (obstack_alloc_rtx): Removed, it's now static in
23113 genrtl.c.
23114
23115 Wed Sep 8 00:33:43 1999 Alasdair Baird <alasdair@wildcat.demon.co.uk>
23116
23117 * flow.c (insn_dead_p): Use XEXP rather than SUBREG_REG.
23118 * haifa-sched.c (sched_analyze_1): Use XEXP rather than SUBREG_REG
23119 and SET_DEST. Update comment.
23120
23121 Wed Sep 8 18:55:17 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
23122
23123 * config/c4x/c4x.c: Include ggc.h.
23124 (c4x_add_gc_roots): New function.
23125 (c4x_override_options): Call c4x_add_gc_roots.
23126
23127 Wed Sep 8 00:00:16 1999 Richard Henderson <rth@cygnus.com>
23128
23129 * defaults.h (TARGET_ESC): Move ...
23130 * system.h: ... here, where Linas had it in the first place. Silly me.
23131
23132 Tue Sep 7 23:46:35 1999 Linas Vepstas <linas@linas.org>
23133
23134 * c-common.c: Use ISGRAPH, ISLOWER, toupper.
23135 * c-lex.c, cccp.c, cexp.c, cexp.y, cppexp.c, dwarf2out.c, genattr.c,
23136 genattrtab.c, genemit.c, genextract.c, genpeep.c, tree.c: Likewise.
23137 * system.h (IN_CTYPE_DOMAIN): Define to 1 if HOST_EBCDIC.
23138 * defaults.h (TARGET_ESC): Add default.
23139
23140 Tue Sep 7 23:36:59 1999 Linas Vepstas <linas@linas.org>
23141
23142 * configure.in: add i370-*-openedition, i370-*-mvs and
23143 i370-*-linux targets
23144
23145 Tue Sep 7 23:31:53 1999 Mark Mitchell <mark@codesourcery.com>
23146
23147 * dsp16xxx.c: Include ggc.h
23148 (override_options): Mark GC roots.
23149 * mn10200.c: Include ggc.h.
23150 (asm_file_start): Mark GC roots.
23151 * tahoe.c: Include ggc.h.
23152 (extensible_operand): Mark GC roots.
23153
23154 Tue Sep 7 23:23:15 1999 Linas Vepstas <linas@linas.org>
23155
23156 * README: Add section discussing status of ELF ABI.
23157 * i370.c: Fix misc spelling mistakes.
23158 (i370_label_scan): Updated notes, exception handling.
23159 (i370_function_prolog): Simplify ELF stack handling.
23160 * i370.h: (FIXED_REGISTERS): Free up r12 for ELF.
23161 (STACK_GROWS_DOWNWARD): ELF stack grows down.
23162 (ASM_DECLARE_FUNCTION_NAME): Fix crazy malloc size.
23163 * i370.md: (movdi): Add notes.
23164 (floatsidf2): Use stack not rtca for scratch float area.
23165 (iorsi3): Correct operand constraints.
23166 * x-oe: Restore TAROUTOPTS which are used by pax.
23167
23168 Tue Sep 7 22:39:18 1999 Mark Mitchell <mark@codesourcery.com>
23169
23170 * rs6000.c: Include ggc.h.
23171 (rs6000_add_gc_roots): New function.
23172 (override_options): Call it.
23173
23174 Tue Sep 7 22:09:03 1999 Richard Henderson <rth@cygnus.com>
23175
23176 * alpha.h (alpha_compare): New.
23177 (alpha_compare_op0, alpha_compare_op1, alpha_compare_fp_p): Remove.
23178 * alpha.c: Likewise for the definitions.
23179 (alpha_emit_conditional_branch): Update for alpha_compare.
23180 (alpha_emit_conditional_move): Likewise.
23181 * alpha.md (cmpdf, cmpdi): Likewise.
23182 (setcc patterns): Likewise. Zero alpha_compare after use.
23183 (sne): Optimize (x != 0) into (0U < x).
23184
23185 Tue Sep 7 21:55:02 1999 Richard Henderson <rth@cygnus.com>
23186
23187 * alpha.h (alpha_eh_epilogue_sp_ofs): Remove.
23188 (struct machine_function): Declare; add eh_epilogue_sp_ofs.
23189 (INIT_EXPANDERS): Remove.
23190 * alpha.c: Include ggc.h.
23191 (alpha_eh_epilogue_sp_ofs, alpha_return_addr_rtx): Remove.
23192 (alpha_init_machine_status, alpha_mark_machine_status): New.
23193 (override_options): Install them.
23194 (struct machine_function): Moved to alpha.h.
23195 (alpha_save_machine_status, alpha_restore_machine_status): Remove.
23196 (alpha_init_expanders): Remove.
23197 (alpha_return_addr): Adjust to use current_function->machine.
23198 (alpha_ra_ever_killed): Likewise.
23199 (alpha_expand_epilogue): Likewise.
23200 * alpha.md (eh_epilogue): Likewise.
23201
23202 Wed Sep 8 14:34:42 1999 Ian Piumarta <piumarta@prof.inria.fr>
23203 Melissa O'Neill <oneill@cs.sfu.ca>
23204 Geoffrey Keating <geoffk@cygnus.com>
23205
23206 * config/rs6000/rs6000.c (first_reg_to_save): Don't save fixed or
23207 call-used registers (call-saved registers must still be contiguous
23208 and end with r31, of course).
23209
23210 Tue Sep 7 21:41:38 1999 Richard Henderson <rth@cygnus.com>
23211
23212 * c-typeck.c (type_lists_compatible_p): Use simple_type_promotes_to.
23213 (self_promoting_type_p): Delete.
23214 (self_promoting_args_p): Move ...
23215 * c-common.c: ... here.
23216 (c_common_nodes_and_builtins): Initialize lang_type_promotes_to.
23217 (simple_type_promotes_to): New.
23218 * builtins.c (lang_type_promotes_to): New.
23219 (expand_builtin_va_arg): Use it to give diagnostic for illegal types.
23220 * c-tree.h (C_PROMOTING_INTEGER_TYPE_P): Move ...
23221 * c-common.h: ... here.
23222 (self_promoting_args_p, simple_type_promotes_to): Declare.
23223 * c-decl.c (duplicate_decls): Use simple_type_promotes_to.
23224 (grokdeclarator): Likewise.
23225 * tree.h (lang_type_promotes_to): Declare.
23226
23227 Tue Sep 7 17:15:21 1999 Mark Mitchell <mark@codesourcery.com>
23228
23229 Add some machine-dependent GC roots.
23230 * sparc.c: Include ggc.h.
23231 (sparc_add_gc_roots): New function.
23232 (mark_ultrasparc_pipeline_state): Likewise.
23233 (override_options): Call sparc_add_gc_roots.
23234 * pa.c: Include ggc.h.
23235 (pa_add_gc_roots): New function.
23236 (mark_deferred_plabels): Likewise.
23237 (override_options): Call pa_add_gc_roots.
23238 * mips.c: Include ggc.h.
23239 (mips_add_gc_roots): New function.
23240 (override_options): Use it.
23241
23242 Tue Sep 7 11:39:41 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23243
23244 * cpperror.c (cpp_file_line_for_message): Constify a char*.
23245
23246 * cppexp.c (parse_number, parse_charconst, cpp_lex,
23247 cpp_parse_expr): Add static prototypes.
23248 (parse_charconst): Don't cast away const-ness.
23249 (token): Constify a char*.
23250
23251 * cppfiles.c (file_name_list, include_hash, find_include_file,
23252 finclude, initialize_input_buffer): Constify a char*.
23253 (file_cleanup, find_position): Add static prototypes.
23254
23255 * cpphash.c (macro_cleanup, macarg, timestamp, special_symbol,
23256 collect_expansion): Add static prototypes.
23257 (cpp_install, create_definition, monthnames): Constify a char*.
23258
23259 * cpphash.h (cpp_install): Likewise.
23260
23261 * cppinit.c (known_suffixes, default_include,
23262 dump_special_to_buffer, NAME, cpp_start_read, cpp_finish): Likewise.
23263 (base_name, dump_special_to_buffer, initialize_dependency_output):
23264 Add static prototypes.
23265
23266 * cpplib.c (my_strerror): Constify a char*.
23267 (null_underflow, null_cleanup, skip_comment, copy_comment,
23268 copy_rest_of_line, handle_directive, pass_thru_directive,
23269 get_directive_token, read_line_number, cpp_print_file_and_line,
23270 v_cpp_error, v_cpp_warning, v_cpp_error_with_line,
23271 v_cpp_warning_with_line, detect_if_not_defined,
23272 consider_directive_while_skipping): Add static prototypes.
23273 (pass_thru_directive, check_macro_name, cpp_expand_to_buffer,
23274 cpp_pedwarn_with_file_and_line): Constify a char*.
23275
23276 * cpplib.h (cpp_options, include_hash, progname, definition,
23277 cpp_pedwarn_with_file_and_line, cpp_expand_to_buffer,
23278 check_macro_name, cpp_pfatal_with_name, cpp_file_line_for_message,
23279 find_include_file, deps_output, include_hash): Constify a char*.
23280
23281 * cppmain.c (progname): Constify.
23282 (main): Add prototype. Use return, not exit.
23283
23284 * fix-header.c (fatal, add_symbols, lookup_std_proto, write_lbrac,
23285 recognized_macro, check_macro_names, read_scan_file, write_rbrac,
23286 inf_skip_spaces, inf_read_upto, inf_scan_ident, inf_scan_ident,
23287 check_protection): Add static prototype.
23288 (xfree): Remove.
23289 (progname, recognized_macrom, recognized_extern): Constify a char*.
23290 (main): Add prototype.
23291
23292 * gen-protos.c (progname): Constify a char*.
23293
23294 Tue Sep 7 00:47:52 1999 Mark Mitchell <mark@codesourcery.com>
23295
23296 * emit-rtl.c (free_emit_status): Take decl as a parameter.
23297 (init_emit_once): Add more GC roots.
23298 * except.c (mark_func_eh_entry): New function.
23299 (mark_eh_node): Mark false_label and rethrow_label.
23300 (init_eh): Add more GC roots.
23301 * function.c (free_after_compilation): Take decl as a paramter.
23302 Call free_stmt_status.
23303 (mark_function_state): Don't assume x_parm_reg_stack_loc is
23304 non-NULL.
23305 * function.h (free_after_compilation): Change prototype.
23306 (free_varasm_status): Likewise.
23307 (free_emit_status): Likewise.
23308 (free_stmt_status): New function.
23309 * ggc-simple.c (rtx, vecs, trees, strings, bytes_alloced_since_gc):
23310 Remove, replacing with ...
23311 (ggc_status): New structure.
23312 (ggc_chain): New variable.
23313 (init_gcc): Define.
23314 (ggc_push_context): New function.
23315 (ggc_pop_context): Likewise.
23316 (ggc_alloc_rtx): Adjust for use of ggc_chain.
23317 (ggc_alloc_rtvec): Likewise.
23318 (ggc_alloc_tree): Likewise.
23319 (ggc_alloc_string): Likewise.
23320 (ggc_mark_rtx): Mark NOTE_SOURCE_FILE and NOTE_RANGE_INFO.
23321 (ggc_mark_tree): Give language-dependent code a chance to mark
23322 `x' nodes.
23323 (ggc_mark_tree_varray): Handle empty arrays.
23324 (ggc_collect): Adjust for use of ggc_chain. Clear
23325 bytes_alloced_since_last_gc.
23326 * ggc.h (ggc_pop_context): New function.
23327 (ggc_push_context): Likewise.
23328 * print-tree.c (print_node): Don't print obstacks when GC'ing.
23329 * stmt.c (free_stmt_status): New function.
23330 (init_stmt_for_function): Clear last_expr_value.
23331 * toplev.c (rest_of_compilation): Always call free_after_compilation.
23332 Conditionalize call to ggc_collect.
23333 (main): Call init_ggc.
23334 * tree.c (push_obstacks): Do the push, even when GC'ing.
23335 (push_obstacks_nochange): Likewise.
23336 (pop_obstacks): Liekwise.
23337 * varasm.c (free_varasm_status): Take decl as a parameter.
23338
23339 Tue Sep 7 08:15:49 1999 Gavin Romig-Koch <gavin@cygnus.com>
23340
23341 * config/mips/mips.h (MULTILIB_ENDIAN_DEFAULT) : New macro.
23342 (MULTILIB_ENDIAN_DEFAULT) : Use the new macro.
23343 * config/mips/elf64.h (MULTILIB_DEFAULTS) : Use the new macro.
23344 * config/mips/r3900.h (MULTILIB_DEFAULTS) : Use the new macro.
23345
23346 Tue Sep 7 03:42:45 1999 Mark Klein (mklein@dis.com)
23347
23348 * pa/x-pa-mpeix: New file for the MPE port.
23349
23350 * pa/quadlib.asm: New file for long double support.
23351
23352 * configure.in: Add hppa1.0-*-mpeix for MPE port.
23353 * configure: Rebuilt.
23354
23355 Tue Sep 7 10:08:40 1999 Andreas Schwab <schwab@suse.de>
23356
23357 * final.c (shorten_branches): Fix last change.
23358
23359 Tue Sep 7 00:30:32 1999 Jeffrey A Law (law@cygnus.com)
23360
23361 * pa.h (ASM_OUTPUT_DOUBLE_INT): Delete.
23362
23363 Mon Sep 6 22:44:47 1999 Jeffrey A Law (law@cygnus.com)
23364
23365 * Merge from gcc2 snapshot Jan 9, 1999. See FSFChangeLog for
23366 details.
23367
23368 Mon Sep 6 22:31:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23369
23370 * c-aux-info.c (concat): Don't define.
23371
23372 * cccp.c (my_strerror): Likewise. All callers changed to use
23373 xstrerror instead.
23374 (do_include): Call xstrdup, not xmalloc/strcpy.
23375 (grow_outbuf): Don't check if xrealloc returns NULL, it can't.
23376 (xmalloc, xrealloc, xcalloc, xstrdup): Don't define.
23377
23378 * collect2.c (my_strsignal): Likewise. All callers changed to use
23379 strsignal instead.
23380 (locatelib): Call xstrdup, not xmalloc/strcpy.
23381
23382 * 1750a.h (ASM_OUTPUT_INTERNAL_LABEL): Call xmalloc, not malloc.
23383
23384 * dsp16xx.c (override_options): Call xstrdup, not xmalloc/strcpy.
23385
23386 * i370.h (ASM_DECLARE_FUNCTION_NAME): Call xmalloc, not malloc.
23387
23388 * mips.c (build_mips16_call_stub): Call xstrdup, not xmalloc/strcpy.
23389
23390 * cppinit.c (cpp_options_init): Call xcalloc, not xmalloc/bzero.
23391
23392 * dwarfout.c (dwarfout_init): Call concat, not xmalloc/strcpy/...
23393
23394 * except.c (new_eh_region_entry): Call xmalloc/xrealloc, not
23395 malloc/realloc.
23396 (find_all_handler_type_matches): Likewise. Don't check return
23397 value.
23398 (get_new_handler, init_insn_eh_region, process_nestinfo): Call
23399 xmalloc, not malloc.
23400 (init_eh_nesting_info): Likewise. Call xcalloc, not xmalloc/bzero.
23401
23402 * gcc.c (xstrerror, xmalloc, xrealloc): Don't define.
23403 (init_spec): Call xcalloc, not xmalloc/bzero.
23404 (set_spec): Call xstrdup, not save_string.
23405 (record_temp_file): Call xstrdup, not xmalloc/strcpy.
23406 (find_a_file): Call xstrdup, not xmalloc/strcpy.
23407 (process_command): Call xstrdup, not save_string.
23408 (main): Call xcalloc, not xmalloc/bzero.
23409
23410 * gcov.c (xmalloc): Don't define.
23411 (create_program_flow_graph): Call xcalloc, not xmalloc/bzero.
23412 (scan_for_source_files): Call xstrdup, not xmalloc/strcpy.
23413 (output_data): Call xcalloc, not xmalloc/bzero.
23414
23415 * haifa-sched.c (schedule_insns): Call xcalloc, not xmalloc/bzero.
23416
23417 * mips-tdump.c (xmalloc): Don't define.
23418 (print_symbol): Call xmalloc, not malloc.
23419 (read_tfile): Call xcalloc, not calloc.
23420
23421 * mips-tfile.c (xfree, my_strsignal, xmalloc, xcalloc, xrealloc):
23422 Don't define. All callers of xfree/my_strsignal changed to use
23423 free/strsignal instead.
23424 (allocate_cluster): Call xcalloc, not calloc.
23425
23426 * objc/objc-act.c (lang_init): Call concat, not xmalloc/strcpy/...
23427 Fix memory leak, free allocated memory.
23428
23429 * prefix.c (translate_name): Call xstrdup, not save_string.
23430 (update_path): Likewise.
23431
23432 * profile.c (branch_prob): Call xstrdup, not xmalloc/strcpy.
23433
23434 * protoize.c (xstrerror, xmalloc, xrealloc, xfree, savestring2):
23435 Don't define. Callers of xfree/savestring2 changed to use
23436 free/concat instead.
23437
23438 * reload1.c (reload): Call xcalloc, not xmalloc/bzero.
23439 (init_elim_table): Likewise.
23440
23441 * resource.c (init_resource_info): Likewise.
23442
23443 * stupid.c (stupid_life_analysis): Likewise.
23444
23445 * toplev.c (xmalloc, xcalloc, xrealloc, xstrdup): Don't define.
23446 (open_dump_file): Call concat, not xmalloc/strcpy/...
23447 (clean_dump_file): Likewise.
23448 (compile_file): Call xstrdup, not xmalloc/strcpy.
23449
23450 Mon Sep 6 15:04:55 1999 Richard Henderson <rth@cygnus.com>
23451
23452 * v850.h (EXPAND_BUILTIN_VA_ARG): New.
23453 * v850.c (v850_va_arg): New.
23454
23455 Tue Sep 7 09:36:01 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
23456
23457 * haifa-sched.c: Tidy comments.
23458
23459 Mon Sep 6 14:30:13 1999 Bernd Schmidt <bernds@cygnus.co.uk>
23460
23461 * Makefile.in (C_AND_OBJC_OBJS): Remove ggc-callbacks.o.
23462 (c-parse.o, c-decl.o, c-lang.o, c-lex.o, c-common.o,
23463 $(out_object_file)): Depend on ggc.h.
23464 * c-common.c: Include "ggc.h".
23465 (combine_strings): If doing GC, use ggc_alloc_string.
23466 * c-decl.c: Include "ggc.h".
23467 (ggc_p): Define with value 0.
23468 (mark_binding_level): New function.
23469 (init_decl_processing): Add GC roots.
23470 (mark_c_function_context): New function.
23471 (lang_mark_false_label_stack): New function.
23472 (lang_mark_tree): New function.
23473 (lang_cleanup_tree): New function.
23474 * c-lang.c: Include "ggc.h".
23475 (lang_init): Call c_parse_init.
23476 * c-lex.c: Include "ggc.h".
23477 (check_linenum): If doing GC, don't copy filenames to permanent
23478 obstack.
23479 * c-parse.in: Include "ggc.h".
23480 (c_parse_init): New function.
23481 * c-tree.h (c_parse_init, mark_c_function_context): Declare.
23482 * objc/Make-lang.in (objc-parse.o): Depend on ggc.h.
23483
23484 * except.c (mark_eh_state): Mark more state.
23485 * function.c (mark_function_state): Likewise.
23486 * ggc-simple.c (ggc_alloc_rtvec): Bring in sync with non-gc version.
23487 (ggc_alloc_string) [GGC_DUMP]: Fix typo.
23488 * toplev.c (mark_file_stack): New function.
23489 (compile_file): If doing GC, use ggc_alloc_string on input filename.
23490 (main): Add root for input_file_stack.
23491
23492 * i386.c: Include "ggc.h".
23493 (ix86_mark_machine_status): New function.
23494 (override_options): Set mark_machine_status.
23495
23496 Mon Sep 6 15:26:23 1999 Bernd Schmidt <bernds@cygnus.co.uk>
23497
23498 * tree.c (copy_node): Copy node contents also if doing GC.
23499
23500 Mon Sep 6 08:42:06 1999 Alexandre Oliva <oliva@dcc.unicamp.br>
23501
23502 * collect2.c (scan_libraries): Fix double-thinko :-).
23503
23504 Mon Sep 6 02:42:36 1999 Jeffrey A Law (law@cygnus.com)
23505
23506 * collect2.c (scan_libraries): Fix thinko.
23507
23508 * cse.c (delete_trivially_dead_insns): Do not skip the last
23509 insn if it is a real insn.
23510
23511 Sun Sep 5 18:57:42 1999 Mark Mitchell <mark@codesourcery.com>
23512
23513 * Makefile.in (ggc-simple.o): Depend on hash.h.
23514 * ggc.h (ggc_add_tree_hash_table_root): Declare.
23515 (ggc_mark_tree_varray): Likewise.
23516 (ggc_mark_tree_hash_table): Likewise.
23517 * ggc-simple.c: Include hash.h.
23518 (ggc_mark_tree_hash_table_ptr): New function.
23519 (ggc_mark_tree_hash_table_entry): Likewise.
23520 (ggc_mark_tree_hash_table): Likewise.
23521 (ggc_add_tree_hash_table_root): Likewise.
23522 * varray.h (const_equiv_data): Use struct rtx_def *, rather than
23523 rtx, when defining fields.
23524
23525 Sun Sep 5 18:57:42 1999 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
23526
23527 * profile.c (output_func_start_profiler): Remove apparently
23528 nonsensical call to start_sequence.
23529
23530 Sun Sep 5 17:34:33 1999 Richard Henderson <rth@cygnus.com>
23531
23532 * clipper/clipper.c (clipper_va_start): Fix typos.
23533
23534 * pyr/pyr.c (pyr_build_va_list, pyr_va_start, pyr_va_arg): New stubs.
23535 * spur/spur.c (spur_build_va_list, spur_va_start): New stubs.
23536 (spur_va_arg): New stub.
23537
23538 * configure.in: Comment out pyramid.
23539
23540 Sun Sep 5 19:11:01 1999 Michael Meissner <meissner@cygnus.com>
23541
23542 * i386.h (MASK_{DEBUG_{ADDR,ARG},INTEL_SYNTAX}): Move so these
23543 don't conflict with the bits that win32, cygwin, and dgux
23544 defines.
23545
23546 Sun Sep 5 09:31:56 1999 Richard Henderson <rth@cygnus.com>
23547 Bernd Schmidt <bernds@cygnus.co.uk>
23548
23549 * integrate.c (function_cannot_inline_p): Do not inline
23550 functions with forced labels.
23551
23552 Sun Sep 5 00:35:17 1999 Richard Henderson <rth@cygnus.com>
23553 Bernd Schmidt <bernds@cygnus.co.uk>
23554 Mark Mitchell <mark@codesourcery.com>
23555
23556 * Makefile.in (ggc-simple.o): Depend on varray.h.
23557 (rtl.o): Depend on ggc.h.
23558 (genattrtab.o): Depend on ggc.h.
23559 (print-tree.o): Likewise.
23560 (fold-const.o): Likewise.
23561 * emit-rtl.c (sequence_element_free_list): Remove, and all references.
23562 (make_insn_raw): Don't cache insns when GC'ing.
23563 (emit_insn_before): Likewise.
23564 (emit_insn_after): Likewise.
23565 (emit_insn): Likewise.
23566 (start_sequence): Use xmalloc to allocate the sequence_stack.
23567 (end_sequence): Add free to free it.
23568 (gen_sequence): Don't cache insns when GC'ing.
23569 (clear_emit_caches): Don't use sequence_element_free_list.
23570 (init_emit): Use xcalloc, not xmalloc+bzero.
23571 * fold-const.c (size_int_wide): Kill the cache, when GC'ing.
23572 * function.c (pop_function_context_from): Use free to free the
23573 fixup_var_refs_queue.
23574 (put_reg_into_stack): Allocate it with xmalloc.
23575 * genattrtab.c: Include ggc.h.
23576 (operate_exp): Don't use obstack_free when GC'ing.
23577 (simplify_cond): Likewise.
23578 (simplify_text_exp): Likewise.
23579 (optimize_attrs): Likewise.
23580 * gengenrtl.c (gendef): Use ggc_alloc_rtx to allocate RTL, when
23581 GC'ing.
23582 (gencode): Generate a #include for ggc.h.
23583 * ggc-callbacks.c (ggc_p): Define it to zero.
23584 * ggc-none.c (ggc_p): Likewise.
23585 * ggc-simple.c: Include varray.h.
23586 (ggc_mark_tree_varray): New function.
23587 (ggc_add_tree_varray_root): Likewise.
23588 (ggc_mark_tree_varray_ptr): Likewise.
23589 * ggc.h (ggc_p): Declare.
23590 (varray_head_tag): Likewise.
23591 (ggc_add_tree_varray_root): Declare.
23592 * print-tree.c (print_node): Don't check for TREE_PERMANENT
23593 inconsistencies when GC'ing.
23594 * rtl.c: Include ggc.h.
23595 (rtvec_alloc): Use ggc_alloc_rtvec when GC'ing.
23596 (rtx_alloc): Use ggc_alloc_rtx when GC'ing.
23597 (rtx_free): Don't call obstack_free when GC'ing.
23598 * toplev.c (rest_of_compilation): Call ggc_collect after every
23599 pass, if GC'ing.
23600 * tree.c (push_obstacks): Do nothing, if GC'ing.
23601 (pop_obstacks_nochange): Likewise.
23602 (pop_obstacks): Likewise.
23603 (make_node): Use ggc_alloc_tree when GC'ing.
23604 (copy_node): Likewise.
23605 (get_identifier): Use ggc_alloc_string when GC'ing.
23606 (build_string): Likewise.
23607 (make_tree_vec): Use ggc_alloc_tree when GC'ing.
23608 (tree_cons): Likewise.
23609 (build1): Likewise.
23610 (type_hash_canon): Don't call obstack_free when GC'ing.
23611
23612 Sat Sep 4 21:52:32 1999 Richard Henderson <rth@cygnus.com>
23613
23614 * haifa-sched.c (schedule_block): Use next_nonnote_insn instead
23615 of NEXT_INSN when examining speculative insns for SCHED_GROUP_P.
23616
23617 Sat Sep 4 20:40:19 1999 Richard Henderson <rth@cygnus.com>
23618 Bernd Schmidt <bernds@cygnus.co.uk>
23619 Mark Mitchell <mark@codesourcery.com>
23620
23621 * Makefile.in (stor-layout.o): Depend on ggc.h.
23622 (expr.o): Depend on ggc.h.
23623 (profile.o): Depend on ggc.h.
23624 (stor-layout.o): Depend on ggc.h.
23625 * emit-rtl.c (init_emit_once): Add gc roots.
23626 * expr.c: Include ggc.h.
23627 (emit_block_move): Add gc roots.
23628 (clear_storage): Likewise.
23629 * expr.h (init_stor_layout_once): New function.
23630 * profile.c: Include ggc.h.
23631 (init_arc_profiler): profiler_label is a root.
23632 * scan.c (make_sstring_space): Trust xrealloc to function
23633 correctly with first parameter NULL.
23634 * stor-layout.c: Include ggc.h.
23635 (set_sizetype): Add gc root.
23636 (init_stor_layout_once): New function.
23637 * toplev.c (compile_file): Call it.
23638
23639 Sat Sep 4 19:26:25 1999 Richard Henderson <rth@cygnus.com>
23640 Bernd Schmidt <bernds@cygnus.co.uk>
23641 Mark Mitchell <mark@codesourcery.com>
23642
23643 * Makefile.in (tree.o): Depend on ggc.h.
23644 (varasm.o): Likewise.
23645 (function.o): Likewise.
23646 (stmt.o): Likewise.
23647 (except.o): Likewise.
23648 (optabs.o): Likewise.
23649 (emit-rtl.o): Likewise.
23650 * emit-rtl.c: Include ggc.h.
23651 (sequence_element_free_list): Remove, and all references.
23652 (mark_sequence): New functions.
23653 (mark_emit_state): New function.
23654 * except.c: Include ggc.h.
23655 (mark_eh_node, mark_eh_stack, mark_eh_queue): New functions.
23656 (mark_tree_label_node): New functions.
23657 (mark_eh_state): New function.
23658 * function.c: Include ggc.h.
23659 (mark_temp_slot, mark_function_chain): New functions.
23660 (mark_function_state): New function.
23661 (init_function_once): New function.
23662 * function.h (init_function_once): New function.
23663 * ggc-callbacks.c (lang_mark_false_label_stack): New function.
23664 * ggc.h (label_node): Declare.
23665 (eh_status, emit_status, stmt_status, varasm_status): Likewise.
23666 (lang_mark_false_label_stack): New function.
23667 (mark_temp_slot): Remove declaration.
23668 (mark_function_chain): Likewise.
23669 (mark_eh_state): Adjust prototype.
23670 (mark_stmt_state, mark_emit_state, mark_varasm_state, mark_optab):
23671 Likewise.
23672 * optabs.c: Include ggc.h.
23673 (mark_optab): New function.
23674 (init_optabs): Add gc roots.
23675 * stmt.c: Include ggc.h.
23676 (mark_cond_nesting, mark_loop_nesting): New functions.
23677 (mark_block_nesting, mark_case_nesting, mark_goto_fixup): Likewise.
23678 (mark_stmt_state): New function.
23679 * toplev.c (compile_file): Call init_function_once.
23680 * tree.c: Include ggc.h.
23681 (type_hash): Move declaration earlier in file.
23682 (TYPE_HASH_SIZE, type_hash_table): Likewise.
23683 (init_obstacks): Add gc roots.
23684 (mark_type_hash): New function.
23685 * varasm.c: Include ggc.h.
23686 (mark_pool_constant): New function.
23687 (mark_varasm_state): New function.
23688
23689 Sat Sep 4 22:28:56 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23690
23691 * ggc-simple.c (ggc_root, ggc_collect): Wrap prototype with PROTO.
23692
23693 Sat Sep 4 18:01:45 1999 Bernd Schmidt <bernds@cygnus.co.uk>
23694
23695 * c-decl.c (struct language_function): Renamed from struct c_function.
23696 Delete elt NEXT.
23697 (c_function_chain): Delete.
23698 (push_c_function_context): New arg F. Don't warn about nested
23699 functions here. Fill LANGUAGE elt of F. Delete code to update
23700 c_function_chain. Don't call push_function_context.
23701 (pop_c_function_context): New arg F. Restore from there instead of
23702 from c_function_chain. Don't call pop_function_context. Clear out
23703 LANGUAGE field of F when done.
23704 * c-lang.c: Include "function.h"
23705 (lang_init): Initialize save_lang_status and restore_lang_status.
23706 * c-parse.in (nested_function, nested_function_notype): Warn about
23707 nested functions. Call push_function_context/pop_function_context
23708 instead of the _c_ variants.
23709 * c-tree.h (push_c_function_context, pop_c_function_context): Update
23710 prototype.
23711 * Makefile.in (c-lang.o): Update dependencies.
23712
23713 * emit-rtl.c (init_emit): Use xmalloc to allocate regno_reg_rtx,
23714 regno_pointer_flag, regno_pointer_align.
23715 (gen_reg_rtx): Use xrealloc to enlarge them.
23716 (free_emit_status): New function.
23717 * function.c (mark_machine_status, mark_lang_status): New variables.
23718 (assign_stack_local_1): Renamed from assign_outer_stack_local. Merge
23719 in some bits from assign_stack_local. All callers changed to use new
23720 name.
23721 (assign_stack_local): Just call assign_stack_local_1.
23722 (free_after_compilation): New function.
23723 (put_reg_into_stack): Simplify to always call assign_stack_local_1.
23724 (trampoline_address): Likewise.
23725 (assign_parms): Use xcalloc/xrealloc to allocate parm_reg_stack_loc.
23726 (prepare_function_start): Explicitly clear some more variables.
23727 * function.h (struct function): New elt can_garbage_collect.
23728 (mark_machine_status, mark_lang_status): Declare variables.
23729 (free_after_compilation, free_emit_status, free_varasm_status,
23730 init_varasm_status): Declare functions.
23731 * toplev.c (rest_of_compilation): Call free_after_compilation when
23732 done with the current function.
23733 * varasm.c (free_varasm_status): New function.
23734
23735 Sat Sep 4 17:15:13 1999 Richard Henderson <rth@cygnus.com>
23736
23737 * sparc.h (EXPAND_BUILTIN_VA_START): Define.
23738 (EXPAND_BUILTIN_VA_ARG): Define.
23739 * sparc.c (sparc_va_start): New.
23740 (sparc_va_arg): New.
23741
23742 Sun Sep 5 11:11:59 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
23743
23744 * config/c4x/c4x.h (DBR_OUTPUT_SEQEND): Use XVECEXP not XEXPs.
23745
23746 Sun Sep 5 10:13:19 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
23747
23748 * config/c4x/c4x.h (CALLER_SAVE_PROFITABLE): Disable.
23749
23750 Sat Sep 4 13:44:01 1999 Mark Mitchell <mark@codesourcery.com>
23751
23752 * Makefile.in (C_AND_C_OBJS): Add gcc-callbacks.o.
23753 (OBJS): Add $(GGC).
23754 (ggc-callbacks.o): New target.
23755 * ggc-callbacks.c: New file.
23756
23757 Sat Sep 4 22:53:13 1999 Bernd Schmidt <bernds@cygnus.co.uk>
23758
23759 * expr.h: Collapse individual optab and libfunc vars to arrays.
23760 (optab_index, libfunc_index): New enumerations.
23761 (optab_table, libfunc_table): New arrays.
23762 Add accessor macros for both.
23763
23764 * optabs.c (optab_table, libfunc_table): New.
23765 Delete declarations for individual optab and libfunc vars.
23766
23767 Sat Sep 4 12:57:17 1999 Richard Henderson <rth@cygnus.com>
23768
23769 * i386/sco5.h (RETURN_POPS_ARGS): Name change ix86_return_pops_args.
23770
23771 Sat Sep 4 11:19:52 1999 Richard Henderson <rth@cygnus.com>
23772
23773 * Makefile.in (GGC, GGC_LIB): New.
23774 (HOST_RTL): Include ggc-none.o.
23775 (ggc-simple.o): New target.
23776 (ggc-none.o): Likewise.
23777 * tree.h (tree_common): Add gc_mark.
23778 * rtl.h (struct rtx_def): Steal a bit from code to make gc_mark.
23779 (struct rtvec_def): Add gc_mark.
23780 * emit-rtl.c (global_rtl): Update static initializers to contain
23781 enough initializers.
23782 * ggc.h, ggc-none.c, ggc-simple.c: New files.
23783 * toplev.c (gc_time): New variable.
23784 (all_time): New variable.
23785 (compile_file): Print gc time.
23786 (print_time): Calculate percentage of the whole.
23787
23788 Sat Sep 4 13:11:01 1999 Bernd Schmidt <bernds@cygnus.co.uk>
23789
23790 Change obstack memory management and varasm constant pool handling so
23791 that nested functions are treated like any other functions.
23792 * function.c (init_machine_status): New variable.
23793 (push_function_context_to): Set contains_functions for the outer
23794 function. Don't call save_varasm_status.
23795 (pop_function_context_from): Don't call restore_varasm_status. Don't
23796 set current_function_contains_functions.
23797 (prepare_function_start): Call init_varasm_status rather than
23798 init_const_rtx_hash_table. Call (*init_machine_status) if the pointer
23799 is non-null.
23800 * function.h (struct function) Add field varasm. Delete fields
23801 inline_obstacks, inl_emit, const_rtx_hash_table, first_pool,
23802 last_pool, const_rtx_sym_hash_table, pool_offset, const_double_chain.
23803 (init_machine_status): Declare.
23804 (save_varasm_status, restore_varasm_status): Delete declarations.
23805 (save_tree_status, restore_tree_status): Delete last argument.
23806 * integrate.c (initialize_for_inline): Lose arg COPY. Delete copying
23807 code. All callers changed.
23808 (copy_decl_list, copy_decl_tree, copy_decl_rtls, copy_for_inline,
23809 save_constants_in_decl_trees, restore_constants, save_constants,
23810 save_for_inline_eh_labelmap, save_for_inline_copying): Delete
23811 functions.
23812 (inlining): New variable.
23813 (reg_map, label_map, insn_map, orig_asm_operands_vector,
23814 copy_asm_operands_vector, copy_asm_constraints_vector): Delete
23815 variables.
23816 (save_for_inline_nocopy): Don't save constants.
23817 Don't set inl_emit field in current_function.
23818 (expand_inline_function): Use emit field, not inl_emit, of the inlined
23819 function. Set new variable inlining before
23820 calling copy_rtx_and_substitute.
23821 (copy_rtx_and_substitute): In MEM and SYMBOL_REF cases, handle
23822 constant pool references if inlining is nonzero.
23823 Delete ADDRESS and (most of the) CONST cases.
23824 (output_inline_function): Save and restore current_function/
23825 current_function_decl. Delete restore_constants code. Don't call
23826 init_const_rtx_hash_table.
23827 * output.h (init_const_rtx_hash_table): Don't declare.
23828 * rtl.h (struct function): Declare.
23829 (get_pool_constant_for_function, get_pool_mode_for_function): Declare.
23830 * toplev.c (rest_of_compilation): Don't treat nested functions or
23831 functions containing them specially. Delete all code to deal with
23832 save_for_inline_copying.
23833 * tree.c (toplev_inline_obstacks, extra_inline_obstacks,
23834 inline_obstacks): Delete variables.
23835 (save_tree_status): Lose arg CONTEXT. All callers changed.
23836 Simply allocate a new function_maybepermanent_obstack for the new
23837 function, delete all the special cases.
23838 Don't save inline_obstacks.
23839 (restore_tree_status): Lose arg CONTEXT. All callers changed.
23840 Delete special handling for function_maybepermanent_obstack; simply
23841 free it if empty.
23842 Don't restore inline_obstacks.
23843 (permanent_allocation): Delete code that frees inline_obstacks.
23844 (print_inline_obstack_statistics): Delete function.
23845 (dump_tree_statistics): Don't call it.
23846 * varasm.c (struct varasm_status): New.
23847 (const_rtx_hash_table, const_rtx_sym_hash_table, first_pool,
23848 last_pool, pool_offset, const_double_chain): Delete global
23849 variables, replace with accessor macros.
23850 (immed_double_const): Don't walk const_double_chain outside a
23851 function, but don't treat nested functions specially anymore.
23852 (immed_real_const_1): Likewise.
23853 (clear_const_double_mem): Don't treat nested functions specially.
23854 (init_const_rtx_hash_table): Deleted, code moved to init_varasm_status.
23855 (save_varasm_status, restore_varasm_status): Delete functions.
23856 (init_varasm_status): New function.
23857 (force_const_mem): Don't treat nested functions specially.
23858 (find_pool_constant): Accept new arg F, search for constants in
23859 that function's pool rather than the current one. All callers
23860 changed.
23861 (get_pool_constant_for_function, get_pool_mode_for_function): New
23862 functions.
23863
23864 * i386.c (init_386_machine_status): New function, mostly from
23865 clear_386_stack_locals.
23866 (struct machine_functions): Rename element names to avoid name
23867 clashes.
23868 (pic_label_rtx, pic_label_name, i386_stack_locals): New accessor
23869 macros, replacing global variables.
23870 (clear_386_stack_locals, save_386_machine_status,
23871 restore_386_machine_status): Delete functions.
23872 (override_options): Initialize init_machine_status.
23873 * i386.h (INIT_EXPANDERS): Delete macro.
23874 (save_386_machine_status, restore_386_machine_status,
23875 clear_386_stack_locals): Delete declarations.
23876
23877 Sat Sep 4 16:56:28 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
23878
23879 * config/c4x/c4x.md (rptb_init): Renamed from *rptb_init.
23880 (doloop_begin): Simplify pattern and use emit_jump_insn.
23881 (doloop_end): Simplify pattern, switch operand order,
23882 and use emit_jump_insn.
23883
23884 Fri Sep 3 19:02:38 1999 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
23885
23886 * function.h (struct function): Add new element LANGUAGE.
23887 (save_lang_status): Declare new variable.
23888 (restore_lang_status): Likewise.
23889 * function.c (save_lang_status): Define.
23890 (restore_lang_status): Likewise.
23891 (push_function_context_to): Call language-specific save function.
23892 (pop_function_context_from): Call language-specific restore function.
23893
23894 Fri Sep 3 01:16:18 1999 Alasdair Baird <alasdair@wildcat.demon.co.uk>
23895
23896 * i386.md (movsf_1): Check REG_P before use of REGNO.
23897 (movdf_1): Likewise.
23898 (movxf_1): Likewise.
23899 (extendsfdf2): Likewise.
23900 (extendsfxf2): Likewise.
23901 (extenddfxf2): Likewise.
23902
23903 Sat Sep 4 11:37:15 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
23904
23905 * config/c4x/c4x.c (c4x_emit_move_sequence): Do not force large
23906 constants into memory.
23907 (c4x_shiftable_constant): New function.
23908 * config/c4x/c4x.c (LEGITIMATE_CONSTANT_P): Allow any CONST_INT.
23909 (c4x_shiftable_constant): Declare.
23910 * config/c4x/c4x.md (loadqi_big_constant, loadhi_big_constant,
23911 ashlqi3_noclobber): Add new patterns and associated splitters.
23912
23913 Fri Sep 3 16:22:17 1999 Richard Henderson <rth@cygnus.com>
23914
23915 * dbxout.c (dbxout_init): Use xcalloc instead of xmalloc+bzero.
23916 * dwarf2out.c (dwarf2out_frame_init): Likewise.
23917 * final.c (shorten_branches): Likewise.
23918 * global.c (global_alloc): Likewise.
23919 * haifa-sched.c (build_control_flow): Likewise.
23920 * stmt.c (check_for_full_enumeration_handling): Likewise.
23921 (estimate_case_costs): Likewise.
23922
23923 Fri Sep 3 15:49:56 1999 Mark Mitchell <mark@codesourcery.com>
23924
23925 * rtl.h (RTL_CHECKC2): Fix typo in last change.
23926
23927 Fri Sep 3 15:13:34 1999 Richard Henderson <rth@cygnus.com>
23928
23929 * flow.c (propagate_block): Use XEXP not SET_DEST for a USE.
23930 (recompute_reg_usage): Likewise.
23931 * rtlanal.c (find_regno_fusage): Likewise.
23932
23933 * rtl.c (rtl_check_failed_code1): New function.
23934 (rtl_check_failed_code2): New.
23935 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTVEC_ELT): Parenthesize args.
23936 (RTL_CHECKC1, RTL_CHECKC2): New.
23937 (XC*): New accessor macros.
23938 (NOTE_*, LABEL_NAME, LABEL_NUSES, ADDRESSOF_REGNO): Use them.
23939 (ADDRESSOF_DECL, JUMP_LABEL, LABEL_REFS, LABEL_NEXTREF): Likewise.
23940 (CONTAINING_INSN, REGNO, INTVAL, SUBREG_REG, SUBREG_WORD): Likewise.
23941 (ASM_OPERANDS_*, MEM_ALIAS_SET, SET_SRC, SET_DEST): Likewise.
23942 (TRAP_*, RANGE_INFO_*): Likewise.
23943
23944 Fri Sep 3 15:10:20 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23945
23946 * Makefile.in (tlink.o): Don't depend on toplev.h.
23947
23948 * collect2.c (c_file, o_file, export_file, import_file, ldout,
23949 output_file, nm_file_name, ldd_file_name, strip_file_name,
23950 c_file_name, prefix_list, libexts, is_ctor_dtor, find_a_file,
23951 add_prefix, prefix_from_env, prefix_from_string, do_wait,
23952 fork_execute, maybe_unlink, add_to_list,
23953 extract_init_priority, write_list, dump_list,
23954 dump_prefix_list, write_list_with_asm, write_c_file,
23955 write_c_file_stat, write_c_file_glob, scan_prog_file,
23956 scan_libraries, is_in_list, resolve_lib_name, use_import_list,
23957 ignore_library, extract_string, notice, dump_file, target_machine,
23958 collect_wait, collect_execute, libname, locatelib, aix_std_libs,
23959 read_file, print_load_command): Constify a char*.
23960 (fdopen, error, fatal, fatal_perror): Don't prototype.
23961 (my_strerror): Remove. All callers use xstrerror instead.
23962 (xcalloc, xmalloc, xrealloc, xstrdup, putenv): Remove definitions.
23963 (main): Add prototype. Constify lots of char* ptrs. Change calls
23964 to xcalloc/strcpy/strcat/... to one call to concat.
23965 (main, scan_prog_file, scan_libraries): Use an intermediate
23966 `const char **' to build an argv array.
23967 (mapfile, libselect, libcompare, locatelib): Add prototypes.
23968
23969 * collect2.h (collect_execute, collect_wait, dump_file,
23970 file_exists): Constify a char*.
23971 (ldout, c_file_name, temporary_obstack, permanent_obstack,
23972 temporary_firstobj, vflag, debug): Add extern declarations.
23973 (fancy_abort, error, notice, fatal, fatal_perror): Add prototypes.
23974
23975 * tlink.c: Don't include toplev.h.
23976 (vflag, debug, ldout, c_file_name, temporary_obstack,
23977 permanent_obstack, temporary_firstobj): Don't declare.
23978 (tlink_execute, frob_extension, symbol_hash_lookup,
23979 file_hash_lookup, demangled_hash_lookup, tlink_init, freadsym,
23980 recompile_files, read_repo_files, demangle_new_symbols,
23981 scan_linker_output): Constify a char*.
23982 (symbol_hash_newfunc, file_hash_newfunc, demangled_hash_newfunc,
23983 do_tlink): Mark parameters with ATTRIBUTE_UNUSED.
23984
23985 Fri Sep 3 18:09:24 1999 Andrew Haley <aph@cygnus.com>
23986
23987 * config/m68k/m68kelf.h: Set USE_GAS; this makes gcc generate jbsr
23988 (relative) rather than jsr (absolute) subroutine call insns.
23989 * config/m68k/m68k-coff.h: Ditto.
23990
23991 Fri Sep 3 17:24:31 1999 Richard Earnshaw <rearnsha@arm.com>
23992
23993 * arm.c (note_invalid_constants): No need to ignore ASMs, we can
23994 now rework these too.
23995 (arm_reorg): If an insn can't reach the end of the current pool,
23996 ensure that we emit that pool before the insn.
23997
23998 Fri Sep 3 09:14:32 1999 Marc Espie <espie@tetto.liafa.jussieu.fr>
23999
24000 * tlink.c (scan_linker_output): Skip the initial underscore in
24001 a mangled name if appropriate.
24002
24003 Fri Sep 3 01:28:33 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24004
24005 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
24006 objc_tree_code_name, synth_id_with_class_suffix, warn_with_method,
24007 error_with_ivar, gen_declarator, create_builtin_decl,
24008 my_build_string, generate_descriptor_table, generate_ivars_list,
24009 generate_dispatch_table, check_protocols, TAG_GETCLASS,
24010 TAG_GETMETACLASS, TAG_MSGSEND, TAG_MSGSENDSUPER, TAG_EXECCLASS,
24011 dump_base_name, lang_decode_option, build_encode_expr,
24012 start_class, finish_class, encode_pointer, really_start_method,
24013 gen_declaration, dump_interface, handle_class_ref, handle_impent):
24014 Constify.
24015 (objc_demangle, objc_printable_name, generate_struct_by_value_array):
24016 Add static prototypes.
24017 (build_objc_string_decl, build_selector_reference_decl,
24018 encode_bitfield, build_class_reference_decl): Remove unused
24019 parameter, all callers changed.
24020 (maybe_objc_method_name): Mark with ATTRIBUTE_UNUSED.
24021 (objc_printable_name): Likewise. Change second parameter to type int.
24022 (init_objc): Use memcpy, not bcopy, to avoid casts.
24023
24024 Thu Sep 2 21:49:52 1999 Richard Henderson <rth@cygnus.com>
24025
24026 * reload1.c (eliminate_regs_in_insn): Avoid eliminating the
24027 reg notes on a deleted insn.
24028 * gcse.c (hash_expr_1): Use XWINT on a CONST_DOUBLE.
24029
24030 Thu Sep 2 20:18:12 1999 Jeffrey A Law (law@cygnus.com)
24031
24032 * i386.c (ix86_attr_length_default): Handle TYPE_FXCH.
24033
24034 Thu Sep 2 22:00:08 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
24035
24036 * stmt.c (expand_asm_operands): Fix index into inout_mode when
24037 reading it.
24038
24039 Thu Sep 2 13:00:48 1999 Richard Henderson <rth@cygnus.com>
24040
24041 * stmt.c (expand_asm_operands): Invoke MD_ASM_CLOBBERS if present.
24042 * tm.texi (MD_ASM_CLOBBERS): Document it.
24043
24044 Thu Sep 2 10:22:40 1999 Richard Henderson <rth@cygnus.com>
24045
24046 * dwarf2out.c (dwarf2out_line): Constify `lastfile'.
24047 * except.c (expand_rethrow): Remove unused variable.
24048 * expr.c (do_jump_by_parts_greater_rtx): Likewise.
24049 * flow.c (replace_insns): Likewise.
24050 (create_edge_list, verify_edge_list): Likewise.
24051 * gcse.c (cprop_cc0_jump): Protect declaration with HAVE_cc0.
24052
24053 * genemit.c (gen_expand): Only emit `operands[N]' decl if there
24054 is special code to run.
24055 (main): Don't define operands to emit_operand.
24056 * genrecog.c (main): Don't emit an empty peephole2_insn function.
24057
24058 * rtl.h (NOTE_BASIC_BLOCK): Use X0BBDEF.
24059
24060 * alpha/alpha.h (normal_memory_operand): Declare.
24061 (reg_no_subreg_operand): Declare.
24062 * alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use HOST_WIDE_INT_PRINT_DEC.
24063
24064 Thu Sep 2 10:19:20 1999 Richard Henderson <rth@cygnus.com>
24065
24066 * c-parse.in (compstmt_primary_start): New, broken out of first
24067 part of compstmt handling in primary.
24068 (primary): Use it. Add an error clause.
24069 (compstmt_nostart): Renamed from compstmt; remove all
24070 initial invocations of compstmt_start.
24071 (compstmt): New.
24072
24073 Thu Sep 2 01:35:50 1999 Marc Espie <espie@cvs.openbsd.org>
24074
24075 * protoize.c (gen_aux_info_file): Let pexecute call choose_temp_base if
24076 needed.
24077
24078 Thu Sep 2 00:43:59 1999 Finn Hakansson <finn@axis.com>
24079
24080 * combine.c (simplify_shift_const): Remove extra semicolon.
24081 * dwarf2out.c (remove_AT): Likewise.
24082 * expmed.c (expand_mult): Likewise.
24083 * gcov.c (create_program_flow_graph): Likewise.
24084 * reorg.c (mostly_true_jump): Likewise.
24085
24086 Thu Sep 2 00:06:43 1999 Jeffrey A Law (law@cygnus.com)
24087
24088 * fold-const.c (fold_range_test): Do not try to fold the range
24089 test if the rhs or lhs has side effects.
24090
24091 * combine.c (simplify_rtx): Recognize another case of a synthesized
24092 sign extension.
24093
24094 * varasm.c (mark_constant_pool): When marking indirect references,
24095 only look at SYMBOL_REFs.
24096
24097 * except.c (expand_fixup_region_end): Do not peek at
24098 INSN_UID (node->entry->outer_context) for flag_new_exceptions.
24099
24100 Thu Sep 2 13:52:53 1999 Geoffrey Keating <geoffk@cygnus.com>
24101
24102 * flags.h: New variables align_loops, align_loops_log,
24103 align_jumps, align_jumps_log, align_labels, align_labels_log,
24104 align_functions, align_functions_log.
24105 * toplev.c: Define them.
24106 (f_options): Handle -falign-* when they have no argument.
24107 (main): Add logic to set variables for -falign-functions,
24108 -falign-jumps, -falign-labels, -falign-loops.
24109 Make it -fsched-verbose=<n> and -finline-limit=<n>.
24110 (display_help): Change help to match options.
24111 * final.c (LABEL_ALIGN): Default to align_labels_log.
24112 (LABEL_ALIGN_MAX_SKIP): Default to align_labels-1.
24113 (LOOP_ALIGN): Default to align_loops_log.
24114 (LOOP_ALIGN_MAX_SKIP): Default to align_loops-1.
24115 (LABEL_ALIGN_AFTER_BARRIER): Default to align_jumps_log.
24116 (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Default to align_jumps-1.
24117 * varasm.c (assemble_start_function): Handle align_functions.
24118
24119 * config/sparc/sparc.h: Don't declare sparc_align_*.
24120 Don't provide LABEL_ALIGN_AFTER_BARRIER or LOOP_ALIGN.
24121 (DEFAULT_SPARC_ALIGN_FUNCS): Delete; take functionality into
24122 sparc.c.
24123 (FUNCTION_BOUNDARY): Fix incorrect use---it's not just a request,
24124 it's a promise.
24125 * config/sparc/sparc.c: Delete sparc_align_loops,
24126 sparc_align_jumps, sparc_align_funcs and the corresponding string
24127 variables.
24128 (sparc_override_options): Default align_functions on ultrasparc.
24129 Delete -malign-* handling.
24130
24131 * config/mips/mips.c (override_options): On 64-bit targets,
24132 try to align code to 64-bit boundaries.
24133 (print_operand): New substitution, %~,
24134 which aligns labels to align_labels_log.
24135 * config/mips/mips.md (div_trap_normal): Use %~.
24136 (div_trap_mips16): Likewise.
24137 (abssi): Likewise.
24138 (absdi2): Likewise.
24139 (ffssi2): Likewise.
24140 (ffsdi2): Likewise.
24141 (ashldi3_internal): Likewise.
24142 (ashrdi3_internal): Likewise.
24143 (lshrdi3_internal): Likewise.
24144 (casesi_internal): Likewise.
24145
24146 Wed Sep 1 21:13:48 1999 Richard Henderson <rth@cygnus.com>
24147
24148 Merge new ia32 backend from the branch!
24149
24150 * i386.h, i386.c, i386.md, reg-stack.c, i386/unix.h: Many changes.
24151 See ChangeLog.P2 on new_ia32_branch for details.
24152
24153 * rtl.h (stack_regs_mentioned_p): Delete prototype.
24154 * i386/cygwin.h (SUBTARGET_PROLOGUE): No more do_rtl.
24155 * i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
24156 * i386/gas.h (ASM_FILE_START): Define.
24157 * i386/winnt.c (i386_pe_valid_decl_attribute_p): Update
24158 for name change of ix86_valid_decl_attribute_p.
24159 (i386_pe_valid_type_attribute_p): Similarly.
24160
24161 Wed Sep 1 18:21:23 1999 Richard Henderson <rth@cygnus.com>
24162
24163 * emit-rtl.c (init_emit_once): Don't use GET_MODE_WIDER_MODE
24164 to step through CC modes.
24165
24166 Wed Sep 1 20:18:06 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
24167
24168 * regmove.c (fixup_match_1): Don't move INSN in front of P if
24169 it would end up in the shadow of a live flags regsiter.
24170
24171 Wed Sep 1 11:32:00 1999 Bernd Schmidt <bernds@cygnus.co.uk>
24172
24173 * reload1.c: Fix many indentation problems.
24174 * reload.c: Likewise.
24175
24176 Tue Aug 31 22:08:03 1999 Marc Espie <espie@cvs.openbsd.org>
24177
24178 * alias.c (non_local_reference_p): Constify fmt.
24179
24180 Tue Aug 31 23:19:35 1999 Michael Meissner <meissner@cygnus.com>
24181
24182 * config/i386/xm-cygwin.h (HAVE_DOS_BASED_FILE_SYSTEM): Define.
24183
24184 Tue Aug 31 16:44:52 1999 Jeffrey A Law (law@cygnus.com)
24185
24186 * cse.c (delete_trivially_dead_insns): Do not delete stores to
24187 the internal_arg_pointer.
24188
24189 Tue Aug 31 13:35:42 1999 Richard Henderson <rth@cygnus.com>
24190
24191 Merge peephole2 from new_ia32_branch:
24192 * Makefile.in (STAGESTUFF): Add *.peephole2.
24193 (mostlyclean): Likewise.
24194 (recog.o): Depend on resource.h.
24195
24196 * final.c (peephole): Conditionalize decl on HAVE_peephole.
24197 (final_scan_insn): Likewise for the invocation of peephole.
24198 * genconfig.c (main): Look for peephole and peephole2 patterns.
24199 Emit HAVE_peephole* accordingly.
24200 * genpeep.c (main): Conditionalize entire output on HAVE_peephole.
24201 * flags.h (flag_peephole2): Declare.
24202 * toplev.c: New pass peephole2. New flag -fpeephole2.
24203
24204 * genattrtab.c (main): Count DEFINE_PEEPHOLE2.
24205 * gencodes.c (main): Likewise.
24206 * genextract.c (main): Likewise.
24207 * genoutput.c (main): Likewise.
24208 * genemit.c (max_operand_1): Look for the max scratch operand.
24209 (gen_rtx_scratch): New.
24210 (gen_exp): Use it, and pass on new arg subroutine_type.
24211 (gen_expand): Take max scratch into account.
24212 (gen_split): Emit peephole2 functions.
24213 (output_peephole2_scratch): New.
24214 (main): Include hard-reg-set.h and resource.h. Handle peephole2.
24215 * genrecog.c (routine_type): Add PEEPHOLE2.
24216 (IS_SPLIT): New.
24217 (make_insn_sequence): Match outer parallel for peep2. Discard
24218 top level scratches and dups.
24219 (add_to_sequence): New args insn_type and top. Update all callers.
24220 Handle toplevel peep2 matching insns.
24221 (write_subroutine): Handle peep2.
24222 (write_tree_1): Likewise.
24223 (write_tree): Likewise.
24224 (main): Likewise.
24225 (change_state): New arg afterward. Update all callers.
24226 Handle matching separate insns.
24227 * recog.c (recog_next_insn): New.
24228 (peephole2_optimize): New.
24229 * rtl.def (DEFINE_PEEPHOLE2): New.
24230 * resource.c (find_free_register): New argument last_insn. Use it
24231 to find a register available through the entire span.
24232 * resource.h (find_free_register): Update prototype.
24233
24234 Tue Aug 31 11:51:06 1999 Jim Kingdon <http://developer.redhat.com>
24235
24236 * i386.c (output_strlen_unroll): Don't write xops[7]
24237 label if it wasn't set.
24238
24239 1999-08-31 12:44 -0700 Zack Weinberg <zack@bitmover.com>
24240
24241 * cpplib.c (struct directive): Const-ify name pointer and
24242 function pointer prototype.
24243 (validate_else, do_define, do_line, do_include, do_undef,
24244 do_error, do_pragma, do_ident, do_if, do_xifdef, do_else,
24245 do_elif, do_endif, do_sccs, do_assert, do_unassert,
24246 do_warning): Const-ify second arg.
24247 (directive_table): Mark const. Reorder entries by frequency
24248 of usage, record statistics.
24249
24250 1999-08-31 12:20 -0700 Zack Weinberg <zack@bitmover.com>
24251
24252 * rtl.h (RTL_CHECK1, RTL_CHECK2): New macros which type- and
24253 bounds- check RTL accesses if --enable-checking.
24254 (RTVEC_ELT): Bounds check if --enable-checking.
24255 (XWINT, XINT, XSTR, XEXP, XVEC, XMODE, XBITMAP, XTREE,
24256 XBBDEF): Use RTL_CHECK1/RTL_CHECK2 as appropriate.
24257 (XVECEXP, XVECLEN): Define in terms of XVEC, RTVEC_ELT, and
24258 GET_NUM_ELEM.
24259 (X0WINT, X0INT, X0STR, X0EXP, X0VEC, X0MODE, X0BITMAP, X0TREE,
24260 X0BBDEF, X0ADVFLAGS): New macros for accessing '0' slots of RTXes.
24261
24262 (ADDR_DIFF_VEC_FLAGS): Use X0ADVFLAGS.
24263 (NOTE_SOURCE_FILE): Use X0STR.
24264 (NOTE_BLOCK_NUMBER, NOTE_EH_HANDLER, LABEL_NUSES,
24265 MEM_ALIAS_SET): Use X0INT.
24266 (NOTE_RANGE_INFO, NOTE_LIVE_INFO, NOTE_BASIC_BLOCK,
24267 JUMP_LABEL, LABEL_REFS, LABEL_NEXTREF, CONTAINING_INSN):
24268 Use X0EXP.
24269 * real.h (CONST_DOUBLE_CHAIN): Use X0EXP.
24270 * rtl.c (copy_rtx, copy_most_rtx): Copy '0' slots with X0WINT.
24271 (rtl_check_failed_bounds, rtl_check_failed_type1,
24272 rtl_check_failed_type2, rtvec_check_failed_bounds): New
24273 functions.
24274 (fancy_abort): Fix comment.
24275
24276 * cse.c (canon_hash): Read CONST_DOUBLE data slots with XWINT.
24277 (cse_insn): Decrement LABEL_NUSES for jump target before
24278 deleting jump insn.
24279 * emit-rtl.c (gen_rtx_CONST_DOUBLE): Use X0EXP for slot 1.
24280 * final.c (alter_subreg): Compute regno before changing x to
24281 REG; set REGNO(x) after changing it.
24282 * flow.c (count_basic_blocks): Use XWINT to inspect EH_REGION
24283 notes containing CONST_INTs.
24284 (delete_eh_regions): Use NOTE_EH_HANDLER.
24285 * function.c (put_reg_into_stack): Make reg a MEM before
24286 initializing it.
24287 (fixup_var_refs_insns): Save REG_NOTES (insn) in case we
24288 delete insn.
24289 (gen_mem_addressof): Make reg a MEM before initializing it.
24290 * integrate.c (copy_rtx_and_substitute): Copy '0' slots with
24291 X0WINT.
24292 * local-alloc.c (update_equiv_regs): Zap REG_NOTES before
24293 deleting an insn, not after.
24294 (block_alloc): Only look at PATTERN(insn) if we have to, and
24295 only if it's format class 'i'.
24296 * loop.c (check_dbra_loop): Check bl->biv->add_val is a
24297 CONST_INT before using its INTVAL.
24298 * print-rtl.c (print_rtx): Use X0STR.
24299 * regmove.c (fixup_match_1): Don't look at PATTERN of
24300 non-class-'i' insn chain elements.
24301 * reload.c (loc_mentioned_in_p): Take address of
24302 in->fld[1].rtx directly.
24303 * reload1.c (reload): Change reg to a MEM before initializing
24304 it.
24305 * varasm.c (mark_constant_pool): Skip CONST_DOUBLES, which
24306 have no names.
24307 * config/i386/i386.md (decrement_and_branch_if_zero): Fix typo.
24308
24309 Fri Aug 20 13:43:41 1999 Andrew Haley <aph@cygnus.com>
24310
24311 * config/mips/mips.c (machine_dependent_reorg): Force a
24312 barrier to output the local constant pool if a barrier hasn't
24313 been found at a natural point in the instruction stream.
24314
24315 Mon Aug 30 22:04:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24316
24317 * c-parse.in (language_string): Constify.
24318
24319 * dwarf2out.c (language_string): Remove declaration.
24320
24321 * dwarfout.c (language_string): Likewise.
24322
24323 * toplev.c (language_string, init_parse, finish_parse): Likewise.
24324
24325 * tree.h (language_string, init_parse, finish_parse): Declare.
24326
24327 * i386/sun386.h (language_string): Remove declaration.
24328
24329 * mips.h (language_string): Likewise.
24330
24331 * nextstep.h (language_string): Likewise.
24332
24333 * nextstep21.h (language_string): Likewise.
24334
24335 * rs6000.c (language_string): Likewise.
24336
24337 Mon Aug 30 20:56:08 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24338
24339 * Makefile.in (OBJS, PROTO_OBJS): Remove getpwd.o.
24340 (getpwd.o): Remove target.
24341
24342 * getpwd.c: Delete file. Its in libiberty now.
24343
24344 * dbxout.c (getpwd): Don't prototype.
24345 * dwarf2out.c (getpwd): Likewise
24346 * dwarfout.c (getpwd): Likewise
24347 * final.c (getpwd): Likewise.
24348 * protoize.c (getpwd): Likewise.
24349
24350 Mon Aug 30 20:21:34 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24351
24352 * cse.c: (fold_rtx): Cast to HOST_WIDE_INT in left shift.
24353
24354 Mon Aug 30 16:07:49 1999 Richard Henderson <rth@cygnus.com>
24355
24356 * flow.c (new_insn_dead_notes): Use sets_reg_or_subreg not
24357 mark_set_resources.
24358
24359 Mon Aug 30 12:23:53 1999 Jim Wilson <wilson@cygnus.com>
24360
24361 * fixinc/Makefile.in (subdir): New.
24362 (fixincl.x, inclhack.sh, fixincl.sh): Use cp instead of $(CP).
24363 (Makefile): New.
24364
24365 Mon Aug 30 01:02:09 1999 Jeffrey A Law (law@cygnus.com)
24366
24367 * emit-rtl.c (copy_rtx_if_shared): A MEM which references
24368 virtual_stack_vars_rtx or virtual_incoming_args_rtx can not
24369 be shared.
24370
24371 * invoke.texi: Fix typo.
24372
24373 * dwarf2out.c (mem_loc_descriptor): New argument MODE. All callers
24374 changed. Handle autoincrement addressing modes.
24375
24376 * integrate.c (copy_rtx_and_substitute): Handle internal_arg_pointer
24377 just like we would the virtual incoming args register when
24378 integrating.
24379
24380 Sun Aug 29 23:17:54 1999 David Edelsohn <edelsohn@gnu.org>
24381
24382 * rs6000.h (ASM_FILE_START): Specify complete filename, including
24383 path, in .file directive.
24384
24385 Sun Aug 29 05:06:43 1999 Russ Allbery <rra@stanford.edu>
24386
24387 * gcc.texi (External Bugs): Remove obsolete note about Perl on
24388 SunOS.
24389
24390 1999-08-29 08:38 -0700 Zack Weinberg <zack@bitmover.com>
24391
24392 * stdbool.h: Make the typedef name _Bool, with bool a #defined
24393 alias.
24394
24395 Sun Aug 29 09:36:50 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24396
24397 * tree.c (tree_code_name): Constify a char*.
24398
24399 * tree.h (tree_code_name, decl_printable_name): Likewise.
24400
24401 * function.h (struct function): Likewise.
24402
24403 * toplev.c (decl_name, decl_printable_name): Likewise.
24404
24405 * vax/vms.h (MAYBE_VMS_FUNCTION_PROLOGUE): Likewise.
24406
24407 * objc/objc-act.c (decl_printable_name): Remove redundant prototype.
24408 (init_objc): Remove function pointer cast.
24409
24410 Sun Aug 29 05:01:17 1999 John David Anglin <dave@hiauly1.hia.nrc.ca>
24411
24412 * pa.md (interspace_jump): New pattern.
24413 (builtin_longjmp): New expander.
24414
24415 1999-08-29 Bernd Schmidt <bernds@cygnus.co.uk>
24416
24417 * fp-bit.c (add, sub, multiply, divide, compare, _eq_f2, _ne_f2,
24418 _gt_f2, _ge_f2, _lt_f2, _le_f2, float_to_si, float_to_usi, negate,
24419 sf_to_df, df_to_sf): Fix potential problem with alias analysis.
24420
24421 Sun Aug 29 04:30:52 1999 John Wehle (john@feith.com)
24422
24423 * jump.c (delete_prior_computation): Also check calls
24424 to constant functions. Don't bother checking for a
24425 REG_UNUSED note before adding it.
24426 (delete_computation): Handle multi-word hard registers
24427 when synthesizing missing REG_DEAD notes for a register
24428 which is both set and used by an insn.
24429
24430 1999-08-29 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
24431
24432 * loop.c (this_loop_info): New variable.
24433 (loop_has_call, loop_has_volatile, loop_has_tablejump,
24434 loop_continue, loops_enclosed): Replace with fields in this_loop_info.
24435 All uses updated.
24436 (prescan_loop, strength_reduce): New argument loop_info. All callers
24437 updated.
24438 (scan_loop): New variable loop_info, initialise to address of
24439 this_loop_info.
24440 (prescan_loop): Set loop_info->vtop if find NOTE_INSN_LOOP_VTOP.
24441 Delete variable loop_has_multiple_exit targets and replace with
24442 field in this_loop_info.
24443 (find_and_verify_loops): Rename this_loop to this_loop_num.
24444 (strength_reduce): Delete loop_iteration_info. Replace variable
24445 loop_info with function argument of same name.
24446 (insert_bct): Rework test for loop being completely unrolled.
24447
24448 * loop.h (struct loop_info): New fields num, loops_enclosed,
24449 has_call, has_volatile, has_tablejump, has_multiple_exit_targets,
24450 has_indirect_jump, and cont. Redefine use of unroll_number.
24451 (loop_unroll_number): Delete.
24452
24453 * unroll.c (unroll_loop): Store loop unroll count in unroll_number
24454 field of loop_info.
24455 (loop_iterations): Delete variable vtop and instead use
24456 loop_info->vtop computed in prescan_loop.
24457
24458 Sun Aug 29 03:27:23 1999 Scott Weikart <scott@igc.apc.org>
24459
24460 * fix-header.c (main): Do not pass a null pointer to strcmp.
24461
24462 Sun Aug 29 03:18:48 1999 William Bader (william@nscs.fast.net)
24463
24464 * configure.in (i[34567]86-*-sco3.2v4*): Target does not truncate
24465 filenames.
24466 * configure: Rebuilt.
24467
24468 Sat Aug 28 19:36:05 1999 Jeffrey A Law (law@cygnus.com)
24469
24470 * jump.c (jump_optimize_1): Do not delete assignments to
24471 internal_arg_pointer.
24472 * cse.c (delete_trivially_dead_insns): Always consider a set of
24473 the internal_arg_pointer live.
24474
24475 Sat Aug 28 16:24:31 1999 Richard Henderson <rth@cygnus.com>
24476
24477 * flow.c (flow_delete_insn_chain): Rename from delete_insn_chain.
24478 (update_life_info) [REG_WAS_0]: Search the original insns rather
24479 than the new insns for the note. Fix typos finding note_dest.
24480 If no dest found, discard the note rather than abort.
24481 [REG_NOALIAS]: Handle as REG_NO_CONFLICT.
24482 (replace_insns): Remove the old insn list after update_life_info
24483 not before.
24484
24485 Sat Aug 28 16:20:12 1999 Richard Henderson <rth@cygnus.com>
24486
24487 * haifa-sched.c (sched_analyze): Clear LOG_LINKS before calling
24488 sched_analyze_insn.
24489 (sched_analyze_1): Let add_dependence care for not adding dups.
24490 (sched_analyze_2): Likewise.
24491 (add_branch_dependences): Likewise.
24492
24493 Sat Aug 28 15:58:16 1999 Mumit Khan <khan@xraylith.wisc.edu>
24494
24495 * i386/winnt.c (export_list): New type.
24496 (exports_head): Rename to
24497 (export_head): this.
24498 (i386_pe_record_exported_symbol): Add is_data flag.
24499 (i386_pe_asm_file_end): Emit directive for exported variables.
24500 * i386/cygwin.h (i386_pe_record_exported_symbol): Update
24501 prototype.
24502 * i386/cygwin.h (ASM_OUTPUT_COMMON): Specify symbol type.
24503 (ASM_DECLARE_OBJECT_NAME): Likewise.
24504 (ASM_DECLARE_FUNCTION_NAME): Likewise.
24505 * i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
24506
24507 Fri Aug 27 15:35:24 1999 Jeffrey A Law (law@cygnus.com)
24508
24509 * cse.c (fold_rtx): Work around bug in Sun V5.0 compilers.
24510
24511 * pa.c (emit_move_sequence): Do not stop on SUBREG_WORD of an
24512 operand.
24513
24514 Fri Aug 27 14:01:19 1999 Marc Espie <espie@cvs.openbsd.org>
24515
24516 * config/openbsd.h: Define SET_ASM_OP.
24517 * tm.texi: cross-reference SET_ASM_OP in the index.
24518
24519 1999-08-27 13:27 -0700 Zack Weinberg <zack@bitmover.com>
24520
24521 * rtl.c: Define CONST_DOUBLE_FORMAT to the appropriate format
24522 for a CONST_DOUBLE, at compile time. Initialize rtx_length
24523 and class_narrowest_mode at compile time. Kill init_rtl.
24524 Mark rtx_length, mode_class, mode_size, mode_unit_size,
24525 mode_wider_mode, mode_mask_array, class_narrowest_mode, and
24526 rtx_format as const. Kill all references to EXTRA_CC_MODES or
24527 EXTRA_CC_NAMES.
24528 * rtl.def (CONST_DOUBLE): Use CONST_DOUBLE_FORMAT macro for
24529 format.
24530 * rtl.h: Declare rtx_length and rtx_format as const.
24531 * machmode.def: Define CC(). Use CC() to define CCmode. If
24532 EXTRA_CC_MODES is defined, expand it here.
24533 * machmode.h: Declare mode_class, mode_size, mode_unit_size,
24534 mode_wider_mode, mode_mask_array, and class_narrowest_mode as
24535 const. Kill all references to EXTRA_CC_MODES.
24536
24537 * toplev.c: Don't prototype or call init_rtl.
24538 * optabs.c: Don't call init_mov_optab.
24539 * genemit.c: Don't generate init_mov_optab. Don't call
24540 init_rtl.
24541 * gengenrtl.c: Duplicate calculation of CONST_DOUBLE_FORMAT
24542 here.
24543 * genattr.c, genattrtab.c, gencodes.c, genconfig.c,
24544 genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c,
24545 genrecog.c: Don't call init_rtl.
24546
24547 * arc.h, arm.h, c4x.h, i386.h, i960.h, m88k.h, pa.h, pdp11.h,
24548 rs6000.h, sparc.h: Don't define EXTRA_CC_NAMES. Use CC() in
24549 definition of EXTRA_CC_MODES.
24550
24551 * md.texi: Kill ref to EXTRA_CC_NAMES.
24552 * tm.texi: Document new way to define EXTRA_CC_MODES.
24553
24554 * genrecog.c: Do not look up the name of a define_split.
24555 (Unrelated bugfix.)
24556
24557 Fri Aug 27 17:03:42 1999 Nick Clifton <nickc@cygnus.com>
24558
24559 * config/v850/v850.md: Fix typo introduced by previous delta.
24560
24561 Fri Aug 27 09:48:59 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24562
24563 * gcc.c (fatal): Make definition static to match prototype.
24564
24565 Fri Aug 27 10:33:35 1999 Bernd Schmidt <bernds@cygnus.co.uk>
24566
24567 * combine.c (get_last_value): Don't look for earlier sets if the last
24568 known set is somewhere in between the insns being combined.
24569
24570 Fri Aug 27 10:03:12 BST 1999 Nathan Sidwell <nathan@acm.org>
24571
24572 * configure.in: Don't use shell ! to negate exit codes
24573 * configure: Regenerate
24574
24575 Fri Aug 27 09:36:17 1999 Andreas Schwab <schwab@suse.de>
24576
24577 * function.c (assign_stack_temp_for_type): Fix change of Mar 5 for
24578 the fact that ALIGN is measured in bits, not bytes.
24579
24580 1999-08-27 00:27 -0700 Zack Weinberg <zack@bitmover.com>
24581
24582 * errors.c: New file; defines functions error, warning, and
24583 fatal, variables have_error and progname.
24584 * errors.h: New file; prototypes and decls for stuff in errors.c.
24585
24586 * Makefile: Add rules to build errors.o and
24587 $(HOST_PREFIX)errors.o. Link genconfig, gencodes, genemit,
24588 genopinit, genrecog, genextract, genpeep, genattr, and
24589 genoutput with errors.o. Add errors.h to deps of genconfig.o,
24590 gencodes.o, genemit.o, genopinit.o, genrecog.o, genextract.o,
24591 genpeep.o, genattr.o, and genoutput.o.
24592
24593 * genconfig.c, gencodes.c, genemit.c, genopinit.c, genrecog.c,
24594 genextract.c, genpeep.c, genattr.c: Include errors.h. Don't
24595 define or prototype fatal. Set progname at beginning of main.
24596 * genoutput.c: Likewise, and don't define or prototype error
24597 either.
24598
24599 * c-typeck.c (c_expand_start_case): Return immediately if exp
24600 is an ERROR_MARK.
24601 * fold-const.c (operand_equal_p): Return immediately if arg1
24602 or arg0 are ERROR_MARKs.
24603 * stor-layout.c (layout_type [case RECORD_TYPE]): Ignore
24604 fields of type ERROR_MARK when calculating if the record can
24605 go in a register.
24606
24607 Fri Aug 27 01:03:48 1999 Jim Kingdon <http://developer.redhat.com>
24608 with much help from Jeffrey A Law and Richard Henderson
24609
24610 * i386.md: In the 6 insns which call output_fix_trunc,
24611 earlyclobber operands[0].
24612
24613 Fri Aug 27 01:01:51 1999 Philip Blundell <pb@nexus.co.uk>
24614
24615 * jump.c (duplicate_loop_exit_test): Call reg_scan_update after
24616 creating new registers.
24617
24618 1999-08-26 23:09 -0700 Zack Weinberg <zack@bitmover.com>
24619
24620 * i386.h: Declare ix86_cpu_string, ix86_arch_string,
24621 i386_reg_alloc_order, i386_regparm_string,
24622 i386_align_loops_string, i386_align_jumps_string,
24623 i386_align_funcs_string, i386_preferred_stack_boundary_string,
24624 and i386_branch_cost_string as type "const char *".
24625 * i386.c: Define all above strings as type "const char *".
24626
24627 Thu Aug 26 20:36:30 1999 Jim Wilson <wilson@cygnus.com>
24628
24629 * dwarf2out.c (output_aranges): Check DWARF_OFFSET_SIZE not PTR_SIZE
24630 when emitting alignment padding. Emit padding byte of 0 instead of 4.
24631
24632 Thu Aug 26 18:11:20 1999 Mark Mitchell <mark@codesourcery.com>
24633
24634 * tree.c (array_type_nelts): Don't create RTL_EXPRs from
24635 SAVE_EXPRs unless the SAVE_EXPRs have already been expanded.
24636
24637 Thu Aug 26 19:33:23 1999 Jim Wilson <wilson@cygnus.com>
24638
24639 * dwarf2out.c (DWARF2_ASM_LINE_DEBUG_INFO): Add default definition.
24640 (debug_dwarf): Add DWARF2_ASM_LINE_DEBUG_INFO support.
24641 (dwarf2out_line, dwarf2out_finish): Likewise.
24642 * tm.texi (DWARF2_ASM_LINE_DEBUG_INFO): Add documetation.
24643
24644 Thu Aug 26 16:10:56 1999 Gavin Romig-Koch <gavin@cygnus.com>
24645
24646 * tree.c (lang_unsave_expr_now) : Correct return type.
24647 * tree.h (lang_unsave_expr_now) : Same.
24648
24649 Thu Aug 26 13:12:29 1999 Jeffrey A Law (law@cygnus.com)
24650
24651 * pa.c (cint_ok_for_move): Use CONST_INT_OK_FOR_LETTER_P macros
24652 instead of duplicating code.
24653
24654 Thu Aug 26 18:32:32 1999 Bernd Schmidt <bernds@cygnus.co.uk>
24655
24656 * gcse.c (hash_scan_insn): Don't scan obvious no-ops.
24657
24658 1999-08-26 09:42 -0700 Zack Weinberg <zack@bitmover.com>
24659
24660 * tree.h: fancy_abort always takes three args.
24661 * resource.c: Move include of system.h before toplev.h.
24662
24663 Thu Aug 26 09:46:16 1999 Nick Clifton <nickc@cygnus.com>
24664
24665 * dwarf2out.c (mem_loc_descriptor): Accept LABEL_REFs as well
24666 as SYMBOL_REFs.
24667
24668 1999-08-25 22:10 -0700 Zack Weinberg <zack@bitmover.com>
24669
24670 * system.h: Don't redefine abort or trim_filename.
24671 * rtl.h: Define abort to fancy_abort (__FILE__, __LINE__, 0)
24672 or fancy_abort (__FILE__, __LINE__, __FUNCTION__) depending on
24673 whether or not __FUNCTION__ is available.
24674 * tree.h: Duplicate rtl.h's definition of abort, for files
24675 that don't include rtl.h. Delete all code to perform type
24676 checking with a compiler other than GCC.
24677 * varray.h: Delete all code to perform type checking with a
24678 compiler other than GCC. Make VARRAY_CHECK() always evaluate
24679 its arguments exactly once, using a statement expression.
24680 Adjust the VARRAY_<type> accessor macros to match.
24681 * toplev.h (fatal_insn, fatal_insn_not_found): Kill.
24682 (_fatal_insn, _fatal_insn_not_found): New fns, take info on
24683 caller's location. Define fatal_insn and fatal_insn_not_found
24684 as macros that use _fatal_insn and _fatal_insn_not_found.
24685 (fancy_abort, trim_filename): Kill prototypes.
24686
24687 * rtl.c (trim_filename): Move here from toplev.c.
24688 (fancy_abort): New function.
24689 (DIR_SEPARATOR): Provide default definition.
24690 * tree.c (tree_check_failed, tree_class_check_failed): Go
24691 through fancy_abort.
24692 (tree_check, tree_class_check, cst_or_constructor_check,
24693 expr_check): Delete.
24694 * varray.c (varray_check_failed): New function.
24695 * toplev.c (fatal_insn, fatal_insn_not_found): Replace with
24696 _fatal_insn and _fatal_insn_not_found. Go through
24697 fancy_abort.
24698 (trim_filename, fancy_abort): Delete.
24699
24700 * builtins.c (expand_builtin_args_info): Report ICE with abort.
24701 * except.c (start_catch_handler): Report ICE with error/abort
24702 combo.
24703 * final.c (output_operand_lossage): Likewise.
24704 * flow.c (verify_flow_info): Likewise.
24705
24706 * gcc.c: Prototype fatal.
24707 * gengenrtl.c: Undef abort after including rtl.h not system.h.
24708 * genattr.c, genattrtab.c, genemit.c, genextract.c,
24709 genflags.c, genopinit.c, genoutput.c, genpeep.c, genrecog.c:
24710 Don't define fancy_abort.
24711
24712 Wed Aug 25 17:56:59 1999 Richard Henderson <rth@cygnus.com>
24713
24714 * optabs.c (emit_cmp_and_jump_insns): Be more thorough in
24715 canonization.
24716
24717 Wed Aug 25 15:35:55 1999 Richard Henderson <rth@cygnus.com>
24718
24719 * m88k.h (VERSION_INFO2): Kill.
24720 (VERSION_STRING): Kill.
24721 (TM_RCS_ID): Kill.
24722 (VERSION_INFO1): Tidy.
24723 (TARGET_VERSION): Update.
24724 * m88k/dgux.h (VERSION_INFO2): Kill.
24725 (ASM_FIRST_LINE): Adjust for death of VERSION_STRING.
24726 * m88k/luna.h (VERSION_INFO1): Tidy.
24727 * m88k/sysv4.h (VERSION_INFO1): Likewise.
24728 * m88k.c (out_rcs_id, tm_rcs_id): Kill.
24729 (output_file_start): Adjust for death of VERSION_STRING.
24730
24731 1999-08-25 13:51 -0700 Jim Meyering <meyering@ascend.com>
24732
24733 * cpplib.c (detect_if_not_defined): New function.
24734 (do_if): Use it to detect potential once-only headers.
24735
24736 Wed Aug 25 14:00:18 1999 Jason Merrill <jason@yorick.cygnus.com>
24737
24738 * c-common.c (combine_strings): Always set TREE_CONSTANT.
24739
24740 Wed Aug 25 15:27:22 1999 Gavin Romig-Koch <gavin@cygnus.com>
24741
24742 * combine.c (nonzero_bits) : Allow single-ly set registers to be
24743 anywere in the function only if they are pseudos and set before
24744 being used (not live at the start of the function).
24745 (num_sign_bit_copies) : Same.
24746 (get_last_value_validate) : Same.
24747 (get_last_value) : Same.
24748
24749 Wed Aug 25 11:13:29 1999 Richard Henderson <rth@cygnus.com>
24750
24751 * loop.c (express_from): Try harder to unify (* c N) and (* c M)
24752 where N and M are constant and N is an integer multiple of M.
24753
24754 Wed Aug 25 13:55:47 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
24755
24756 * sbitmap.h (sbitmap_intersection_of_succs): Add prototype.
24757 (sbitmap_intersection_of_preds, sbitmap_union_of_succs,
24758 sbitmap_union_of_preds): Add prototypes.
24759 * sbitmap.c (sbitmap_intersection_of_succs): New function to compute
24760 the intersection of successors with the new flow graph structures.
24761 (sbitmap_intersection_of_preds): New function to compute the
24762 intersection of predecessors with the new flow graph structures.
24763 (sbitmap_union_of_succs): New function to compute the union of
24764 successors with the new flow graph structures.
24765 (sbitmap_union_of_preds): New function to compute the union of
24766 predecessors with the new flow graph structures.
24767 * gcse.c (compute_rdm, compute_available): Use new sbitmap routines.
24768 (expr_reaches_here_p): Use edge and basic_block structures instead
24769 of s_preds and s_succs.
24770 (compute_cprop_avinout): Use new sbitmap routines.
24771 (pre_expr_reaches_here_p): Use edge and basic_block structures instead
24772 of s_preds and s_succs.
24773 * flow.c (compute_flow_dominators): Compute dominators using
24774 edges and basic blocks instead of s_preds and s_succs.
24775
24776 Wed Aug 25 13:41:47 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
24777
24778 * lists.c (unused_insn_list, unused_expr_list): New file for
24779 maintaining various types of lists. New statics for maintaining a
24780 cache of available INSN_LIST and EXPR_LIST nodes.
24781 (free_list): Static function for freeing a list of INSN/EXPR nodes.
24782 (alloc_INSN_LIST): Function to get a free INSN_LIST node.
24783 (alloc_EXPR_LIST): Function to get a free EXPR_LIST node.
24784 (init_EXPR_INSN_LIST_cache): Initialize the cache lists.
24785 (free_EXPR_LIST_list): Free an entire list of EXPR_LIST nodes.
24786 (free_INSN_LIST_list): Free an entire list of INSN_LIST nodes.
24787 (free_EXPR_LIST_node): Free an individual EXPR_LIST node.
24788 (free_INSN_LIST_node): Free an individual INSN_LIST node.
24789 * haifa-sched.c (unused_insn_list, unused_expr_list): Moved to flow.c
24790 (free_list, alloc_INSN_LIST, alloc_EXPR_LIST): Moved to flow.c
24791 (remove_dependence, free_pending_lists): Use new global routines.
24792 (flush_pending_lists, sched_analyze_insn): Use new global routines.
24793 (sched_analyze, compute_block_backward_dependences): Use new routines.
24794 (sched_analyze_1, sched_analyze_2): Use new routines.
24795 (schedule_insns): Use new global routines.
24796 * rtl.h (init_EXPR_INSN_LIST_cache, free_EXPR_LIST_list): Add function
24797 prototypes.
24798 (free_INSN_LIST_list, free_EXPR_LIST_node): Add prototypes.
24799 (free_INSN_LIST_node, alloc_INSN_LIST, alloc_EXPR_LIST): Add function
24800 prototypes.
24801 * toplev.c (rest_of_compilation): Initialize node cache.
24802 * Makefile.in (OBJS): Add lists.o to list of object files.
24803 (lists.o): Add dependancies.
24804
24805 Wed Aug 25 17:31:56 1999 Nick Clifton <nickc@cygnus.com>
24806
24807 * config/v850/v850.md: Fix compile time warning messages.
24808 * config/v850/v850.c: Fix compile time warning messages.
24809 * config/v850/v850.h: Fix compile time warning messages.
24810
24811 Wed Aug 25 09:44:43 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24812
24813 * genattr.c (gen_attr): Add prototype arguments for get_attr_*().
24814 Remove unused prototype for `init_lengths'.
24815
24816 Wed Aug 25 09:32:31 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24817
24818 * calls.c (emit_call_1): Mark parameter `stack_size' with
24819 ATTRIBUTE_UNUSED.
24820 (expand_call): Initialize variable `insn'.
24821 (emit_library_call): Likewise for variable `high_to_save'.
24822 (emit_library_call_value): Likewise.
24823 (store_one_arg): Likewise for variables `lower_bound' and
24824 `upper_bound'.
24825
24826 * combine.c (try_combine): Likewise for variables `i2_code_number'
24827 and `other_code_number'.
24828 (find_split_point): Likewise for variables `pos', `unsignedp' and
24829 `inner'.
24830 (simplify_if_then_else): Likewise for variables `op' and `c1'.
24831 (simplify_and_const_int): Remove unused variable `width'.
24832 (merge_outer_ops): Likewise.
24833
24834 * cse.c (simplify_binary_operation): Cast an INTVAL() to `unsigned
24835 HOST_WIDE_INT' when comparing against one.
24836 (simplify_relational_operation): Likewise.
24837 (cse_insn): Initialize variables `src_eqv_volatile',
24838 `src_eqv_in_memory', `src_eqv_in_struct', `src_eqv_hash' and `sets'.
24839
24840 * final.c (init_final): Constify parameter `filename'.
24841 (final_start_function): Mark parameter `optimize' with
24842 ATTRIBUTE_UNUSED.
24843 (profile_function): Likewise for parameters `first' and `optimize'.
24844 (output_source_line): Likewise for parameter `file'.
24845
24846 * integrate.c (subst_constants): Cast a value to `size_t' when
24847 comparing against one.
24848 (mark_stores): Initialize variable `mode'. Cast a value to
24849 `size_t' when comparing against one.
24850
24851 * integrate.h (MAYBE_EXTEND_CONST_EQUIV_VARRAY): Likewise.
24852
24853 * loop.c (move_movables): Initialize variable `first'.
24854 (strength_reduce): Likewise for variable `increment'.
24855 (check_dbra_loop): Likewise for variable `comparison_val'. Cast a
24856 value to `size_t' when comparing against one.
24857 (load_mems): Initialize variable `end_label'.
24858
24859 * output.h (init_final): Constify parameter.
24860
24861 * reload.c (decompose): Initialize variable `base'.
24862
24863 * reload1.c (reload): Likewise for variable `is_scalar'.
24864 (spill_hard_reg): Mark parameter `dumpfile' with ATTRIBUTE_UNUSED.
24865 (choose_reload_regs): Initialize variable `mode'.
24866 (emit_reload_insns): Likewise for variable `store_insn'.
24867 (reload_cse_noop_set_p): Mark parameter `insn' with
24868 ATTRIBUTE_UNUSED.
24869 (reload_combine): Initialize variable `set'.
24870
24871 * unroll.c (unroll_loop): Likewise for variable `local_label'.
24872 (copy_loop_body): Cast a value to `size_t' when comparing against
24873 one.
24874
24875 * varasm.c (assemble_variable): Initialize variable `size_tree'.
24876 (const_hash): Add an `else abort()' in an if-else-if-else sequence.
24877 (remove_from_pending_weak_list): Mark parameter `name' with
24878 ATTRIBUTE_UNUSED.
24879
24880 Wed Aug 25 11:18:39 1999 Bernd Schmidt <bernds@cygnus.co.uk>
24881
24882 * toplev.c (rest_of_compilation): Use decl_printable_name when opening
24883 gcse dump file.
24884
24885 Wed Aug 25 10:57:12 1999 Nick Clifton <nickc@cygnus.com>
24886
24887 * config/arm/telf.h (ASM_WEAKEN_LABEL): Define.
24888 (ASM_DECLARE_FUNCTION_NAME): Define.
24889 (TYPE_ASM_OP, SIZE_ASM_OP, TYPE_OPERAND_FORMAT,
24890 ASM_DECLARE_RESULT, ASM_DECLARE_OBJECT_NAME,
24891 ASM_FINISH_DECLARE_OBJECT, ASM_DECLARE_FUNCTION_SIZE): Define if
24892 not already defined.
24893
24894 Wed Aug 25 01:36:11 1999 John David Anglin <dave@hiauly1.hia.nrc.ca>
24895
24896 * calls.c (emit_call_1): Use call_pop/call_value_pop for all values
24897 of n_popped when call/call_value are not defined.
24898
24899 Wed Aug 25 01:25:14 1999 Jeffrey A Law (law@cygnus.com)
24900
24901 * tm.texi: GNU CC -> GCC conversion.
24902 (CC1_SPEC): Indicate it is used for all language front ends.
24903
24904 Tue Aug 24 23:43:03 1999 Mark Mitchell <mark@codesourcery.com>
24905
24906 * flow.c (delete_block): Spell NOTE_INSN_EH_REGION_BEG and
24907 NOTE_INSN_EH_REGION_END correctly.
24908
24909 Tue Aug 24 23:26:44 1999 Michael Tiemann <tiemann@holodeck.cygnus.com>
24910 Jeff Law <law@cygnus.com>
24911
24912 * loop.c (strength_reduce): Automatically unroll loops if the
24913 unrolled loop size is smaller than the rolled loop size.
24914
24915 * loop.c (insert_bct): Replace use of sdiv_optab with asr_optab
24916 and delete comment that code should be rewritten.
24917
24918 Tue Aug 24 22:56:35 1999 Jeffrey A Law (law@cygnus.com)
24919
24920 * haifa-sched.c (find_rgns): Mark a block found during the DFS search
24921 as reachable.
24922
24923 * haifa-sched.c (get_visual_tbl_length): Fix off-by-one error.
24924
24925 Tue Aug 24 22:41:06 1999 Mumit Khan <khan@xraylith.wisc.edu>
24926
24927 * fixinc/mkfixinc.sh: Don't fix uwin headers.
24928 * i386/uwin.h (MD_STARTFILE_PREFIX): Define.
24929 (LINK_SPEC): Add -u _main when building executables.
24930 (ASM_DECLARE_FUNCTION): Update from Cygwin.
24931 (ASM_FILE_END): Use the default for ix86-pe.
24932 * i386/xm-uwin.h (HAVE_BCOPY): Undefine.
24933
24934 Tue Aug 24 20:49:47 1999 Art Haas <ahaas@neosoft.com>
24935
24936 * final.c (output_addr_const): Handle case where ASM_OPEN_PAREN
24937 and ASM_CLOSE_PAREN are empty strings.
24938
24939 Wed Aug 25 12:46:22 1999 Fred Fish <fnf@cygnus.com>
24940 Geoffrey Keating <geoffk@cygnus.com>
24941
24942 * Makefile.in (PREPROCESSOR_DEFINES): New macro.
24943 (protoize.o): Use PREPROCESSOR_DEFINES and DRIVER_DEFINES.
24944 (unprotoize.o): Ditto.
24945 (test-protoize-simple): Don't define STD_PROTO_DIR.
24946 * protoize.c: Use PARAMS rather than PROTO. Minor whitespace
24947 changes to make 'test-protoize-simple' pass.
24948 (STD_PROTO_DIR): Remove define.
24949 (STANDARD_EXEC_PREFIX): Supply default define.
24950 (standard_exec_prefix): New variable, init to STANDARD_EXEC_PREFIX.
24951 (target_machine): New variable, init to DEFAULT_TARGET_MACHINE.
24952 (target_version): New variable, init to DEFAULT_TARGET_VERSION.
24953 (GET_ENV_PATH_LIST): New macro.
24954 (default_syscalls_dir): No longer initialized to STD_PROTO_DIR.
24955 (do_processing): Initialize default_syscalls_dir using new
24956 macros. Use it to initialize syscalls_absolute_filename.
24957
24958 Tue Aug 24 16:58:15 1999 Richard Henderson <rth@cygnus.com>
24959
24960 * jump.c (jump_optimize_1): Do cmov opt on any single-set; force
24961 B into a register before emit_conditional_move.
24962
24963 Tue Aug 24 15:37:03 1999 Richard Henderson <rth@cygnus.com>
24964
24965 * fold-const.c (fold): Reassociate (+ (+ (* a b) c) (* d e))
24966 as (+ (+ (* a b) (* d e)) c). Factor a common power-of-two
24967 multiplicand out of (+ (* a b) (* c d)).
24968
24969 Tue Aug 24 11:46:10 1999 Bob Manson <manson@cygnus.com>
24970 Richard Henderson <rth@cygnus.com>
24971
24972 * haifa-sched.c (split_hard_reg_notes): Move to flow.c
24973 (new_insn_dead_notes): Likewise.
24974 (update_n_sets): Likewise.
24975 (update_flow_info): Move to flow.c, renamed to update_life_info;
24976 extend to handle multiple source insns.
24977 * flow.c: Include resource.h
24978 (unlink_insn_chain): New.
24979 (split_hard_reg_notes): New.
24980 (maybe_add_dead_note): New.
24981 (maybe_add_dead_note_use): New.
24982 (find_insn_with_note): New.
24983 (new_insn_dead_notes): New.
24984 (update_n_sets): New.
24985 (sets_reg_or_subreg_1, sets_reg_or_subreg): New.
24986 (maybe_remove_dead_notes): New.
24987 (update_life_info): New.
24988 (prepend_reg_notes): New.
24989 (replace_insns): New.
24990 * output.h (update_life_info): Declare.
24991 * recog.c (split_block_insns): Use update_life_info.
24992 * resource.c (find_free_register): Use reg_alloc_order, don't use
24993 fixed regs, make sure the mode is supported, don't use new regs.
24994 (reg_dead_p): New.
24995 * rtl.h (replace_insns): Declare.
24996
24997 Tue Aug 24 13:48:39 1999 Nathan Sidwell <nathan@acm.org>
24998
24999 * expr.c (expand_expr): Cope with COND_EXPRs with one
25000 non-returning branch.
25001
25002 Mon Aug 23 22:28:16 1999 Mark Mitchell <mark@codesourcery.com>
25003
25004 * expr.c (store_expr): Always pass down the target, even when not
25005 doing CSE.
25006
25007 1999-08-24 Nick Clifton <nickc@cygnus.com>
25008
25009 * configure.in: Define target_cpu_default for v850 targets.
25010 * configure: Regenerate
25011
25012 * config/v850/v850.h (TARGET_CPU_generic): Define.
25013 (GO_IF_LEGITIMATE_ADDRESS): Insist that SImode and larger constant
25014 addresses are 4 byte aligned.
25015
25016 * config/v850/v850.c (print_operand): Cope with 'R' format DFmode
25017 addresses.
25018
25019 Tue Aug 24 09:32:07 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25020
25021 * genattr.c (function_unit_desc): Constify a char*. Add prototype.
25022 (main): Add prototypes.
25023
25024 * genattrtab.c (substitute_address, write_const_num_delay_slots,
25025 attr_eq, attr_numeral, attr_equal_p, attr_copy_rtx): Prototype.
25026 (write_attr_get): Emit prototypes along with function definition.
25027 (write_eligible_delay): Mark a parameter with ATTRIBUTE_UNUSED.
25028 (write_complex_function): Emit static prototype along with
25029 function definition.
25030
25031 * genemit.c (gen_split): Emit prototypes along with function
25032 definition.
25033
25034 * genoutput.c (output_epilogue): Add prototype to `insn_outfun'.
25035 Likewise for predicates and `insn_operand_predicate'.
25036 (process_template): Emit static prototype along with function
25037 definition.
25038
25039 * genrecog.c (make_insn_sequence): Constify a char*. Add
25040 prototypes for get_split_*().
25041 (write_subroutine): Emit prototypes along with function
25042 definition.
25043
25044 Tue Aug 24 12:35:20 1999 Bernd Schmidt <bernds@cygnus.co.uk>
25045
25046 * gcse.c (find_avail_set): Follow chains of register-register copies.
25047 Use oprs_not_set_p to guarantee that the returned value can be
25048 substituted.
25049 (cprop_insn): Don't verify the return value of find_avail_set with
25050 oprs_not_set_p.
25051
25052 * gcse.c (cprop_jump): New function, broken out of cprop_insn.
25053 (cprop_cc0_jump): New function.
25054 (cprop_insn): Break out new function cprop_jump and use it.
25055 Also use cprop_cc0_jump for machines with CC0.
25056 (cprop): Don't crash if cprop_insn turned the insn into a NOTE.
25057
25058 * tree.h (current_function_calls_setjmp,
25059 current_function_calls_longjmp): Delete declarations.
25060 * dsp16xx.c: Include "function.h".
25061 * elxsi.c: Likewise.
25062 * gmicro.c: Likewise.
25063 * h8300.c: Likewise.
25064 * i370.c: Likewise.
25065 * m32r.c: Likewise.
25066 * mn10200.c: Likewise.
25067 * mn10300.c: Likewise.
25068 * ns32k.c: Likewise.
25069 * spur.c: Likewise.
25070 * v850.c: Likewise.
25071
25072 * rtl.h (rtx_equal_function_value_matters): Declare.
25073 * toplev.c (rtx_equal_function_value_matters): Don't declare.
25074 * cse.c: Likewise.
25075 * function.c: Likewise.
25076 * emit-rtl.c: Likewise.
25077
25078 Tue Aug 24 02:47:44 1999 Jeffrey A Law (law@cygnus.com)
25079
25080 * expr.c (convert_move): Fix arguments to TRULY_NOOP_TRUNCATION
25081 call.
25082
25083 1999-08-24 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
25084
25085 * jump.c (delete_barrier_successors) Match (set (pc) (pc)) insn
25086 exactly.
25087
25088 Mon Aug 23 23:35:52 1999 Matthias Klose <doko@cs.tu-berlin.de>
25089
25090 * cpp.texi: Add a node documenting macro varargs (copied
25091 from extend.texi).
25092
25093 1999-08-23 22:23 -0700 Zack Weinberg <zack@bitmover.com>
25094
25095 * cppspec.c: Put a null pointer at the end of the new argv.
25096
25097 Mon Aug 23 21:23:24 1999 Jeffrey A Law (law@cygnus.com)
25098
25099 * configure.in: Remove code to select/de-select the haifa
25100 scheduler. Every scheduled port gets haifa now.
25101 * configure: Rebuilt.
25102 * flags.h, genattrtab.c, rtl.h, toplev.c: Remove HAIFA ifdefs.
25103 * sched.c Deleted.
25104 * Makefile.in: Corresponding changes.
25105
25106 Mon Aug 23 16:04:13 1999 Bernd Schmidt <bernds@cygnus.co.uk>
25107
25108 * optabs.c (prepare_cmp_insn): Turn COMPARISON arg into a pointer.
25109 All callers changed.
25110 (prepare_float_lib_cmp): Likewise.
25111 Use FLOAT_LIB_COMPARE_RETURNS_BOOL.
25112 * expr.h (emit_float_lib_cmp): Delete declaration.
25113 * tm.texi (FLOAT_LIB_COMPARE_RETURNS_BOOL): Document.
25114 * sparc.h (FLOAT_LIB_COMPARE_RETURNS_BOOL): Define.
25115 * sparc.md (bcc and scc patterns): Don't handle TFmode comparisons
25116 specially.
25117 (cmptf): Now conditional on TARGET_HARD_QUAD.
25118
25119 Fri Aug 20 17:52:27 1999 Jim Wilson <wilson@cygnus.com>
25120
25121 * resource.c (mark_target_live_regs): Use
25122 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED.
25123
25124 Fri Aug 20 19:07:55 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25125
25126 * rtl.c (rtx_class, note_insn_name, reg_note_name): Constify.
25127
25128 * rtl.h (rtx_class, reg_note_name, note_insn_name): Likewise.
25129
25130 * genopinit.c (gen_insn): Use accessor macro, not `rtx_class'.
25131
25132 Fri Aug 20 18:53:43 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25133
25134 * rtl.h (rtx_format): Constify a char*.
25135
25136 * rtl.c (rtx_format): Likewise.
25137 (copy_rtx, copy_most_rtx, read_rtx): Likewise.
25138 (init_rtl): Use accessor macro, not `rtx_format'.
25139
25140 * alias.c (rtx_equal_for_memref_p, find_symbolic_term): Constify a
25141 char*.
25142
25143 * caller-save.c (mark_referenced_regs): Likewise.
25144
25145 * combine.c (subst, make_compound_operation, known_cond,
25146 gen_rtx_combine, update_table_tick, get_last_value_validate,
25147 use_crosses_set_p, mark_used_regs_combine, move_deaths): Likewise.
25148
25149 * cse.c (rtx_cost, mention_regs, canon_hash, exp_equiv_p,
25150 refers_to_p, canon_reg, fold_rtx, cse_process_notes,
25151 count_reg_usage): Likewise.
25152
25153 * emit-rtl.c (gen_rtx, copy_rtx_if_shared, reset_used_flags):
25154 Likewise.
25155
25156 * final.c (leaf_renumber_regs_insn): Likewise.
25157
25158 * flow.c (mark_used_regs, find_use_as_address, dump_flow_info,
25159 dump_edge_info, count_reg_references): Likewise.
25160
25161 * function.c (fixup_var_refs_1, walk_fixup_memory_subreg,
25162 fixup_stack_1, purge_addressof_1, instantiate_virtual_regs_1):
25163 Likewise.
25164
25165 * gcse.c (oprs_unchanged_p, hash_expr_1, expr_equiv_p,
25166 oprs_not_set_p, expr_killed_p, compute_transp, find_used_regs,
25167 add_label_notes): Likewise.
25168
25169 * genattrtab.c (attr_rtx, attr_copy_rtx, encode_units_mask,
25170 clear_struct_flag, count_sub_rtxs, count_alternatives,
25171 compares_alternatives_p, contained_in_p, walk_attr_value,
25172 write_expr_attr_cache): Likewise.
25173
25174 * genconfig.c (walk_insn_part): Likewise.
25175
25176 * genemit.c (max_operand_1, gen_exp): Likewise.
25177
25178 * genextract.c (walk_rtx): Likewise.
25179
25180 * genflags.c (num_operands): Likewise.
25181
25182 * genoutput.c (scan_operands): Likewise.
25183
25184 * genpeep.c (match_rtx): Likewise.
25185
25186 * genrecog.c (add_to_sequence): Likewise.
25187
25188 * haifa-sched.c (may_trap_exp, sched_analyze_2, attach_deaths):
25189 Likewise.
25190
25191 * integrate.c (save_constants, copy_for_inline,
25192 copy_rtx_and_substitute, subst_constants, restore_constants):
25193 Likewise.
25194
25195 * jump.c (mark_jump_label, invert_exp, redirect_exp,
25196 rtx_renumbered_equal_p, rtx_equal_for_thread_p): Likewise.
25197
25198 * local-alloc.c (contains_replace_regs, memref_referenced_p):
25199 Likewise.
25200
25201 * loop.c (record_excess_regs, rtx_equal_for_loop_p,
25202 add_label_notes, replace_call_address, count_nonfixed_reads,
25203 invariant_p, find_single_use_in_loop, find_mem_givs,
25204 find_life_end, maybe_eliminate_biv_1, update_reg_last_use):
25205 Likewise.
25206
25207 * print-rtl.c (reg_names, print_rtx): Likewise.
25208
25209 * recog.c (validate_replace_rtx_1, find_single_use_1): Likewise.
25210
25211 * reg-stack.c (stack_regs_mentioned_p, record_label_references,
25212 record_reg_life_pat, swap_rtx_condition, goto_block_pat,
25213 print_blocks): Likewise.
25214
25215 * regclass.c (fix_register, record_address_regs,
25216 reg_scan_mark_refs): Likewise.
25217
25218 * regmove.c (stable_but_for_p): Likewise.
25219
25220 * reload.c (loc_mentioned_in_p, operands_match_p,
25221 find_reloads_toplevsubst_reg_equivs, find_reloads_address_1,
25222 copy_replacements, refers_to_regno_for_reload_p,
25223 refers_to_mem_for_reload_p, find_inc_amount, regno_clobbered_p,
25224 reload_when_needed_name, reg_class_names, debug_reload_to_stream):
25225 Likewise.
25226
25227 * reload1.c (eliminate_regs, scan_paradoxical_subregs,
25228 delete_address_reloads_1, count_occurrences,
25229 reload_cse_mem_conflict_p, reload_combine_note_use,
25230 add_auto_inc_notes): Likewise.
25231
25232 * resource.c (mark_referenced_resources, mark_set_resources):
25233 Likewise.
25234
25235 * rtlanal.c (rtx_unstable_p, rtx_varies_p, rtx_addr_varies_p,
25236 reg_mentioned_p, regs_set_between_p, modified_between_p,
25237 modified_in_p, refers_to_regno_p, reg_overlap_mentioned_p,
25238 rtx_equal_p, volatile_insn_p, volatile_refs_p, side_effects_p,
25239 may_trap_p, inequality_comparisons_p, replace_rtx, replace_regs,
25240 jmp_uses_reg_or_mem, for_each_rtx, regno_use_in): Likewise.
25241
25242 * sched.c (sched_analyze_2, attach_deaths): Likewise.
25243
25244 * stupid.c (stupid_mark_refs): Likewise.
25245
25246 * unroll.c (remap_split_bivs): Likewise.
25247
25248 * varasm.c (mark_constants): Likewise.
25249
25250 * a29k/a29k.c (uses_local_reg_p): Likewise.
25251
25252 * alpha/alpha.c (summarize_insn): Likewise.
25253
25254 * arm/arm.c (symbol_mentioned_p, label_mentioned_p,
25255 eliminate_lr2ip): Likewise.
25256
25257 * arm/thumb.c (symbol_mentioned_p, label_mentioned_p): Likewise.
25258
25259 * i386/i386.c (symbolic_reference_mentioned_p, copy_all_rtx,
25260 reg_mentioned_in_mem): Likewise.
25261
25262 * ns32k/ns32k.c (global_symbolic_reference_mentioned_p,
25263 symbolic_reference_mentioned_p): Likewise.
25264
25265 * romp/romp.c (unsigned_comparisons_p, hash_rtx): Likewise.
25266
25267 * sh/sh.c (regs_used, mark_use): Likewise.
25268
25269 * vax/vax.c (vax_rtx_cost): Likewise.
25270
25271 Fri Aug 20 18:38:43 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25272
25273 * machmode.h (mode_name): Constify a char*.
25274
25275 * rtl.c (mode_name): Likewise.
25276
25277 * genopinit.c (gen_insn): Use accessor macro, not `mode_name'.
25278
25279 * optabs.c (init_libfuncs): Constify a char*.
25280
25281 * print-tree.c (mode_name): Remove redundant declaration.
25282 (print_node): Use accessor macro, not `mode_name'.
25283
25284 * reload1.c (dump_needs): Constify a char*. Use accessor macro,
25285 not `mode_name'.
25286 (new_spill_reg): Constify a char*.
25287
25288 * tree.c (mode_name): Remove redundant declaration.
25289
25290 Fri Aug 20 18:31:26 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25291
25292 * rtl.c (rtx_name): Constify a char*.
25293
25294 * rtl.h (rtx_name, fix_sched_param): Likewise.
25295
25296 * gmicro/gmicro.c (rtx_name): Remove redundant declaration.
25297 (mypr): Use accessor macro, not `rtx_name'.
25298
25299 * genemit.c (print_code): Constify a char*.
25300
25301 * genopinit.c (gen_insn): Use accessor macro, not `rtx_name'.
25302
25303 * genpeep.c (print_code): Constify a char*.
25304
25305 * genrecog.c (print_code): Likewise.
25306
25307 * graph.c (start_fct, start_bb, node_data, draw_edge, end_fct,
25308 end_bb): Add static prototype.
25309 (draw_edge): Constify a char*.
25310 (end_bb): Remove unused parameter.
25311
25312 * haifa-sched.c (fix_sched_param, safe_concat, print_exp
25313 print_block_visualization): Constify a char*.
25314
25315 Fri Aug 20 15:02:10 1999 Mark Mitchell <mark@codesourcery.com>
25316
25317 * c-common.c (c_get_alias_set): Update comment.
25318
25319 1999-08-20 Andreas Jaeger <aj@arthur.rhein-neckar.de>
25320
25321 * linux.h (LIB_SPEC): Added.
25322
25323 Fri Aug 20 22:32:17 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
25324
25325 * config/c4x/c4x.h (STARTFILE_SPEC): Don't def.
25326
25327 1999-08-19 18:43 -0700 Zack Weinberg <zack@bitmover.com>
25328
25329 * tree.c (expr_check): Fix typo in last change.
25330
25331 1999-08-19 14:44 -0700 Zack Weinberg <zack@bitmover.com>
25332
25333 * rtl.def (NOTE): Change format to "iuu0n".
25334 (ADDR_DIFF_VEC): Change format to "eEee0".
25335 (ADDRESSOF): Change format to "eit".
25336
25337 * rtl.h (rtvec): Make "elem" an array of rtx, not rtunion.
25338 (RTVEC_ELT): Change to match.
25339 (XVECEXP): Use XVEC and RTVEC_ELT.
25340 (INSN_UID, INSN_CODE, CODE_LABEL_NUMBER, NOTE_LINE_NUMBER,
25341 ADDRESSOF_REGNO, REGNO, SUBREG_WORD): Use XINT.
25342 (PREV_INSN, NEXT_INSN, PATTERN, REG_NOTES,
25343 CALL_INSN_FUNCTION_USAGE, SUBREG_REG, SET_SRC, SET_DEST,
25344 TRAP_CONDITION, TRAP_CODE): Use XEXP.
25345 (INTVAL): Use XWINT.
25346 (ADDRESSOF_DECL): Use XTREE.
25347 (SET_ADDRESSOF_DECL): Delete.
25348 (NOTE_DECL_NAME, NOTE_DECL_CODE, NOTE_DECL_RTL,
25349 NOTE_DECL_IDENTIFIER, NOTE_DECL_TYPE): Kill. These have been
25350 ifdefed out since 2.6 at least.
25351 (gen_rtvec_vv): Delete prototype.
25352
25353 * rtl.h (rtvec_alloc): rt->elem is now an array of rtx,
25354 not rtunion.
25355 (copy_most_rtx): Handle 't' format letter.
25356 * emit-rtl.c (gen_rtvec_v): rt_val->elem is an array of rtx.
25357 (gen_rtvec_vv): Delete function. All callers changed to use
25358 gen_rtvec_v instead.
25359 * print-rtl.c (print_rtx): Move special casing of NOTEs to
25360 the '0' format letter.
25361
25362 * function.c (gen_mem_addressof): Don't use
25363 SET_ADDRESSOF_DECL; provide `decl' to gen_rtx_ADDRESSOF
25364 instead.
25365 * integrate.c (copy_rtx_and_substitute): Likewise.
25366 Copy 't' slots with XTREE.
25367 (subst_constants): Treat 't' slots like '[swi]' slots.
25368 * cse.c (canon_hash, exp_equiv_p): Treat 't' slots like '0' slots.
25369 * jump.c (rtx_equal_for_thread_p): Likewise.
25370 * rtlanal.c (rtx_equal_p): Likewise.
25371 * stmt.c (expand_end_case): gen_rtx_ADDR_DIFF_VEC now takes
25372 only four arguments.
25373 * gengenrtl.c (type_from_format): Provide correct types for
25374 'b' and 't' slots.
25375
25376
25377 * tree.h [ENABLE_CHECKING] (TREE_CHECK, TREE_CLASS_CHECK):
25378 If a recent gcc is in use (always in stage2 and beyond), use
25379 statement expressions, so we don't make a function call unless
25380 the check fails. Evaluate arguments exactly once.
25381 (CHAIN_CHECK, DO_CHECK, DO_CHECK1, TREE_CHECK1,
25382 TREE_CLASS_CHECK1, TYPE_CHECK1, DECL_CHECK1, CST_CHECK1):
25383 Delete.
25384 (CST_OR_CONSTRUCTOR_CHECK, EXPR_CHECK): Redefine such that
25385 they evaluate their arguments exactly once, irrespective of
25386 the compiler in use.
25387
25388 * tree.c [ENABLE_CHECKING]: Define whichever set of functions
25389 is used by the currently-enabled check macros. This is:
25390 (tree_check_failed, tree_class_check_failed): For gcc.
25391 (tree_check, tree_class_check, cst_or_constructor_check,
25392 expr_check): For other compilers.
25393
25394 * gencheck.c: Do not define any *_CHECK1 macros.
25395
25396 Thu Aug 19 14:42:38 1999 Mike Stump <mrs@wrs.com>
25397 Mark Mitchell <mark@codesourcery.com>
25398
25399 * c-common.c (c_get_alias_set): Fix support for poitners and
25400 references.
25401
25402 Thu Aug 19 11:51:22 EDT 1999 John Wehle (john@feith.com)
25403
25404 * alias.c: Include tree.h.
25405 (nonlocal_reference_p, mark_constant_function): New functions.
25406 * flow.c (life_analysis): Call mark_constant_function.
25407 * rtl.h (mark_constant_function): Declare it.
25408
25409 Thu Aug 19 15:02:01 1999 Nick Clifton <nickc@cygnus.com>
25410
25411 * config/rs6000/rs6000.c (rs6000_override_options): Fix test for
25412 unrecognisable switches.
25413
25414 Wed Aug 18 23:31:57 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
25415
25416 * loop.c (recombine_givs): Set ix field after sorting.
25417 (recombine_givs): Remove bogus index / giv lockstep looping.
25418
25419 Wed Aug 18 18:20:40 1999 Bernd Schmidt <bernds@cygnus.co.uk>
25420
25421 * expmed.c (emit_store_flag): If UNSIGNEDP, call unsigned_condition
25422 on CODE.
25423 (emit_store_flag_force): Use do_compare_rtx_and_jump.
25424 (do_cmp_and_jump): Formatting fixes.
25425 * expr.c (do_compare_and_jump): Renamed from compare; changed to call
25426 do_compare_rtx_and_jump instead of compare_from_rtx.
25427 (do_compare_rtx_and_jump): New function; mostly copied from
25428 compare_from_rtx.
25429 (do_jump_for_compare): Delete.
25430 (expand_expr): Use do_compare_rtx_and_jump when handling MAX_EXPR and
25431 MIN_EXPR.
25432 (do_jump): Use do_compare_and_jump or do_compare_rtx_and_jump instead
25433 of compare/do_jump_for_compare pairs.
25434 (do_jump_by_parts_greater): Use do_jump_by_parts_greater_rtx.
25435 (do_jump_by_parts_greater_rtx): Use do_compare_rtx_and_jump instead of
25436 compare_from_rtx/do_jump_for_compare pairs.
25437 (do_jump_by_parts_equality): Likewise.
25438 (do_jump_by_parts_equality_rtx): Likewise.
25439 * expr.h (do_compare_rtx_and_jump): Declare.
25440 * optabs.c (prepare_cmp_insn): New function, contains most of the code
25441 that used to be in emit_cmp_insn.
25442 (cmp_available_p): New function.
25443 (prepare_operand): New function.
25444 (emit_cmp_and_jump_insn_1): New function, contains some code that used
25445 to be in emit_cmp_insn.
25446 (prepare_float_lib_cmp): Renamed from emit_float_lib_cmp; change some
25447 parameters to be pointers; don't emit final compare but modify some of
25448 the values pointed to by the args so the caller can perform the
25449 correct comparison.
25450 (expand_binop): Call emit_store_flag_force with signed forms of
25451 comparison code.
25452 (expand_abs): Use do_compare_rtx_and_jump instead of compare_from_rtx/
25453 emit_jump_insn pair.
25454 (emit_cmp_and_jump_insn): Use prepare_cmp_insn and
25455 emit_cmp_and_jump_insn_1. Call emit_queue.
25456 (emit_cmp_insn): Just call emit_cmp_and_jump_insns with zero for LABEL
25457 arg.
25458 * flow.c (tidy_fallthru_edge): If HAVE_cc0, verify insn before a
25459 jump sets cc0 before deleting it.
25460 * integrate.c (expand_inline_function): Likewise.
25461 * unroll.c (unroll_loop): Similar changes in several places.
25462 (copy_loop_body): If HAVE_cc0, verify insn before a jump sets cc0
25463 before deleting it.
25464
25465 Wed Aug 18 06:37:44 1999 Bernd Schmidt <bernds@cygnus.co.uk>
25466
25467 * Makefile.in (insn-recog.o): Update dependencies.
25468 * genrecog.c (main): Make generated file include "function.h".
25469
25470 Sat Aug 14 00:54:57 1999 Geoffrey Keating <geoffk@cygnus.com>
25471
25472 * cse.c (cse_insn): Call never_reached_warning when a jump is
25473 changed to be unconditional.
25474 * flags.h: Declare warn_notreached.
25475 * flow.c (delete_block): Call never_reached_warning when
25476 a block is deleted.
25477 * jump.c (delete_barrier_successors): Call never_reached_warning
25478 when we delete everything after a BARRIER.
25479 (never_reached_warning): New function.
25480 * rtl.h: Declare never_reached_warning.
25481 * toplev.c (warn_notreached): New variable.
25482 (lang_independent_options): Set warn_notreached
25483 when -Wunreachable-code.
25484 (compile_file): We need line numbers for -Wunreachable-code.
25485
25486 Tue Aug 17 22:06:11 1999 Jan Hubicka <hubicka@freesoft.cz>
25487
25488 * haifa-sched.c (insn_unit): Fix typo on out of range test.
25489 * sched.c (insn_unit): Likewise.
25490
25491 Tue Aug 17 21:57:23 1999 Andreas Schwab <schwab@suse.de>
25492
25493 * combine.c (distribute_notes): Handle REG_EH_RETHROW.
25494
25495 Tue Aug 17 17:39:43 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
25496
25497 * flow.c (create_edge_list): Use xmalloc, not malloc.
25498
25499 Tue Aug 17 01:40:54 1999 Loren Rittle <ljrittle@acm.org>
25500
25501 * fixinc/inclhack.def (no_double_slash): Do not trash single-line
25502 C-style comments. Do not lose the character before double slash.
25503
25504 Mon Aug 16 18:08:22 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
25505
25506 * basic-block.h (struct edge_list): Stucture to maintain a vector
25507 of edges.
25508 (EDGE_INDEX_NO_EDGE, EDGE_INDEX, INDEX_EDGE_PRED_BB, INDEX_EDGE_SUCC_BB,
25509 INDEX_EDGE, NUM_EDGES): New Macros for accessing edge list.
25510 (create_edge_list, free_edge-List, print_edge_list, verify_edge_list):
25511 New function prototypes.
25512 * flow.c (create_edge_list): Function to create an edge list.
25513 (free_edge_list): Discards memory used by an edge list.
25514 (print_edge_list): Debug output showing an edge list.
25515 (verify_edge_list): Internal consistency check for an edge list.
25516 (find_edge_index): Function to find an edge index for a pred and succ.
25517
25518 Mon Aug 16 11:56:36 1999 Mark Mitchell <mark@codesourcery.com>
25519
25520 * tree.c (type_hash_add): Use permalloc to allocate nodes in the
25521 hashtable.
25522
25523 Mon Aug 16 17:04:15 1999 Jorn Rennecke <amylaar@cygnus.co.uk>
25524
25525 * mips.h (CLASS_CANNOT_CHANGE_SIZE): Define.
25526
25527 Fri Aug 13 15:20:43 1999 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
25528
25529 * config/i386/freebsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
25530
25531 Fri Aug 13 10:21:28 1999 Nick Clifton <nickc@cygnus.com>
25532
25533 * toplev.c (rest_of_compilation): Allow machine dependent
25534 reorganisation pass to place information into the RTL dump
25535 file if it so wishes.
25536
25537 Sun Aug 15 12:41:21 1999 Jim Wilson <wilson@cygnus.com>
25538
25539 * explow.c (hard_function_value): Use VOIDmode instead of
25540 MAX_MACHINE_MODE.
25541 * stmt.c (expand_return): Likewise.
25542 * stor-layout.c (get_best_mode): Likewise.
25543
25544 * genemit.c (gen_expand): If next is MATCH_PAR_DUP, then output
25545 emit call instead of emit_insn call.
25546
25547 Sat Aug 14 15:04:06 1999 Mumit Khan <khan@xraylith.wisc.edu>
25548
25549 * configure.in: Handle --disable/enable-win32-registry.
25550 * install.texi: Document --disable/enable-win32-registry.
25551 * acconfig.h (ENABLE_WIN32_REGISTRY): New macro.
25552 (WIN32_REGISTRY_KEY): New macro.
25553 * prefix.c: Use to enable/disable win32-specific code.
25554 (lookup_key): Use versioned key.
25555 * configure: Regenerate.
25556 * config.in: Likewise.
25557
25558 Fri Aug 13 17:41:55 1999 Jason Merrill <jason@yorick.cygnus.com>
25559
25560 * cpplib.c (read_line_number): New fn, split out of...
25561 (do_line): Here.
25562
25563 Fri Aug 13 14:18:27 1999 Gavin Romig-Koch <gavin@cygnus.com>
25564
25565 tree.c (lang_unsave_expr_now) : New.
25566 (unsave_expr_now): Call lang_unsave_expr_now.
25567 tree.h (lang_unsave_expr_now) : New.
25568
25569 Fri Aug 13 00:49:46 1999 Jason Merrill <jason@yorick.cygnus.com>
25570
25571 * toplev.c (flag_new_exceptions): On by default.
25572
25573 1999-08-13 Michael Meissner <meissner@cygnus.com>
25574
25575 * Makefile.in (GCC_FOR_TARGET): Move -B./ after the tooldir -B.
25576
25577 Fri Aug 13 01:29:57 1999 Alexandre Oliva <oliva@dcc.unicamp.br>
25578
25579 * dwarfout.c (fundamental_type_code): Return FT_boolean for
25580 INTEGER_TYPE with precision==1, it's __java_boolean.
25581
25582 Thu Aug 12 23:51:04 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
25583
25584 * global.c (prune_preferences): Move some invariants out of the
25585 inner loop.
25586
25587 Thu Aug 12 15:30:29 1999 Jesse Perry (jap@unx.dec.com)
25588
25589 * configure.in (alpha*-dec-osf*): Add osf5.
25590
25591 Sun Aug 1 22:24:03 1999 Philip Blundell <philb@gnu.org>
25592
25593 * configure.in: Rework handling of ARM GNU/Linux slightly.
25594 (arm*-*-linux-gnuoldld): New target.
25595 * configure: Regenerate.
25596 * install.texi (Configurations): Add arm-*-linux-gnu{oldld} and
25597 arm-*-elf. Mention that arm-*-linux-gnuaout is obsolete.
25598 * config/arm/linux-oldld.h: New file.
25599 * config/arm/linux-elf26.h: Don't include linux-elf.h.
25600 (TARGET_DEFAULT, SUBTARGET_LINK_SPEC, SUBTARGET_EXTRA_ASM_SPEC):
25601 Don't define.
25602 * config/arm/linux-elf.h (ASM_SPEC): Define.
25603 (TARGET_DEFAULT, SUBTARGET_EXTRA_LINK_SPEC,
25604 SUBTARGET_EXTRA_ASM_SPEC, CPP_APCS_PC_DEFAULT): Add definitions
25605 for 26-bit APCS and old linker.
25606 (CPP_PREDEFINES): Define `__arm__'; don't define `arm' or
25607 `arm_elf'.
25608 (FP_DEFAULT): Define to FP_SOFT3 for all machines.
25609 * config/arm/linux-aout.h (CPP_PREDEFINES): Define `__arm__';
25610 don't define `arm' or `arm_elf'.
25611 * config/arm/t-linux (EXTRA_MULTILIB_PARTS, MULTILIB_OPTIONS,
25612 MULTILIB_DIRNAMES): Define. Fix typo in comment.
25613
25614 Thu Aug 12 10:14:47 1999 Andreas Schwab <schwab@suse.de>
25615
25616 * rtl.texi: Fix typo.
25617
25618 Wed Aug 11 23:50:57 1999 Jason Merrill <jason@yorick.cygnus.com>
25619
25620 * invoke.texi (C++ Dialect Options): Add -fms-extensions.
25621
25622 Wed Aug 11 12:59:37 1999 Mark Mitchell <mark@codesourcery.com>
25623
25624 * extend.texi (C++ Signatures): Remove node.
25625 * invoke.texi: Remove discussion of -fhandle-signatures,
25626 signature, sigof, __signature__, and __sigof__.
25627
25628 Wed Aug 11 03:38:25 1999 Jeffrey A Law (law@cygnus.com)
25629
25630 * Makefile.in (JAVAGC): Removed.
25631
25632 Wed Aug 11 02:13:26 1999 Mumit Khan <khan@xraylith.wisc.edu>
25633
25634 * i386/cygwin.h (ASM_OUTPUT_ALIGNED_BSS): Define.
25635
25636 1999-08-11 Mark Elbrecht <snowball3@bigfoot.com>
25637
25638 * i386/djgpp.h (ASM_OUTPUT_ALIGNED_BSS): Define.
25639
25640 1999-08-11 Richard Earnshaw (rearnsha@arm.com)
25641
25642 * emit-rtl.c (mark_reg_pointer): Don't increase the alignment of
25643 a register that is already known to be a pointer.
25644
25645 1999-08-11 Bruce Korb <ddsinc09@ix.netcom.com>
25646
25647 * fixinc/inclhack.tpl: Only install assert.h conditionally.
25648 * fixinc/inclhack.sh: Regenerated.
25649 * fixinc/fixincl.sh: Regenerated.
25650
25651 Wed Aug 11 00:34:22 1999 Joe Buck <jbuck@synopsys.com>
25652
25653 * invoke.texi: s/GNU CC/GCC/ for consistency with gcc.texi.
25654 Fix documentation of -ansi flag to describe its C++ behavior.
25655 Remove bogus reference to GCC 2.9.
25656
25657 Tue Aug 10 17:19:02 1999 Jim Wilson <wilson@cygnus.com>
25658
25659 * config/sh/sh.c (machine_dependent_reorg): Only call PUT_MODE on
25660 note if it is non-NULL.
25661
25662 Tue Aug 10 10:47:42 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
25663
25664 * except.h (eh_nesting_info): Add new structure defintion.
25665 (init_eh_nesting_info, free_eh_nesting_info): Add function prototypes.
25666 (reachable_handlers, update_rethrow_references): Add function
25667 prototypes.
25668 * rtl.h (struct rtvec_def): Update comments. REG_EH_RETHROW takes
25669 a rethrow symbol instead of an integer exception region number.
25670 * flow.c (Make_edges): Use new exception nesting routines to determine
25671 which handlers are reachable from a CALL or asynchronous insn.
25672 Dont add an edge for calls with a REG_EH_REGION of -1 to non-local
25673 goto receivers.
25674 (delete_eh_regions): Update rethrow labels, and don't delete
25675 regions which are the target of a rethrow.
25676 * except.c (struct func_eh_entry): Add rethrow_ref field, now we can
25677 avoid overloading the SYMBOL_REF_USED flag.
25678 (rethrow_symbol_map): Use new rethrow_ref field.
25679 (rethrow_used): Use new rethrow_ref field.
25680 (expand_rethrow): REG_EH_RETHROW now has a SYMBOL_REF instead
25681 of an integer. Fix formatting.
25682 (output_exception_table_entry): Use new rethrow_ref field.
25683 (can_throw): Check for EH_REGION_NOTE before deciding
25684 whether a CALL can throw or not.
25685 (scan_region): Call rethrow_used() instead of accessing data structure.
25686 (update_rethrow_references): New function to make sure only regions
25687 which are still targets of a rethrow are flagged as such.
25688 (process_nestinfo): New static function to initialize a handler
25689 list for a specific region.
25690 (init_eh_nesting_info): New function to allocate and initialize
25691 the list of all EH handlers reachable from all regions.
25692 (reachable_handlers): New function to retrieve the list of handlers
25693 reachable from a specific region and insn.
25694 (free_eh_nesting_info): New function to dispose of a list of
25695 reachable handlers.
25696
25697 Tue Aug 10 10:39:31 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
25698
25699 * flow.c (split_edge): Set JUMP_LABEL field.
25700 (commit_one_edge_insertion): Set head correctly for insert_before.
25701 When inserting insns, update insn block numbers if allocated.
25702
25703 Tue Aug 10 09:26:07 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25704
25705 * dwarf2out.c (dwarf2out_frame_debug_expr, add_incomplete_type,
25706 retry_incomplete_types): Add static prototype.
25707 (stripattributes, dwarf_cfi_name, ASM_OUTPUT_DWARF_STRING,
25708 dwarf_tag_name, dwarf_attr_name, dwarf_form_name,
25709 dwarf_stack_op_name, dwarf_type_encoding_name, add_AT_string,
25710 dwarf2_name, add_name_attribute, lookup_filename, dwarf2out_line,
25711 dwarf2out_start_source_file, dwarf2out_define, dwarf2out_undef):
25712 Constify a char*.
25713
25714 * dwarf2out.h (dwarf2out_define, dwarf2out_undef,
25715 dwarf2out_start_source_file, dwarf2out_line): Likewise.
25716
25717 Tue Aug 10 09:21:46 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25718
25719 * output.h (assemble_name): Constify a char*.
25720
25721 * varasm.c (UNIQUE_SECTION, assemble_start_function,
25722 assemble_variable, assemble_name): Likewise.
25723
25724 * dwarf2out.c (ASM_NAME_TO_STRING): Likewise.
25725
25726 * arm/pe.c (arm_pe_unique_section): Likewise.
25727
25728 * i386/cygwin.h (STRIP_NAME_ENCODING): Likewise.
25729
25730 * i386/i386-interix.h (STRIP_NAME_ENCODING): Likewise.
25731
25732 * i386/interix.c (i386_pe_unique_section): Likewise.
25733
25734 * i386/win32.h (STRIP_NAME_ENCODING): Likewise.
25735
25736 * i386/winnt.c (i386_pe_unique_section): Likewise.
25737
25738 * m32r/m32r.h (ASM_OUTPUT_LABELREF): Likewise.
25739
25740 * mn10200/mn10200.h (ASM_OUTPUT_LABELREF): Likewise.
25741
25742 * mn10300/mn10300.h (ASM_OUTPUT_LABELREF): Likewise.
25743
25744 * pa/pa.c (output_call): Likewise.
25745
25746 * pa/pa.h (ASM_OUTPUT_MI_THUNK): Likewise.
25747
25748 * pa/som.h (ASM_OUTPUT_FUNCTION_PREFIX): Likewise.
25749
25750 * rs6000/rs6000.c (rs6000_output_load_toc_table, output_toc):
25751 Likewise.
25752
25753 * rs6000/rs6000.h (RS6000_OUTPUT_BASENAME, STRIP_NAME_ENCODING):
25754 Likewise.
25755
25756 * rs6000/sol2.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
25757
25758 * rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME, ASM_OUTPUT_INT,
25759 STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Likewise.
25760
25761 * v850/v850.h (ASM_OUTPUT_LABELREF): Likewise.
25762
25763 Mon Aug 9 19:54:05 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25764
25765 * real.c (GET_REAL, PUT_REAL): Use memcpy instead of bcopy.
25766
25767 Mon Aug 9 19:36:00 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25768
25769 * tree.h (lang_identify): Constify a char*.
25770 (print_error_function): Add extern prototype. Constify a char*.
25771
25772 * c-lang.c (lang_identify): Constify a char*.
25773
25774 * objc/objc-act.c (lang_identify): Constify a char*.
25775
25776 Mon Aug 9 16:21:53 1999 Bernd Schmidt <bernds@cygnus.co.uk>
25777
25778 * genpeep.c (main): Make generated file include "function.h".
25779 * arm.c (function_really_clobbers_lr): Delete INLINE_HEADER case.
25780
25781 Mon Aug 9 10:08:50 1999 Bernd Schmidt <bernds@cygnus.co.uk>
25782
25783 * Makefile.in: Update dependencies.
25784 * alias.c: Include "function.h"
25785 * c-decl.c: Likewise.
25786 * caller-save.c: Likewise.
25787 * calls.c: Likewise.
25788 * combine.c: Likewise.
25789 * cse.c: Likewise.
25790 * explow.c: Likewise.
25791 * final.c: Likewise.
25792 * global.c: Likewise.
25793 * graph.c: Likewise.
25794 * local-alloc.c: Likewise.
25795 * loop.c: Likewise.
25796 * optabs.c: Likewise.
25797 * profile.c: Likewise.
25798 * recog.c: Likewise.
25799 * regclass.c: Likewise.
25800 * regmove.c: Likewise.
25801 * reload.c: Likewise.
25802 * reorg.c: Likewise.
25803 * resource.c: Likewise.
25804 * sched.c: Likewise.
25805 * stupid.c: Likewise.
25806 * config/1750a/1750a.c: Likewise.
25807 * config/a29k/a29k.c: Likewise.
25808 * config/arc/arc.c: Likewise.
25809 * config/arm/arm.c: Likewise.
25810 * config/arm/thumb.c: Likewise.
25811 * config/c4x/c4x.c: Likewise.
25812 * config/clipper/clipper.c: Likewise.
25813 * config/convex/convex.c: Likewise.
25814 * config/fx80/fx80.c: Likewise.
25815 * config/i860/i860.c: Likewise.
25816 * config/m68k/m68k.c: Likewise.
25817 * config/m88k/m88k.c: Likewise.
25818 * config/mips/mips.c: Likewise.
25819 * config/pdp11/pdp11.c: Likewise.
25820 * config/pyr/pyr.c: Likewise.
25821 * config/romp/romp.c: Likewise.
25822 * config/sh/sh.c: Likewise.
25823 * config/tahoe/tahoe.c: Likewise.
25824 * config/vax/vax.c: Likewise.
25825 * config/we32k/we32k.c: Likewise.
25826 * config/sparc/sparc.c: Include "function.h".
25827 (mem_min_alignment): Test current_function rather than
25828 regno_pointer_align.
25829 * config/pa/pa.c: Likewise.
25830 (compute_frame_size): Delete declaration of
25831 current_function_outgoing_args_size.
25832 * config/arc/arc.h (current_function_varargs): Delete declaration.
25833 * config/elxsi/elxsi.h (current_function_calls_alloca): Delete
25834 declaration.
25835 * config/i370/i370.h (current_function_outgoing_args_size): Delete
25836 declaration.
25837 * config/i386/i386.h (FINALIZE_PIC): Delete declaration of
25838 current_function_uses_pic_offset_table.
25839 * config/m68k/a-ux.h (FUNCTION_EXTRA_EPILOGUE): Delete declaration
25840 of current_function_returns_pointer.
25841 * config/m68k/altos3068.h (FUNCTION_EXTRA_EPILOGUE): Likewise.
25842 * config/m68k/linux.h (FUNCTION_EXTRA_EPILOGUE): Likewise.
25843 * config/m68k/m68kv4.h (FUNCTION_EXTRA_EPILOGUE): Likewise.
25844 * config/m68k/mot3300.h (FUNCTION_EXTRA_EPILOGUE): Likewise.
25845 * config/m68k/pbb.h (FUNCTION_EXTRA_EPILOGUE): Likewise.
25846 * config/m68k/tower-as.h (FUNCTION_EXTRA_EPILOGUE): Likewise.
25847 * config/m88k/m88k.c: Include "function.h"
25848 (call_used_regs, current_function_pretend_args_size,
25849 current_function_outgoing_args_size, frame_pointer_needed): Delete
25850 declarations.
25851 * config/m88k/m88k.h (current_function_pretend_args_size): Delete
25852 declaration.
25853 * config/mips/mips.h (current_function_calls_alloca): Delete
25854 declaration.
25855 * config/mn10200/mn10200.h (current_function_needs_context,
25856 rtx_equal_function_value_matters): Delete declarations.
25857 * config/ns32k/ns32k (current_function_uses_pic_offset_table,
25858 flag_pic): Delete declarations.
25859 * config/pa/pa.h (current_function_pretend_args_size,
25860 current_function_decl): Delete declarations.
25861 * config/pa/som.h (current_function_varargs): Delete declaration.
25862 * config/pdp11/pdp11.h (current_function_pretend_args_size): Delete
25863 declaration.
25864 * config/pyr/pyr.h (current_function_pretend_args_size,
25865 current_function_args_size, current_function_calls_alloca): Delete
25866 declarations.
25867 * config/sh/sh.h (current_function_varargs): Delete declaration.
25868 * config/sparc/sparc.h (current_function_outgoing_args_size,
25869 current_function_calls_alloca, current_function_decl): Delete
25870 declarations.
25871 * config/spur/spur.h (current_function_pretend_args_size,
25872 current_function_calls_alloca): Delete declarations.
25873 * config/v850/v850.c (current_function_outgoing_args_size): Delete
25874 declaration.
25875 * config/vax/vms.h (current_function_name): Delete declaration.
25876 * gcse.c: Include "function.h".
25877 (current_function_name, current_function_calls_setjmp): Delete
25878 declarations.
25879 * haifa-sched.c: Include "function.h".
25880 (forced_labels): Delete declaration.
25881 * jump.c: Likewise.
25882 * reg-stack.c: Likewise.
25883 * reload1.c: Likewise.
25884 * genemit.c (main): Make generated file include function.h.
25885 * genoutput.c (output_prologue): Likewise.
25886
25887 * builtins.c (saveregs_value, apply_args_value): Delete variables.
25888 * emit-rtl.c (reg_rtx_no, first_label_num, first_insn, last_insn,
25889 sequence_rtl_expr, cur_insn_uid, last_linenum, last_filename,
25890 regno_pointer_flag, regno_pointer_flag_length, regno_pointer_align,
25891 regno_reg_rtx, sequence_stack): Delete variables. Add accessor
25892 macros for some of them.
25893 (emit_filename, emit_lineno): Delete declarations.
25894 (gen_reg_rtx): Use memset/memcpy instead of bzero/bcopy. Access
25895 regno_pointer_* variables through current_function.
25896 (gen_inline_header_rtx): Delete function.
25897 (save_emit_status): Delete function.
25898 (set_new_last_label_num): New function.
25899 (clear_emit_caches): New function.
25900 (restore_emit_status): Just clear last_labelnum and call
25901 clear_emit_caches.
25902 (get_last_insn_anywhere): Variable sequence_stack is now accessed
25903 through macro seq_stack.
25904 (add_insn_after): Likewise.
25905 (add_insn_before): Likewise.
25906 (remove_insn): Likewise.
25907 (pop_topmost_sequence): Likewise.
25908 (in_sequence_p): Likewise.
25909 (start_sequence_for_rtl_expr): Likewise.
25910 (start_sequence): Likewise, and likewise for
25911 sequence_rtl_expr/seq_rtl_expr.
25912 (push_topmost_sequence): Likewise.
25913 (end_sequence): Likewise.
25914 (init_virtual_regs): Now takes a "struct emit_status *" argument.
25915 All callers changed. Store into that pointer instead of globals.
25916 (init_emit): Allocate emit elt of current_function.
25917 Changes for sequence_rtl_expr/sequence_stack renaming.
25918 Call clear_emit_caches instead of doing it in-line.
25919 Access regno_pointer_* variables through current_function.
25920 (init_emit_once) Don't clear sequence_stack.
25921
25922 * expr.c (pending_stack_adjust, inhibit_defer_pop, pending_chain):
25923 Delete variables.
25924 (arg_pointer_save_area): Delete declaration.
25925 (finish_expr_for_function): Renamed from init_queue; no longer static.
25926 (init_expr): Don't call init_queue.
25927 (save_expr_status, restore_expr_status): Delete functions.
25928 (expand_expr): Changes to reflect new layout of struct function.
25929 Don't access current_function_check_memory_usage when current_function
25930 is 0.
25931 * expr.h (forced_labels, save_expr_regs, saveregs_value,
25932 apply_args_value, current_function_calls_alloca, inhibit_defer_pop,
25933 current_function_outgoing_args_size, current_function_arg_offset_rtx,
25934 current_function_uses_const_pool, function_call_count,
25935 current_function_uses_pic_offset_table, nonlocal_labels,
25936 current_function_internal_arg_pointer, nonlocal_goto_stack_level,
25937 current_function_check_memory_usage, nonlocal_goto_handler_slots,
25938 pending_stack_adjust, target_temp_slot_level, temp_slot_level): Delete
25939 declarations.
25940 (finish_expr_for_function): Declare.
25941 * flags.h (current_function_has_nonlocal_label,
25942 current_function_has_nonlocal_goto, current_function_is_thunk,
25943 current_function_has_computed_jump): Delete declarations.
25944 * flow.c (forced_labels): Delete declaration.
25945 * function.c (current_function_pops_args,
25946 current_function_returns_struct, current_function_returns_pcc_struct,
25947 current_function_needs_context, current_function_calls_setjmp,
25948 current_function_calls_longjmp, current_function_has_nonlocal_label,
25949 current_function_has_nonlocal_goto, current_function_is_thunk,
25950 current_function_has_computed_jump, current_function_calls_alloca,
25951 current_function_contains_functions, current_function_returns_pointer,
25952 current_function_epilogue_delay_list, current_function_args_size,
25953 current_function_pretend_args_size, current_function_arg_offset_rtx,
25954 current_function_outgoing_args_size, current_function_varargs,
25955 current_function_stdarg, current_function_args_info, cleanup_label,
25956 current_function_name, current_function_uses_const_pool,
25957 current_function_instrument_entry_exit, current_function_return_rtx,
25958 current_function_uses_pic_offset_table, nonlocal_labels,
25959 current_function_internal_arg_pointer, current_function_cannot_inline,
25960 current_function_check_memory_usage, function_call_count,
25961 nonlocal_goto_handler_slots, nonlocal_goto_handler_labels,
25962 nonlocal_goto_stack_level, return_label, save_expr_regs,
25963 stack_slot_list, rtl_expr_chain, tail_recursion_label, temp_slots,
25964 tail_recursion_reentry, arg_pointer_save_area, frame_offset,
25965 context_display, trampoline_list, parm_birth_insn, invalid_stack_slot,
25966 last_parm_insn, max_parm_reg, parm_reg_stack_loc, sequence_rtl_expr,
25967 temp_slot_level, var_temp_slot_level, target_temp_slot_level):
25968 Delete variables.
25969 (push_function_context_to): Don't save them. Don't call
25970 save_storage_status, save_emit_status or save_expr_status.
25971 (pop_function_context_from): Don't restore them. Don't call
25972 restore_storage_status or restore_expr_status.
25973 (get_func_frame_size): New function.
25974 (get_frame_size): Use it.
25975 (assign_outer_stack_local): Reflect some member name changes in struct
25976 function.
25977 (put_reg_into_stack): Likewise.
25978 (assign_stack_temp_for_type): sequence_rtl_expr was renamed to
25979 seq_rtl_expr.
25980 (fixup_var_refs): Likewise.
25981 (fix_lexical_addr): Likewise.
25982 (trampoline_address): Likewise.
25983 (prepare_function_start): Clear field inlinable of current_function.
25984 (init_function_for_compilation): New function.
25985 (expand_dummy_function_end): New function.
25986 (expand_function_end): Call finish_expr_for_function.
25987 * function.h (struct emit_status): New; fields moved here from struct
25988 function and from global variables. Add accessor macros for some of
25989 the fields.
25990 (struct expr_status): Likewise.
25991 (REGNO_POINTER_ALIGN, REGNO_POINTER_FLAG): Moved here from regs.h.
25992 (struct function): Add fields expr and emit, inlinable, inl_emit,
25993 original_arg_vector, original_decl_initial, inl_last_parm_insn,
25994 inl_max_label_num. Add many comments.
25995 Add accessor macros for all elts of struct function that no longer
25996 have a global variable.
25997 (cleanup_label, return_label, frame_offset, tail_recursion_label,
25998 tail_recursion_reentry, arg_pointer_save_area, rtl_expr_chain,
25999 stack_slot_list): Delete declarations.
26000 (get_func_frame_size): Declare.
26001 (save_expr_status, restore_expr_status, save_emit_status,
26002 save_storage_status, restore_storage_status): Delete declarations.
26003 (init_virtual_regs): Declare.
26004 * output.h (current_function_pops_args,
26005 current_function_returns_struct, current_function_returns_pcc_struct,
26006 current_function_needs_context, current_function_calls_setjmp,
26007 current_function_calls_longjmp, current_function_calls_alloca,
26008 current_function_has_nonlocal_label, current_function_varargs,
26009 current_function_has_computed_jump, current_function_returns_pointer,
26010 current_function_contains_functions, current_function_args_size,
26011 current_function_pretend_args_size, current_function_stdarg,
26012 current_function_outgoing_args_size, current_function_args_info,
26013 current_function_name, current_function_return_rtx,
26014 current_function_epilogue_delay_list,
26015 current_function_uses_const_pool, current_function_cannot_inline):
26016 Delete declarations.
26017 * regs.h (reg_rtx_no, regno_pointer_flag, regno_pointer_flag_length,
26018 regno_reg_rtx): Delete declaration.
26019 (REGNO_POINTER_FLAG): Delete macro.
26020 * stmt.c (expand_goto): Changes to reflect that some fields in struct
26021 function were renamed.
26022 * stor-layout.c (save_storage_status, restore_storage_status): Delete
26023 functions.
26024 * toplev.c: Include "function.h".
26025 (current_function_decl): Delete declaration.
26026 (compile_file): Call init_dummy_function_start and
26027 expand_dummy_function_end around some initializations that need to
26028 emit rtl.
26029 (rest_of_compilation): Use DECL_SAVED_INSNS properly.
26030 Call init_function_for_compilation.
26031 * unroll.c: Include "function.h"
26032 (unroll_loop): Access regno_pointer_* variables through
26033 current_function.
26034
26035 * tree.h (struct tree_decl): Add elt f to saved_insns member.
26036 (DECL_SAVED_INSNS): use it.
26037 (expand_dummy_function_end): Declare.
26038 (init_function_for_compilation): Declare.
26039 * calls.c (calls_function_1): Change use of DECL_SAVED_INSNS now
26040 that it's no longer an INLINE_HEADER.
26041 (expand_call): Likewise.
26042 * integrate.c (finish_inline): Delete function.
26043 (max_parm_reg, parm_reg_stack_loc): Delete declarations.
26044 (initialize_for_inline): Delete min_labelno, max_labelno and max_reg
26045 args. Don't generate an INLINE_HEADER rtx, just return the arg
26046 vector. All callers changed.
26047 (save_for_inline_copying): Create a duplicate struct emit_status to
26048 hold the emit state for compiling the current function. Use this and
26049 the other new fields in struct function that are for integration
26050 instead of an INLINE_HEADER.
26051 Use memcpy instead of bcopy.
26052 Store the current struct function in DECL_SAVED_INSNS of fndecl.
26053 (save_for_inline_nocopy): Similar changes, except no new emit_status
26054 is needed here.
26055 (expand_inline_function): Get information from function structure,
26056 not from an inline header rtx.
26057 (output_inline_function): Lose code to extract the necessary
26058 information from an inline header; simply put back the function
26059 structure into current_function. Clear its inlinable elt.
26060 * rtl.def (INLINE_HEADER): Delete.
26061 * rtl.h: Delete all accessors for an INLINE_HEADER.
26062 (gen_inline_header_rtx): Delete declaration.
26063 (regno_reg_rtx, regno_pointer_align, nonlocal_goto_handler_labels):
26064 Delete declarations.
26065 (REGNO_POINTER_ALIGN): Delete.
26066 (clear_emit_caches): Declare.
26067 (set_new_last_label_num): Declare.
26068
26069 Mon Aug 9 01:52:24 1999 Jason Merrill <jason@yorick.cygnus.com>
26070
26071 * print-tree.c (print_node): Print base for OFFSET_TYPEs.
26072
26073 * except.c (expand_eh_region_start_for_decl): Always start a new block.
26074 * stmt.c (is_eh_region): Make sure current_function is present, too.
26075
26076 Mon Aug 9 01:15:24 1999 Jeffrey A Law (law@cygnus.com)
26077
26078 * pa.h (HARD_REGNO_MODE_OK): Correctly handle FPregs, even when
26079 for 64bit PA targets.
26080
26081 * pa.h (SELECT_SECTION): Define.
26082 * som.h (SELECT_SECTION): Delete.
26083
26084 Sun Aug 8 15:13:20 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26085
26086 * alias.c (init_alias_analysis): Wrap call to
26087 `prologue_epilogue_contains' within HAVE_prologue||HAVE_epilogue.
26088
26089 1999-08-07 Bruce Korb <autogen@linuxbox.com>
26090
26091 * fixinc/inclhack.def(irix_asm_apostrophe): IRIX 5.2's
26092 <sys/asm.h> contains an asm comment with an apostrophe
26093 * fixinc/inclhack.sh: regen
26094 * fixinc/fixincl.x: regen
26095
26096 Sat Aug 7 19:37:07 1999 Richard Henderson <rth@cygnus.com>
26097
26098 * function.c (init_function_start): Clear prologue & epilogue.
26099 (prologue_epilogue_contains): New function.
26100 * alias.c (init_alias_analysis): Use it.
26101 * rtl.h (prologue_epilogue_contains): Declare it.
26102
26103 Sat Aug 7 19:32:16 1999 Richard Henderson <rth@cygnus.com>
26104
26105 * jump.c (onlyjump_p): New function.
26106 * rtl.h: Declare it.
26107 * flow.c (delete_unreachable_blocks): Use onlyjump_p instead
26108 of condjump_p in calling tidy_fallthru_edge and merge_blocks.
26109
26110 Sat Aug 7 17:09:36 1999 Richard Henderson <rth@cygnus.com>
26111
26112 * global.c (build_insn_chain): Use EXECUTE_IF_SET_IN_REG_SET
26113 to invert loops. Simplify block scanning.
26114
26115 Sat Aug 7 02:11:13 1999 Bernd Schmidt <bernds@cygnus.co.uk>
26116
26117 * gcse.c (hash_scan_set): Treat SYMBOL_REFs like CONST_INTs.
26118 (cprop_insn): Treat SYMBOL_REFs like CONST_INTs.
26119
26120 1999-08-07 Jonathan Larmour <jlarmour@cygnus.co.uk>
26121
26122 * config/sparc/liteelf.h: New file to support sparclite-elf target
26123 * config/sparc/t-sp86x: New file to support sparc86x targets
26124 * config/sparc/sp86x-aout.h: New file to support sparc86x-aout target
26125 * config/sparc/sp86x-elf.h: New file to support sparc86x-elf target
26126 * configure.in: Support above target triplets
26127 * configure: Regenerated
26128
26129 Sat Aug 7 01:39:27 1999 Philippe De Muyter <phdm@macqel.be>
26130
26131 * fixinc/server.c (server_setup): Do not prefix function used as
26132 parameter with `&'.
26133
26134 Sat Aug 7 00:21:20 1999 Richard Henderson <rth@cygnus.com>
26135
26136 * alpha.md (movhi and movqi patterns): Correct predicate for !BWX.
26137 Remove fp reg alternatives.
26138
26139 Sat Aug 7 00:06:54 1999 Jeffrey A Law (law@cygnus.com)
26140
26141 * Makefiin (TAROUTOPTS): Kill.
26142 (install-headers-tar): Use "xpf" for tar headerfile extraction
26143 * i370/x-oe (TAROUTOPTS): Delete.
26144 * m68k/x-apollo68 (TAROUTOPTS): Delete.
26145 * m68k/x-hp320 (TAROUTOPTS): Delete.
26146 * m68k/x-hp320g (TAROUTOPTS): Delete.
26147 * gcc.texi: Update bug reporting text.
26148
26149 1999-08-6 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
26150
26151 * reg-stack.c (change_stack) Fixed problem with negative array index.
26152
26153 Fri Aug 6 23:08:44 1999 Jeffrey A Law (law@cygnus.com)
26154
26155 * extend.texi, install.texi: Fix spelling mistakes.
26156
26157 * Makefile.in (PREMADE_ATTRTAB_MD, PREMADE_ATTRTAB): Delete.
26158 (s-attrtab); No longer try to use pre-made insn-attrtab file.
26159 * mips/t-bsd: Delete references to obsolete PREMADE_ATTRTAB and
26160 PREMADE_ATTRTAB_MD.
26161 * mips/t-ecoff: Likewise.
26162 * mips/t-elf: Likewise.
26163 * mips/t-mips: Likewise.
26164 * mips/t-osfrose: Likewise.
26165 * mips/t-r3900: Likewise.
26166 * mips/t-svr3: Likewise.
26167 * mips/t-svr4: Likewise.
26168 * mips/t-ultrix: Likewise.
26169
26170 * gcc.texi: Document recommend means to provide software floating
26171 point libraries in libgcc.a
26172
26173 1999-08-06 Jason Merrill <jason@yorick.cygnus.com>
26174
26175 * c-lex.c (yylex): We can have a number with no digits.
26176
26177 Fri Aug 6 16:53:55 EDT 1999 John Wehle (john@feith.com)
26178
26179 * jump.c (delete_prior_computation): New function, broken
26180 out of delete_computation. Check for side effects with
26181 side_effects_p instead of FIND_REG_INC_NOTE. Handle
26182 multi-word hard registers.
26183 (delete_computation): Use it. Check for side effects with
26184 side_effects_p instead of FIND_REG_INC_NOTE. Synthesize a
26185 missing REG_DEAD note for a register which is both set and
26186 used by an insn.
26187
26188 Fri Aug 6 11:05:29 1999 Jeffrey A Law (law@cygnus.com)
26189
26190 * elf.h (TEXT_SPACE_P, FUNCTION_NAME_P): Delete.
26191 (ASM_GLOBALIZE_LABEL, ASM_OUTPUT_INT, ASM_OUTPUT_DOUBLE_INT): Likewise.
26192 (ASM_FILE_START): Import _mcount with the right type.
26193 (ASM_DECLARE_FUNCTION_NAME): Define.
26194 (ASM_OUTPUT_EXTERNAL, ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
26195 * pa.c (output_function_prologue): Always emit the function's label
26196 here.
26197 * pa.h (TEXT_SPACE_P): Define.
26198 (FUNCTION_NAME_P, ENCODE_SECTION_INFO, STRIP_NAME_ENCODING): Likewise.
26199 (ASM_OUTPUT_INT, ASM_OUTPUT_DOUBLE_INT, ASM_GLOBALIZE_LABEL): Likewise.
26200 * som.h (TEXT_SPACE_P): Delete.
26201 (FUNCTION_NAME_P, ENCODE_SECTION_INFO, STRIP_NAME_ENCODING): Likewise.
26202 (ASM_GLOBALIZE_LABEL, ASM_OUTPUT_INT): Likewise.
26203
26204 Thu Aug 5 19:29:39 1999 Jim Wilson <wilson@cygnus.com>
26205
26206 * expr.c (emit_group_load): Allow src to be a CONCAT.
26207
26208 Thu Aug 5 22:27:15 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
26209
26210 * config/sh/lib1funcs.asm (___movstrSI0): Change or r0,r0,r0 to nop.
26211 (___mulsi3): Use '!' comment character.
26212
26213 Thu Aug 5 13:34:14 1999 Bernd Schmidt <bernds@cygnus.co.uk>
26214
26215 * reload1.c (maybe_fix_stack_asms): Also declare P as "const char *".
26216
26217 Thu Aug 5 02:40:42 1999 Jeffrey A Law (law@cygnus.com)
26218
26219 * gcc.c: Update URLs and mail addresses.
26220 * gcc.texi: Likewise.
26221
26222 Thu Aug 5 01:14:13 1999 Daniel Jacobowitz <drow@false.org>
26223
26224 * rs6000.c (current_file_function_operand): Return zero for
26225 weak functions.
26226 (rs6000_encode_section_info): Do not set SYMBOL_REF_FLAG for
26227 weak symbols.
26228 * rs6000.h (ENCODE_SECTION_NIFO): Do not set SYMBOL_REF_FLAG
26229 for weak symbols.
26230
26231 Thu Aug 5 00:56:30 1999 Geoffrey Keating <geoffk@cygnus.com>
26232
26233 * rs6000.c (rs6000_stack_info): For ABI_V4/ABI_SOLARIS -fpic, always
26234 allocate space in the stack frame for the PIC register.
26235
26236 Thu Aug 5 00:20:47 1999 Jeffrey A Law (law@cygnus.com)
26237
26238 * m68k.md (xordi3, anddi3): These patterns are not available on
26239 the coldfire.
26240
26241 Wed Aug 4 23:39:20 1999 Mark Mitchell <mark@codesourcery.com>
26242
26243 * real.c (GET_REAL): Don't violate ANSI/ISO aliasing rules.
26244 (PUT_REAL): Likewise.
26245
26246 Wed Aug 4 20:45:04 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
26247
26248 * final.c (shorten_branches): Don't add an alignment for loops
26249 that have no label inside.
26250
26251 Wed Aug 4 16:39:24 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26252
26253 * builtins.c (expand_builtin_memcmp, expand_builtin_strcmp): Wrap
26254 prototypes in macro HAVE_cmpstrsi.
26255
26256 * cpplib.c (cpp_get_token): Remove unused label `op3'.
26257
26258 * emit-rtl.c (operand_subword): Remove unused variable
26259 `bits_per_word'.
26260
26261 * rtl.c (shallow_copy_rtx): Remove unused variable `format_ptr'.
26262
26263 * tree.c (chainon): Wrap variable `t2' in macro ENABLE_CHECKING.
26264
26265 Wed Aug 4 13:29:23 1999 Zack Weinberg <zack@bitmover.com>
26266
26267 * cpphash.c (macroexpand): Delete leading whitespace when arg
26268 is concatenated before.
26269 (unsafe_chars): Correct test for whether + and - can extend a
26270 token.
26271
26272 * cppinit.c (cpp_start_read): Do dependencies for
26273 -include/-imacros files also.
26274
26275 * cpplib.c (cpp_scan_buffer): In no-output mode, don't bother
26276 tokenizing non-directive lines.
26277 (cpp_expand_to_buffer): Temporarily disable no-output mode.
26278 * cppmain.c: In no-output mode, just call cpp_scan_buffer for
26279 the input file.
26280
26281 Wed Aug 4 12:53:44 1999 Jason Merrill <jason@yorick.cygnus.com>
26282
26283 * expr.c (expand_expr, case PLUS_EXPR): Fix parallel case, too.
26284
26285 * c-lex.c: Sync with C++ frontend.
26286 (linemode): New variable.
26287 (parse_float): imag, conversion_errno, and type are output only.
26288 (yylex): Adjust. Move initial '.' case into main switch.
26289 Use linemode.
26290 (handle_generic_pragma): Just deal with tokens.
26291 (readescape): Use ISXDIGIT and ISGRAPH.
26292 * c-parse.in: Add END_OF_LINE token.
26293
26294 * c-lex.c (lang_init): Generalize.
26295 (nextchar): Remove. Replace uses with UNGETC.
26296 (skip_white_space): Handle linemode here. Optimize for cpplib.
26297 (skip_white_space_on_line): Remove.
26298 (extend_token_buffer_to): New fn.
26299 (extend_token_buffer): Use it.
26300 (read_line_number, check_newline): Just deal with tokens.
26301 (token_getch, token_put_back): New fns.
26302 (yylex): Use them. More cpplib optimizations. Simplify.
26303
26304 Wed Aug 4 12:53:44 1999 Michael Tiemann <tiemann@holodeck.cygnus.com>
26305 Jason Merrill <jason@yorick.cygnus.com>
26306
26307 * c-lex.c (init_parse): Set cpp_token to CPP_DIRECTIVE.
26308 (consume_string): Make this smart about USE_CPPLIB.
26309 (check_newline): Rewrite to be intelligent about USE_CPPLIB.
26310 (yylex): Rewrite to be intelligent about USE_CPPLIB.
26311 Also, clean up cases where we redundantly set token_buffer[0].
26312 (read_line_number): New fn.
26313 (ignore_escape_flag): New variable.
26314
26315 Wed Aug 4 13:12:17 1999 Jeffrey A Law (law@cygnus.com)
26316
26317 * a29k/t-a29kbare: Fix some comments.
26318 (LIB2FUNCS_EXTRA): Remove fp-bit.c and dp-bit.c
26319 (FPBIT, DPBIT): Define.
26320 * a29k/t-vx29k: Likewise.
26321 * arc/t-arc: Likewise.
26322 * arm/t-arm-elf: Likewise.
26323 * arm/t-bare: Likewise.
26324 * arm/t-pe: Likewise.
26325 * arm/t-pe-thumb: Likewise.
26326 * arm/t-semi: Likewise.
26327 * arm/t-thumb: Likewise.
26328 * arm/t-thumb-elf: Likewise.
26329 * arm/t-thumb-linux: Likewise.
26330 * h8300/t-h8300: Likewise.
26331 * i960/t-i960: Likewise.
26332 * i960/t-vxworks960: Likewise.
26333 * m32r/t-m32r: Likewise.
26334 * mips/t-ecoff: Likewise.
26335 * mips/t-elf: Likewise.
26336 * mips/t-r3900: Likewise.
26337 * pa/t-pro: Likewise.
26338 * rs6000/t-aix43: Likewise.
26339 * rs6000/t-beos: Likewise.
26340 * rs6000/t-newas: Likewise.
26341 * rs6000/t-ppccomm: Likewise.
26342 * rs6000/t-rs6000: Likewise.
26343 * rs6000/t-winnt: Likewise.
26344 * rs6000/t-xnewas: Likewise.
26345 * rs6000/t-xrs6000: Likewise.
26346 * sh/t-sh: Likewise.
26347 * sparc/t-elf: Likewise.
26348 * sparc/t-sparcbare: Likewise.
26349 * sparc/t-sparclite: Likewise.
26350 * sparc/t-splet: Likewise.
26351 * v850/t-v850: Likewise.
26352 * mn10200/t-mn10200: Fix comments.
26353 * mn10300/t-mn10300: Likewise.
26354
26355 * pa.md (divsi3, udivsi3, modsi3, umodsi3 expanders): Clobber a new
26356 dummy operand. Allocate a new pseudo for the dummy operand.
26357 (divsi3, udivsi3, modis3, umodsi3 patterns): Corresponding changes.
26358
26359 * pa.md (movqi, movhi patterns): Do not expose FP regs to regclass.
26360
26361 Wed Aug 4 11:53:55 1999 Tom Tromey <tromey@cygnus.com>
26362
26363 * configure: Rebuilt.
26364 * configure.in: Removed --enable-java-gc option and JAVAGC subst.
26365
26366 Wed Aug 4 09:06:14 1999 Richard Earnshaw (rearnsha@arm.com)
26367
26368 * recog.c (preproces_constraints): Zero recog_op_alt before
26369 processing the constraints.
26370
26371 * arm.c (typedef minipool_node): Renamed from pool_node.
26372 (minipool_vector, minipool_size, minipool_vector_label): Similarly.
26373 (add_minipool_constant): New function.
26374 (dump_minipool): New function.
26375 (find_barrier): Remove special case for getting the insn size of
26376 an insn that references the constant pool.
26377 (minipool_fixup): New structure.
26378 (push_minipool_barrier): New function.
26379 (push_minipool_fix): New function.
26380 (note_invalid_constants): New function.
26381 (add_pool_constant, dump_table, fixit, broken_move): Delete.
26382 (arm_reorg): Rewrite code to fix up the constant pool into a
26383 series of mini-pools embedded in the insn stream.
26384 (arm_output_epilogue): New function, made mainly from the body
26385 of output_func_epilogue.
26386 (output_func_epilogue): Move insn generation part of epilogue code
26387 to arm_output_epilogue.
26388 * arm.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Delete.
26389 * arm.md (pool_range): New attribute.
26390 (zero_extendqidi2): Add attribute pool_range.
26391 (zero_extend_hisi_insn, load_extendqisi, extendhisi_insn,
26392 extendqihi_insn, extendqisi_insn, movdi, movsi_insn, pic_load_addr,
26393 pic_load_addr_based_insn, movhi_insn_arch4, movhi_insn_littleend,
26394 movhi_insn_bigend, loadhi_si_bigend, movsf_hard_insn, movsf_soft_insn,
26395 movdf_hard_insn, movdf_soft_insn, movxf_hard_insn): Likewise.
26396 (epilogue): New expand.
26397 (epilogue_insn): New insn. Call arm_output_epilogue.
26398
26399 * arm.c (arm_poke_function_name): Undo change of July 17. Tidy up.
26400 * arm.h (TARGET_SWITCHES): Add missing doc string for TARGET_DEFAULT.
26401
26402 Mon Aug 2 19:18:44 1999 Jason Merrill <jason@yorick.cygnus.com>
26403
26404 * linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
26405
26406 1999-08-04 Mark Elbrecht <snowball3@bigfoot.com>
26407
26408 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Define.
26409
26410 Wed Aug 4 02:15:32 1999 Richard Henderson <rth@cygnus.com>
26411
26412 * jump.c (delete_insn): Delete the addr_vec when deleting a tablejump.
26413
26414 Wed Aug 4 01:48:08 1999 Jim Kingdon <http://developer.redhat.com>
26415
26416 * global.c: Fix comment.
26417
26418 Wed Aug 4 01:43:01 1999 Ian Lance Taylor <ian@zembu.com>
26419
26420 * gcc.c (access_check): New static function.
26421 (find_a_file): Use it when searching a directory list.
26422 * collect2.c (find_a_file): Don't accept directories found when
26423 searching a directory list.
26424
26425 Wed Aug 4 01:40:43 1999 Philippe De Muyter <phdm@macqel.be>
26426
26427 * tlink.c (symbol_hash_lookup): Do not prefix functions used as
26428 function parameters with `&'.
26429 (file_hash_lookup, demangled_hash_lookup, tlink_init): Ditto.
26430
26431 Wed Aug 4 01:08:44 1999 Jeffrey A Law (law@cygnus.com)
26432
26433 * flow.c (delete_unreachable_blocks): Do not call merge_blocks
26434 or tidy_fallthru_edge if the last insn in the block is not
26435 an unconditional jump or a simple conditional jump.
26436
26437 Tue Aug 3 20:21:20 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
26438
26439 * Makefile.in (c-decl.o): Depends on defaults.h.
26440
26441 Tue Aug 3 14:14:52 1999 Jeffrey A Law (law@cygnus.com)
26442
26443 * pa.h (HARD_REGNO_NREGS): FP registers are always 4 bytes wide for
26444 PA1.1 and above.
26445 (CLASS_MAX_NREGS): Likewise.
26446
26447 Tue Aug 3 03:51:20 1999 Jeffrey A Law (law@cygnus.com)
26448
26449 * cse.c (cse_insn): Fix dumb thinko in last change.
26450
26451 Tue Aug 3 10:36:13 1999 Bernd Schmidt <bernds@cygnus.co.uk>
26452
26453 * reload1.c (maybe_fix_stack_asms): Declare CONSTRAINTS as
26454 "const char *".
26455
26456 Mon Aug 2 23:45:45 1999 Hans-Peter Nilsson <hp@bitrange.com>
26457
26458 * dwarf2out.c (add_location_or_const_value_attribute): Correct
26459 test for sizes of passed and declared parameter types.
26460
26461 Tue Aug 3 00:03:41 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26462
26463 * fixincludes: Fix the return type of bsearch, char* -> void*.
26464
26465 * fixinc/inclhack.def: Likewise.
26466
26467 Mon Aug 2 18:29:32 1999 Mark Mitchell <mark@codesourcery.com>
26468
26469 * invoke.texi (-fdump-translation-unit): New option.
26470
26471 Mon Aug 2 17:54:19 1999 Richard Henderson <rth@cygnus.com>
26472
26473 * expr.h (PROMOTE_PROTOTYPES): Move ...
26474 * defaults.h: ... to here.
26475 * c-decl.c: Include defaults.h instead of expr.h.
26476 * c-typeck.c: Include defaults.h.
26477
26478 Mon Aug 2 17:10:24 1999 Mark Mitchell <mark@codesourcery.com>
26479
26480 * toplev.h (errorcount): Declare.
26481 (warningcount): Likewise.
26482 (sorrycount): Likewise.
26483 * c-lex.c (errorcount): Don't declare.
26484 * dwarf2out.c (errorcount): Don't declare.
26485
26486 Mon Aug 2 17:02:08 1999 Jason Merrill <jason@yorick.cygnus.com>
26487
26488 * config/libgloss.h: Add a note discouraging use with ELF.
26489 * configure.in: Don't use libgloss.h for ELF targets.
26490 Always use_collect2 on a.out targets.
26491
26492 Mon Aug 2 16:27:42 1999 Jim Wilson <wilson@cygnus.com>
26493
26494 * combine.c (force_to_mode, case LSHIFTRT): Add goto shiftrt.
26495 (force_to_mode, case ASHIFTRT): Add shiftrt label.
26496
26497 Tue Aug 3 00:45:02 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
26498
26499 * loop.c (strength_reduce): When doing biv->giv conversion, update
26500 reg note of NEXT->insn.
26501
26502 1999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
26503
26504 * real.c (PUT_REAL): Clear unused bytes if long double is IEEE quad.
26505
26506 1999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
26507
26508 * c-decl.c (get_parm_info, store_parm_decls): Change all uses of
26509 PROMOTE_PROTOTYPES, so that it tests it as a C expression.
26510 Ensure expr.h is included.
26511 * c-typecheck.c (convert_arguments): Ditto.
26512
26513 * expr.h: Supply default for PROMOTE_PROTOTYPES (0).
26514
26515 * config/arc/arc.h: Define PROMOTE_PROTOTYPES to 1.
26516 * config/convex/convex.h: Ditto.
26517 * config/dsp16xx/dsp16xx.h: Ditto.
26518 * config/fx80/fx80.h: Ditto.
26519 * config/gmicro/gmicro.h: Ditto.
26520 * config/i370/i370.h: Ditto.
26521 * config/i386/i386.h: Ditto.
26522 * config/m32r/m32r.h: Ditto.
26523 * config/m68k/m68k.h: Ditto.
26524 * config/m88k/m88k.h: Ditto.
26525 * config/mips/mips.h: Ditto.
26526 * config/pa/pa.h: Ditto.
26527 * config/pyr/pyr.h: Ditto.
26528 * config/tahoe/tahoe.h: Ditto.
26529 * config/we32k/we32k.h: Ditto.
26530
26531 * config/sparc/sparc.h: Define PROMOTE_PROTOTYPES
26532 based on arch size.
26533
26534 * config/i1750a/i1750a.h: Define PROMOTE_PROTOTYPES to 0.
26535
26536 * config/i860/paragon.h: Remove PROMOTE_PROTOTYPES
26537 from comment.
26538
26539 * tm.texi: Document new usage of PROMOTE_PROTOTYPES.
26540
26541 1999-08-02 Richard Henderson <rth@cygnus.com>
26542
26543 * m32r.c (m32r_setup_incoming_varargs): Use get_varargs_alias_set
26544 for the register spill block.
26545 (m32r_va_arg): New.
26546 * m32r.h (EXPAND_BUILTIN_VA_ARG): New.
26547 (EXPAND_BUILTIN_SAVEREGS): Delete #if 0 code.
26548
26549 * m32r.h (INT8_P): Don't short-cut test with (unsigned).
26550 (INT16_P, CMP_INT16_P, UINT16_P): Likewise.
26551 (UPPER16_P, UINT24_P, INT32_P, UINT5_P): Likewise.
26552
26553 1999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
26554
26555 * config/sparc/linux.h: Define WCHAR_TYPE as "int" and undef
26556 MAX_WCHAR_TYPE defined in sparc.h.
26557 * config/sparc/linuxaout.h: Likewise.
26558 * config/sparc/linux64.h: Likewise.
26559 Also default to -mvis if CPU is UltraSPARC.
26560
26561 1999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
26562
26563 * config/sparc/sparc.h (ASM_DECLARE_REGISTER_GLOBAL): New macro.
26564 (RTX_OK_FOR_OLO10): Likewise.
26565 (GO_IF_LEGITIMATE_ADDRESS): If assembler supports offsetable
26566 %lo(), allow it in addresses...
26567 (PRINT_OPERAND_ADDRESS): ... and print it appropriately.
26568 * config/sparc/sparc.md (sethi_di_medlow_embmedany_pic): sethi %lo()
26569 does not make sense.
26570 * config/sparc/sparc.c (sparc_hard_reg_printed): New array.
26571 (sparc_output_scratch_registers): New function.
26572 (output_function_prologue, sparc_flat_output_function_prologue): Use
26573 it.
26574 * varasm.c (make_decl_rtl): Use ASM_DECLARE_REGISTER_GLOBAL if
26575 defined.
26576 * tm.texi (ASM_DECLARE_REGISTER_GLOBAL): Document it.
26577 * configure.in: Add check for .register pseudo-op support in as and
26578 check for offsetable %lo().
26579 * acconfig.h: Add templates for the above checks.
26580 * configure: Regenerate.
26581
26582 1999-08-02 Richard Henderson <rth@cygnus.com>
26583
26584 * sparc/linux64.h (TARGET_DEFAULT): Remove MASK_APP_REGS.
26585 * sparc/sol2-sld-64.h (TARGET_DEFAULT): Likewise.
26586 * sparc/sol2.h (TARGET_DEFAULT): Likewise.
26587
26588 Mon Aug 2 23:46:45 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
26589
26590 * loop.c (strength_reduce): When doing biv->giv conversion, fix up
26591 reg_biv_class.
26592
26593 1999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
26594
26595 * config/float-sparc.h: New file.
26596 * configure.in: Use float_format=sparc for sparc-*-linux-gnulibc1,
26597 sparc-*-linux-gnu and sparc64-*-linux*.
26598
26599 1999-08-02 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
26600
26601 * rs6000.c (rs6000_va_list): Type is an array.
26602 (rs6000_va_start): Don't doubly adjust for varargs.
26603 (rs6000_va_arg): Evaluate long long GPR adjustment.
26604
26605 Mon Aug 2 16:15:57 1999 David Edelsohn <edelsohn@gnu.org>
26606
26607 * rs6000/aix43.h (SUBTARGET_SWITCHES): Use -m64 and -m32 instead of
26608 -maix64 and -maix32.
26609 (ASM_SPEC, ASM_CPU_SPEC, CPP_SPEC, CPP_CPU_SPEC, LIB_SPEC,
26610 LINK_SPEC): Change appropriately.
26611 * rs6000/rs6000.c (short_cint_operand): Use CONST_OK_FOR_LETTER_P.
26612 (u_short_cint_operand): Likewise.
26613 * rs6000/rs6000.md (movdi splitters): Add TARGET_POWERPC64 support
26614 for 64-bit hosts.
26615 * rs6000/t-aix43 (MULTILIB): Change to -m64.
26616
26617 * invoke.texi (RS/6000 Submodel): Document 64-bit processor options.
26618
26619 Mon Aug 2 16:15:57 1999 Geoff Keating <geoffk@cygnus.com>
26620
26621 * rs6000/rs6000.c (num_insns_constant_wide): Correct
26622 for type promotion.
26623 (add_operand): Get test correct for 64-bit HOST_WIDE_INT.
26624 (non_add_cint_operand): Likewise.
26625 (logical_operand): Likewise.
26626 (non_logical_cint_operand): Likewise.
26627 (print_operand): Correct printf()s for 64-bit HOST_WIDE_INT.
26628 (print_operand_address): Correct printf() for 64-bit HOST_WIDE_INT.
26629 (rs6000_select_rtx_section): Suppress warning.
26630 (small_data_operand): Suppress warning.
26631 (rs6000_got_register): Suppress warning.
26632 * rs6000/rs6000.md (andsi3): HOST_WIDE_INT is a signed
26633 type, so `J' is generally the wrong constraint for a SImode value;
26634 use `L' instead.
26635 (andsi3_internal2): Likewise.
26636 (andsi3_internal3): Likewise.
26637 (iorsi3_internal1): Likewise.
26638 (xorsi3_internal1): Likewise.
26639 (movsi): Likewise.
26640 (movsf_softfloat): Likewise.
26641 (scc insns): Likewise.
26642 (movsi+2): Preserve sign bits of SImode constant.
26643 (floatsidf2_internal+1): Sign-extend SImode constant correctly.
26644 (movdf+1): Sign-extend properly.
26645 (movdi_32+1): Sign-extend properly.
26646 (scc insns): Sign-extend properly.
26647
26648 * md.texi (RS/6000 EXTRA_CONSTRAINTS): Update documentation for J,
26649 K, L, and T.
26650
26651 1999-08-02 Richard Henderson <rth@cygnus.com>
26652
26653 * alpha.c (override_options): Move ev6 alpha_tp frobbing out of
26654 -mcpu parsing code.
26655 (print_operand): Notice alpha_fptm not alpha_tp for sw completion.
26656 * alpha.md (all fp insns): Likewise.
26657
26658 1999-08-02 Nick Clifton <nickc@cygnus.com>
26659
26660 * config/v850/v850.h (STRICT_ALIGNMENT): Only define if not
26661 already defined.
26662
26663 Mon Aug 2 03:38:33 1999 Jeffrey A Law (law@cygnus.com)
26664
26665 * pa.c (legitimize_pic_address): Clarify comments. Do not call the
26666 pic_load_label generator directly.
26667 * pa.md (pic_load_label): Clarify comments. Remove modes on operands.
26668 No longer a named pattern.
26669
26670 Mon Aug 2 09:38:10 1999 Nick Clifton <nickc@cygnus.com>
26671
26672 * explow.c (force_reg): Call force_operand if X does not
26673 satisfy general_operand.
26674
26675 Mon Aug 2 01:34:22 1999 Jeffrey A Law (law@cygnus.com)
26676
26677 * fix-header.c (main): When testing for CONTINUED, use string
26678 equality, not pointer equality.
26679
26680 Mon Aug 2 01:27:24 1999 Dan Nicolaescu <dann@ics.uci.edu>
26681
26682 * sparc.c (sparc_block_profiler): Use the %g2 register, not %o0.
26683
26684 Sun Aug 1 22:46:42 1999 Jeffrey A Law (law@cygnus.com)
26685
26686 * cse.c (cse_insn): Fix loop which deletes insns after a jump
26687 that has become an unconditional jump.
26688
26689 * m68k.c (output_function_prologue): Fix typo in CPU32 case.
26690 (output_function_epilogue): Similarly.
26691
26692 Sun Aug 1 20:14:00 1999 Bernd Schmidt <bernds@cygnus.co.uk>
26693
26694 * tree.h (init_dummy_function_start): Declare.
26695
26696 Sun Aug 1 12:55:31 1999 Bernd Schmidt <bernds@cygnus.co.uk>
26697
26698 * stmt.c (emit_filename, emit_lineno, expr_stmts_for_value,
26699 last_expr_type, last_expr_value, block_start_count, block_stack,
26700 stack_block_stack, cond_stack, loop_stack, case_stack, nesting_stack,
26701 nesting_depth, goto_fixup_chain): Delete global vars; now allocated
26702 dynamically in stmt elt of struct function for each function.
26703 (struct nesting): Rename function_call_count elt to n_function_calls,
26704 target_temp_slot_level to block_target_temp_slot_level. All users
26705 changed.
26706 (struct stmt_status): New structure definition.
26707 Add many accessor macros for stmt_status elements which previously
26708 were global variables.
26709 (init_stmt_for_function): Allocate stmt elt for current_function.
26710 Reflect that block_start_count was renamed to
26711 current_block_start_count.
26712 (save_stmt_status, restore_stmt_status): Delete functions.
26713 (preserve_subexpressions_p): Don't access loop_stack when outside
26714 a function.
26715 (expand_start_bindings): Reflect that block_start_count was renamed to
26716 current_block_start_count.
26717 (expand_fixup): Likewise.
26718 (expand_decl): Don't access block_stack when outside a function.
26719 (expand_decl_cleanup): Likewise.
26720 (expand_dcc_cleanup): Likewise.
26721 (expand_dhc_cleanup): Likewise.
26722 (expand_anon_union_decl): Likewise.
26723 (set_file_and_line_for_stmt): New function.
26724 (in_control_zone_p): New function.
26725
26726 * function.h (struct function): Add new elt stmt.
26727 Delete elts block_stack, stack_block_stack, cond_stack, loop_stack,
26728 case_stack, nesting_stack, nesting_depth, block_start_count,
26729 last_expr_type, last_expr_value, expr_stmts_for_value, emit_filename,
26730 emit_lineno, goto_fixup_chain.
26731 (save_eh_status, restore_eh_status, save_stmt_status,
26732 restore_stmt_status): Delete declarations.
26733 * function.c (push_function_context_to): Don't call save_stmt_status.
26734 (pop_function_context_to): Don't call restore_stmt_status.
26735 * tree.h (in_control_zone_p): Declare.
26736 * rtl.h (set_file_and_line_for_stmt): Declare.
26737
26738 * emit-rtl.c (emit_line_note): Don't set emit_filename/emit_lineno;
26739 call set_file_and_line_for_stmt.
26740
26741 Thu Jul 31 12:34:45 1999 Joe Buck <jbuck@synopsys.com>
26742
26743 * gcc.texi: Use terms "GNU Compiler Collection" and "GCC".
26744 Also update copyright.
26745
26746 Sat Jul 31 11:10:07 1999 Bernd Schmidt <bernds@cygnus.co.uk>
26747
26748 * c-pragma.c: Don't include "except.h".
26749 * emit-rtl.c: Likewise.
26750 * stor-layout.c: Likewise.
26751 * tree.c: Likewise.
26752 * varasm.c: Likewise.
26753
26754 * flow.c: Include "function.h".
26755 * tree.h (init_dummy_function_start): Declare new function.
26756
26757 * except.h (struct eh_status): New structure.
26758 (struct label_node, struct eh_entry): Declare even if tree.h hasn't
26759 been included.
26760 (eh_return_stub_label, ehstack, catchstack, ehqueue,
26761 catch_clauses, false_label_stack, caught_return_label_stack,
26762 protect_list, current_function_ehc): Add accessor macros for the
26763 corresponding fields in current_function->eh; delete declarations
26764 for all items that used to be declared here.
26765 * except.c (eh_return_stub_label, ehstack, catchstack, ehqueue,
26766 catch_clauses, false_label_stack, caught_return_label_stack,
26767 protect_list, current_function_ehc): Delete variables.
26768 (init_eh_for_function): Allocate current_function->eh.
26769 (save_eh_status, restore_eh_status): Delete functions.
26770
26771 * function.h (struct function): Add fields next_global and eh.
26772 Delete all exception handling related fields.
26773 * function.c (current_function): New variable.
26774 (all_functions): New variable.
26775 (push_function_context_to): Don't allocate a struct function,
26776 use current_function instead. Call init_dummy_function_start when
26777 outside a function. Clear current_function before returning.
26778 (pop_function_context_from): Restore current_function.
26779 Don't free the restored struct function.
26780 (prepare_function_start): New function.
26781 (init_dummy_function_start): New function.
26782 (init_function_start): Break out some code into prepare_function_start
26783 and call it here.
26784
26785 * stmt.c (save_stmt_status): Don't call save_eh_status.
26786 (restore_stmt_status): Don't call restore_eh_status.
26787
26788 * Makefile.in: Update dependencies.
26789
26790 Sat Jul 31 04:10:01 1999 Jeffrey A Law (law@cygnus.com)
26791
26792 * pa.c (compute_frame_size): Use STARTINg_FRAME_OFFSET instead
26793 of depending on a magic constant value. Update comments.
26794 (hppa_expand_prologue): Similarly.
26795
26796 * pa.md (reload_indi, reload_outdi): Allow any register for the
26797 original reload register.
26798
26799 Fri Jul 30 19:41:35 1999 Jim Wilson <wilson@cygnus.com>
26800
26801 * cccp.c (print_help): Change marcos to macros.
26802
26803 1999-07-30 Richard Henderson <rth@cygnus.com>
26804
26805 * c-typeck.c (initializer_constant_valid_p): Move ...
26806 * c-common.c (initializer_constant_valid_p): ... here. Use
26807 FOO_TYPE_P instead of tests against TREE_CODE. Allow subtraction
26808 of label addresses.
26809 * c-common.h (initializer_constant_valid_p): Declare.
26810 * c-tree.h (initializer_constant_valid_p): Remove.
26811
26812 Fri Jul 30 16:33:42 1999 Mathias Froehlich <frohlich@na.uni-tuebingen.de>
26813
26814 * config/i386/sol2-c1.asm: Align the stack.
26815 * config/i386/sol2-gc1.asm: Likewise.
26816
26817 1999-07-30 Vladimir Makarov <vmakarov@loony.cygnus.com>
26818
26819 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Change -Av8 onto
26820 -Asparclite for sparc86x.
26821 (CPP_CPU32_DEFAULT_SPEC, CPP_CPU_SPEC): Remove -D__sparc_v8__ for
26822 sparc86x.
26823 (ASM_CPU_SPEC): Use -Asparclite for sparc86x.
26824
26825 Fri Jul 30 14:53:56 1999 Jakub Jelinek <jj@ultra.linux.cz>
26826
26827 * config/sparc/linux64.h (CC1_SPEC): Preserve CPU specified by
26828 the user if using the non-default arch size in BI_ARCH configuration.
26829 * config/sparc/sol2-sld-64.h (CC1_SPEC): Ditto.
26830
26831 * config/sparc/sparc.md (cmp_mul_set, cmp_udiv_cc_set):
26832 Fix patterns so that they actually match.
26833 (cmp_sdiv_cc_set): Ditto, also don't require g0 to be zero.
26834 (mulsidi3_sp64, const_mulsidi3_sp64): New patterns.
26835 (const_mulsidi3_sp32): Renamed from const_mulsidi3, only on
26836 TARGET_HARD_MUL32.
26837 (mulsidi3): Reflect this in the expand.
26838 (smulsi3_highpart): Only on TARGET_ARCH32.
26839 (umulsidi3_sp64, const_umulsidi3_sp64): New patterns.
26840 (const_umulsidi3_sp32): Renamed from const_umulsidi3.
26841 (umulsidi3): Reflect this in the expand.
26842 (umulsi3_highpart): Only on TARGET_ARCH32.
26843 (divsi3_sp32): Renamed from divsi3, only on TARGET_ARCH32,
26844 don't require g0 to be zero.
26845 (udivsi3_sp32): Renamed from udivsi3, only on TARGET_ARCH32.
26846 ({,u}divsi3): New expands.
26847 ({,u}divsi3_sp64): New patterns.
26848 (after lshrdi3_v8plus): Four new patterns to help combiner
26849 optimizing nested mixed mode shifts.
26850
26851 * config/sparc/sparc.c (sparc_override_options): Use deprecated
26852 v8 instructions if optimizing for UltraSPARC I, II, IIi, as it
26853 speed things up. Don't use them by default on plain v9 in 64bit
26854 mode, according to what SPAMv9 sais.
26855
26856 * config/sparc/sparc.h: Fix comments, e.g. Linux already preserves
26857 top 32 bits of %[og][0-7] in signal handlers.
26858 Also, TARGET_HARD_MUL32 now is only true for TARGET_ARCH32.
26859
26860 Fri Jul 30 03:00:41 1999 Jeffrey A Law (law@cygnus.com)
26861
26862 * pa.md (zvdep_imm32): Renamed from zvdep_imm.
26863 (ashlsi3): Corresponding changes.
26864
26865 * pa.c (compute_zdepwi_operands): Renamed from compute_zdepi_operands.
26866
26867 Thu Jul 29 18:37:13 1999 Jeffrey A Law (law@cygnus.com)
26868
26869 * pa.h (FIRST_PARM_CALLER_OFFSET): Delete.
26870
26871 Thu Jul 29 19:01:58 1999 Bernd Schmidt <bernds@cygnus.co.uk>
26872
26873 * arm.h (Hint): Delete macro.
26874 Substitute HOST_WIDE_INT for Hint in some prototypes.
26875 * arm.c: Substitute HOST_WIDE_INT for Hint in one prototype.
26876
26877 Thu Jul 29 09:21:42 1999 Nick Clifton <nickc@cygnus.com>
26878
26879 * builtins.c (expand_builtin_setjmp): Use force_operand to
26880 make sure that the buffer address is in a suitable form to be
26881 passed to force_reg.
26882
26883 Wed Jul 28 12:50:48 1999 Geoff Keating <geoffk@cygnus.com>
26884
26885 * config/mips/mips.c: system.h handles MIN and MAX, don't undefine
26886 them here.
26887
26888 Wed Jul 28 13:18:35 1999 Jeffrey A Law (law@cygnus.com)
26889
26890 * pa.md (indirect_jump): Remove mode from match_operand. Verify
26891 proper mode in the condition string.
26892 (icacheflush, dcacheflush): Remove modes from match_operands.
26893
26894 * pa.c (emit_move_sequence): Always convert scratch_reg to the
26895 proper mode before using it.
26896
26897 * pa.md (adddi3, subdi3): Turn into a define_expand/define_insn
26898 pair.
26899
26900 * pa.c (store_reg): Do not call add_high_const generator directly.
26901 (load_reg, set_reg_plus_d): Likewise.
26902 * pa.md (add_high_const): No longer a named pattern.
26903
26904 * pa.c (legitimize_address): Consistently use Pmode rather than
26905 SImode. Do not call gen_pic2_highpart directly anymore.
26906 * pa.md (pic2_highpart): No longer a named pattern.
26907 (pic2_lo_sum): Similarly. Reformat to make more readable.
26908
26909 * pa.md (call, call_value): Use "word_mode" instead of "SImode" as
26910 needed.
26911
26912 * README: Update.
26913
26914 Wed Jul 28 11:28:04 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
26915
26916 * builtins.c (expand_builtin): Typo in call to expand_builtin_ffs.
26917
26918 Wed Jul 28 11:23:48 1999 Richard Henderson <rth@cygnus.com>
26919
26920 * pa.c (hppa_builtin_saveregs): Use get_varargs_alias_set
26921 and tag the spill mems.
26922 (hppa_va_start): New.
26923 (hppa_va_arg): New.
26924 * pa.h (EXPAND_BUILTIN_VA_START): New.
26925 (EXPAND_BUILTIN_VA_ARG): New.
26926
26927 Wed Jul 28 11:22:21 1999 Richard Henderson <rth@cygnus.com>
26928
26929 * mn10300.c (mn10300_builtin_saveregs): Use get_varargs_alias_set
26930 and tag the spill mems.
26931 (mn10300_va_start): New.
26932 (mn10300_va_arg): New.
26933 * mn10300.h (EXPAND_BUILTIN_VA_START): New.
26934 (EXPAND_BUILTIN_VA_ARG): New.
26935
26936 Wed Jul 28 11:20:19 1999 Richard Henderson <rth@cygnus.com>
26937
26938 * mn10200.c (mn10200_va_arg): New.
26939 * mn10200.h (EXPAND_BUILTIN_VA_ARG): New.
26940
26941 Wed Jul 28 11:19:06 1999 Richard Henderson <rth@cygnus.com>
26942
26943 * builtins.c (std_expand_builtin_va_arg): Use int_size_in_bytes
26944 rather than play with TREE_INT_CST_LOW.
26945
26946 1999-07-27 Philip Blundell <pb@nexus.co.uk>
26947
26948 * config/arm/telf.h: Include dbxelf.h.
26949 (CPP_PREDEFINES): Only define if not already defined.
26950 (ASM_IDENTIFY_GCC): Likewise.
26951 (SUBTARGET_EXTRA_SECTIONS): Likewise.
26952 (SUBTARGET_EXTRA_SECTION_FUNCTIONS): Likewise.
26953 * config/arm/thumb.h (LINK_SPEC): Only define if not already
26954 defined.
26955 (DBX_DEBUGGING_INFO): Don't define.
26956 * config/arm/linux-telf.h: New file.
26957 * config/arm/linux-tgas.h: New file.
26958 * config/arm/t-thumb-linux: New file.
26959 * config/arm/uclinux-elf.h: New file.
26960 * config/arm/uclinux-telf.h: New file.
26961 * configure.in (arm-*-uclinux, thumb-*-linux-gnu,
26962 thumb-*-uclinux): New targets.
26963 * configure: Regenerate.
26964
26965 Tue Jul 27 23:20:21 1999 Jeffrey A Law (law@cygnus.com)
26966
26967 * pa.md (post_store, pre_load): New expanders.
26968 (post_stwm, pre_ldwm): Renamed to post_stw and pre_ldw respectively.
26969 (post_ldwm, pre_stwm): Make these unnamed patterns since we never
26970 need to directly generate RTL for them.
26971 * pa.c (hppa_expand_prologue, hppa_expand_epilogue): Corresponding
26972 changes.
26973
26974 Tue Jul 27 16:05:52 1999 David Edelsohn <edelsohn@gnu.org>
26975
26976 * aix43.h (ASM_CPU_SPEC, CPP_CPU_SPEC): Add rs64a and PPC630.
26977 * rs6000.c (processor_target_table): Add powerpc64, rs64a, and PPC630.
26978 (rs6000_cpu): Choose between 32-bit and 64-bit default processors.
26979 (secndary_reload_class): Make TARGET_ELF conditional compile.
26980 (print_operand_address): Similar.
26981 (output_toc): Print all values as hex.
26982 (get_issue_rate): Rearrange and add RS64A and PPC630.
26983 * rs6000.h (processor_type): Add RS64A and PPC630.
26984 (PROCESSOR_POWERPC64): New.
26985 (PROMOTE_MODE): Use word_mode.
26986 (RTX_COSTS): Add RS64A and PPC630.
26987 * rs6000.md (scheduling information): Add lmul and ldiv
26988 representing 64-bit integer multiply and divide. Add rs64a and
26989 PPC630 information.
26990 (ashldi3): Add support for "rldic" instruction.
26991 * sysv4.h (PROCESSOR_DEFAULT): Change to PROCESSOR_750.
26992
26993 Tue Jul 27 15:31:53 1999 Vladimir Makarov <vmakarov@toad.to.cygnus.com>
26994
26995 * config/sparc/sparc.c (sparc_override_options): Enable SPARCLITE
26996 instead of V8 for sparclite86x in cpu_table.
26997
26998 Tue Jul 27 17:49:42 1999 Bernd Schmidt <bernds@cygnus.co.uk>
26999
27000 * config/arm/coff.h (ASM_FILE_START): If generating SDB output, call
27001 output_file_directive.
27002
27003 Tue Jul 27 03:15:33 1999 Jason Merrill <jason@yorick.cygnus.com>
27004
27005 * expr.c (expand_expr, case PLUS_EXPR): Get the mode from the
27006 tree for op1, not the rtl.
27007
27008 Tue Jul 27 00:18:34 1999 Richard Henderson <rth@cygnus.com>
27009
27010 * m88k.c (m88k_builtin_saveregs): Break out the constructor code
27011 to m88k_va_start, leaving only the register spill.
27012 (m88k_build_va_list): New.
27013 (m88k_va_start): New.
27014 (m88k_va_arg): New.
27015 * m88k.h (BUILD_VA_LIST_TYPE): New.
27016 (EXPAND_BUILTIN_VA_START): New.
27017 (EXPAND_BUILTIN_VA_ARG): New.
27018
27019 Mon Jul 26 19:07:11 1999 Geoff Keating <geoffk@cygnus.com>
27020
27021 * config/rs6000/rs6000.c (rs6000_expand_builtin_saveregs):
27022 Rename from expand_builtin_saveregs.
27023 * config/rs6000/rs6000.h (EXPAND_BUILTIN_SAVEREGS): Change caller.
27024
27025 Mon Jul 26 22:52:47 1999 Richard Henderson <rth@cygnus.com>
27026
27027 * i960.c (i960_setup_incoming_varargs): Use get_varargs_alias_set
27028 for the register spill block.
27029 (i960_build_va_list): New.
27030 (i960_va_start): New.
27031 (i960_va_arg): New.
27032 * i960.h (BUILD_VA_LIST_TYPE): New.
27033 (EXPAND_BUILTIN_VA_START): New.
27034 (EXPAND_BUILTIN_VA_ARG): New.
27035 * i960.md (store_multiple): Use change_address on individul mems.
27036
27037 Mon Jul 26 22:43:12 1999 Richard Henderson <rth@cygnus.com>
27038
27039 * builtins.c (stabilize_va_list): Don't INDIRECT_REF through
27040 an ARRAY_TYPE.
27041 (std_expand_builtin_va_start): Back out one word if !stdarg_p.
27042 (expand_builtin_va_end): Evaluate arg for side effects.
27043 * c-common.c (c_common_nodes_and_builtins): Construct a
27044 va_list_arg_type_node to handle array decomposition to pointer.
27045
27046 Mon Jul 26 18:51:34 1999 Richard Henderson <rth@cygnus.com>
27047
27048 * except.c (st_dynamic_cleanup): Use force_operand on the
27049 buffer's address.
27050
27051 Mon Jul 26 16:43:26 1999 Richard Henderson <rth@cygnus.com>
27052
27053 * c4x.h (EXPAND_BUILTIN_VA_ARG): New.
27054 * c4x.c (c4x_va_arg): New.
27055
27056 Mon Jul 26 12:30:09 1999 Jason Merrill <jason@yorick.cygnus.com>
27057
27058 * cpplib.c (cpp_get_token): Don't return a CPP_POP if the buffer
27059 has manual_pop set.
27060
27061 1999-07-26 Nathan Sidwell <nathan@acm.org>
27062
27063 * eh-common.h (__eh_matcher): Prototype correctly.
27064
27065 Mon Jul 26 17:24:51 1999 Philip Blundell <pb@nexus.co.uk>
27066
27067 * config/arm/thumb.h (THUMB_FLAG_SINGLE_PIC_BASE): Define.
27068 (TARGET_SINGLE_PIC_BASE): Likewise.
27069 (GOT_PCREL, NEED_GOT_RELOC, NEED_PLT_RELOC): Provide default
27070 definitions.
27071 (TARGET_CALLEE_INTERWORKING): Fix typo in comment.
27072 (TARGET_SWITCHES): Add -m{no-}single-pic-base.
27073 (TARGET_OPTIONS): Add -mpic-register=N.
27074 (OUTPUT_INT_ADDR_CONST): New macro.
27075 (INDEX_REGISTER_RTX_P, PIC_OFFSET_TABLE_REGNUM, FINALIZE_PIC,
27076 LEGITIMATE_PIC_OPERAND_P): Likewise.
27077 (LEGITIMIZE_ADDRESS, GOT_IF_LEGITIMATE_ADDRESS): Support PIC.
27078 (ASM_OUTPUT_INT): Use OUTPUT_INT_ADDR_CONST rather than calling
27079 output_addr_const directly.
27080 (PRINT_OPERAND_PUNCT_VALID_P): Accept `|' for compatibility with
27081 ARM port.
27082 (thumb_pic_register, thumb_pic_register_string): Declare.
27083
27084 * config/arm/thumb.c (symbol_mentioned_p): New function: Imported
27085 from arm.c.
27086 (label_mentioned_p): New function: Imported from arm.c.
27087 (legitimize_pic_address): New function: Imported from arm.c.
27088 (is_pic):New function: Imported from arm.c.
27089 (thumb_finalize_pic):New function: Imported from arm.c.
27090 (add_constant): Cope with PIC constants.
27091 (fixit): Cope with PIC constants.
27092 (output_return): Do not treat the PIC register as live if
27093 TARGET_SINGLE_PIC_BASE is true.
27094 (thumb_function_prologue): Do not treat the PIC register as live if
27095 TARGET_SINGLE_PIC_BASE is true.
27096 (thumb_expand_prologue): Do not treat the PIC register as live if
27097 TARGET_SINGLE_PIC_BASE is true.
27098 (thumb_unexpand_epilogue): Do not treat the PIC register as live if
27099 TARGET_SINGLE_PIC_BASE is true.
27100 (thumb_print_operand): Accept '|'.
27101 (thumb_override_options): Process PIC options.
27102
27103 * config/arm/thumb.md (movsi): Support PIC.
27104 (call_insn): Change "i" constraint to "X".
27105 (call_value_insn): Likewise.
27106 (consttable_4, consttable_8, consttable_end): Set and clear
27107 "making_const_table" as appropriate.
27108 (pic_load_addr, pic_add_dot_plus_four): New insns.
27109
27110 * invoke.texi (Thumb Options): Fix spelling. Document new
27111 options -msingle-pic-base and -mpic-register=.
27112
27113 1999-07-26 Andrew Haley <aph@cygnus.com>
27114
27115 * config/m32r/initfini.c (__init): Use a full word immediate for
27116 __fini: this allows it to be placed in any memory region.
27117
27118 * config/m32r/t-m32r: Compile crtinit.o and crtfini.o for
27119 -mmodel=medium. This is OK for all memory models.
27120
27121 Mon Jul 26 11:58:46 1999 Nick Clifton <nickc@cygnus.com>
27122
27123 * config/arm/arm.c: Replace %R%s in asm_fprintf strings with %r.
27124 * config/arm/arm.h: Replace %R%s in asm_fprintf strings with %r.
27125
27126 Mon Jul 26 10:23:36 1999 Nick Clifton <nickc@cygnus.com>
27127
27128 * final.c (asm_fprintf): Accept ASM_FPRINTF_EXTENSIONS, if
27129 defined.
27130
27131 * tm.texi: Document ASM_FPRINTF_EXTENSIONS.
27132
27133 Sun Jul 25 23:51:59 1999 Richard Henderson <rth@cygnus.com>
27134
27135 * i860.h (EXPAND_BUILTIN_SAVEREGS): New.
27136 (BUILD_VA_LIST_TYPE): New.
27137 (EXPAND_BUILTIN_VA_START): New.
27138 (EXPAND_BUILTIN_VA_ARG): New.
27139 * i860.c (output_delayed_branch): Disable.
27140 (output_delay_insn): Likewise.
27141 (i860_saveregs): New.
27142 (i860_build_va_list): New.
27143 (i860_va_start): New.
27144 (i860_va_arg): New.
27145 * i860.md: Disable all peepholes using output_delayed_branch.
27146 * i860/sysv4.h (I860_SVR4_VA_LIST): New.
27147
27148 Sun Jul 25 23:44:13 1999 Richard Henderson <rth@cygnus.com>
27149
27150 * clipper.h (EXPAND_BUILTIN_SAVEREGS): Remove argument.
27151 (BUILD_VA_LIST_TYPE): New.
27152 (EXPAND_BUILTIN_VA_START): New.
27153 (EXPAND_BUILTIN_VA_ARG): New.
27154 * clipper.c (clipper_builtin_saveregs): Only dump registers.
27155 Return the address of the save area.
27156 (clipper_build_va_list): New.
27157 (clipper_va_start): New.
27158 (clipper_va_arg): New.
27159
27160 Sun Jul 25 22:56:47 1999 Richard Henderson <rth@cygnus.com>
27161
27162 * arc.h (EXPAND_BUILTIN_VA_START): New.
27163 (EXPAND_BUILTIN_VA_ARG): New.
27164 * arc.c (arc_setup_incoming_varargs): Set alias set of
27165 varargs save area.
27166 (arc_va_start): New.
27167 (arc_va_arg): New.
27168
27169 Sun Jul 25 22:45:55 1999 Richard Henderson <rth@cygnus.com>
27170
27171 * alpha.h (EXPAND_BUILTIN_SAVEREGS): Delete.
27172 (BUILD_VA_LIST_TYPE): New.
27173 (EXPAND_BUILTIN_VA_START): New.
27174 (EXPAND_BUILTIN_VA_ARG): New.
27175 * alpha.c (alpha_builtin_saveregs): Delete.
27176 (alpha_build_va_list): New.
27177 (alpha_va_start): New.
27178 (alpha_va_arg): New.
27179
27180 Sun Jul 25 21:40:33 1999 Jeffrey A Law (law@cygnus.com)
27181
27182 * config/svr4.h (CTORS_SECTION_ASM_OP): Do not emit directives in
27183 column zero.
27184 (DTORS_SECTION_ASM_OP, INIT_SECTION_ASM_OP): Likewise.
27185 (FINI_SECTION_ASM_OP, ASM_OUTPUT_SECTION_NAME): Likewise.
27186
27187 * gcc.texi: More changes related to list conversion.
27188 * invoke.texi: Likewise.
27189
27190 Sun Jul 25 18:15:39 1999 Richard Henderson <rth@cygnus.com>
27191
27192 * builtins.c (expand_builtin_saveregs): Remove static, remove exp
27193 and ignore arguments, bail if no EXPAND_BUILTIN_SAVEREGS.
27194 (expand_builtin_next_arg): Accept ARGLIST not EXP.
27195 (stabilize_va_list): New function.
27196 (std_expand_builtin_va_start): New function.
27197 (expand_builtin_va_start): New function.
27198 (get_varargs_alias_set): New function.
27199 (std_expand_builtin_va_arg): New function.
27200 (expand_builtin_va_arg): New function.
27201 (expand_builtin_va_end): New function.
27202 (expand_builtin_va_copy): New function.
27203 (expand_builtin): Call them.
27204 * c-common.c (c_common_nodes_and_builtins): Build __builtin_va_list,
27205 __builtin_{varargs_start,stdarg_start,end,copy}.
27206 (build_va_arg): New function.
27207 * c-common.h (CTI_PTR_TYPE, ptr_type_node): Delete.
27208 (build_va_arg): Declare.
27209 * c-decl.c (ptr_type_node, va_list_type_node): New.
27210 * c-parse.gperf (__builtin_va_arg): New.
27211 * c-parse.in (VA_ARG): New token.
27212 (unary_expr): Recognize it.
27213 * expr.c (expand_expr): Expand VA_ARG_EXPR.
27214 * expr.h (std_expand_builtin_va_start): Declare.
27215 (std_expand_builtin_va_arg): Declare.
27216 (expand_builtin_va_arg): Declare.
27217 (get_varargs_alias_set): Declare.
27218 * tree.def (VA_ARG_EXPR): New.
27219 * tree.h (BUILT_IN_VARARGS_START): New.
27220 (BUILT_IN_STDARG_START, BUILT_IN_VA_END): New.
27221 (ptr_type_node, va_list_type_node): Declare.
27222 * tm.texi (EXPAND_BUILTIN_SAVEREGS): Kill unused ARGLIST argument.
27223 * m32r.h (EXPAND_BUILTIN_SAVEREGS): Likewise.
27224 * m88k.h, m88k.c: Likewise.
27225 * mn10300.h, mn10300.c: Likewise.
27226 * pa.h, pa.c: Likewise.
27227 * rs6000.h, rs6000.c: Likewise.
27228 * sh.h, sh.c: Likewise.
27229 * sparc.h, sparc.c: Likewise.
27230
27231 * emit-rtl.c (operand_subword): Copy alias set.
27232 (change_address): Likewise.
27233
27234 Sun Jul 25 15:04:37 1999 Jeffrey A Law (law@cygnus.com)
27235
27236 * pa.c (compute_frame_size): Scan all the used callee saved registers,
27237 not just the first one.
27238
27239 Fri Jul 23 14:09:58 1999 Philip Blundell <pb@nexus.co.uk>
27240
27241 * config/arm/arm.h (TARGET_SWITCHES): Add
27242 -m{no-}single-pic-base. Correct help string for -mshort-load-words.
27243 (TARGET_OPTIONS): Add -mpic-register=.
27244 (ARM_FLAG_SINGLE_PIC_BASE, TARGET_SINGLE_PIC_BASE): Define.
27245 (arm_pic_register_string): Declare.
27246 (NEED_PLT_GOT): Delete, replace with ...
27247 (NEED_GOT_RELOC, NEED_PLT_RELOC): ... these. New macros.
27248 (OUTPUT_INT_ADDR_CONST): Replace NEED_PLT_GOT with NEED_GOT_RELOC.
27249 (ASM_OUTPUT_MI_THUNK): Replace NEED_PLT_GOT with NEED_PLT_RELOC.
27250 * config/arm/arm.c (arm_override_options): Add new option
27251 -mpic-register=N.
27252 (arm_pic_register_string): New variable.
27253 (arm_finalize_pic): Respect TARGET_SINGLE_PIC_BASE.
27254 (output_func_prologue): If TARGET_SINGLE_PIC_BASE, treat the PIC
27255 register as never live. Use NEED_PLT_RELOC not NEED_PLT_GOT.
27256 (output_return_instruction): Likewise.
27257 * config/arm/elf.h (NEED_PLT_GOT): Delete, replace with ...
27258 (NEED_GOT_RELOC, NEED_PLT_RELOC): ... these. Define to flag_pic.
27259 * config/arm/arm.md: Use NEED_PLT_RELOC in place of NEED_PLT_GOT.
27260
27261 * invoke.texi (ARM Options): Fix spelling. Remove duplicate
27262 mention of -msched-prolog. Document new options -msingle-pic-base
27263 and -mpic-register=.
27264
27265 Thu Jul 22 18:23:56 1999 Richard Henderson <rth@cygnus.com>
27266
27267 * haifa-sched.c (reemit_notes): Tidy.
27268 * sched.c (reemit_notes): Duplicate 1998-08-31 patch to
27269 haifa's routine.
27270
27271 Thu Jul 22 18:21:04 1999 Richard Henderson <rth@cygnus.com>
27272
27273 * explow.c (trunc_int_for_mode): New function.
27274 (plus_constant_wide): Use it.
27275 * combine.c (simplify_and_const_int): Likewise.
27276 (merge_outer_ops): Likewise.
27277 (simplify_shift_const): Likewise.
27278 * cse.c (simplify_unary_operation): Likewise.
27279 (simplify_binary_operation): Likewise.
27280 * emit-rtl.c (operand_subword): Likewise.
27281 * rtl.h: Declare it.
27282
27283 Thu Jul 22 14:34:59 1999 Bernd Schmidt <bernds@cygnus.co.uk>
27284
27285 * config/arm/arm.c (arm_print_operand): Fix typo in 'M' case
27286 (use NUM_REGS instead of NUM_INTS).
27287
27288 Thu Jul 22 11:25:20 1999 Bernd Schmidt <bernds@cygnus.co.uk>
27289
27290 * builtins.c: New file.
27291 * expr.c (saveregs_value, apply_args_value): Delete definition,
27292 moved into builtins.c.
27293 (string_constant): No longer static.
27294 (get_pointer_alignment, c_strlen, get_memory_rtx, expand_builtin,
27295 apply_args_size, apply_result_size, result_vector,
27296 expand_builtin_apply_args, expand_builtin_apply,
27297 expand_builtin_return): Delete functions, moved into builtins.c.
27298 (INCOMING_REGNO, OUTGOING_REGNO): Delete unused macros.
27299 * expr.h (saveregs_value, apply_args_value): Declare variables.
27300 (expand_builtin, string_constant): Declare functions.
27301 * Makefile.in: Update to build builtin.o.
27302
27303 Wed Jul 21 00:46:58 1999 Mark P. Mitchell <mark@codesourcery.com>
27304
27305 * defaults.h (DWARF2_GENERATE_TEXT_SECTION_LABEL): New macro.
27306 * tm.texi (DWARF2_GENERATE_TEXT_SECTION_LABEL): Define it.
27307 * dwarf2out.c (dwarf2out_init): Don't output a label to mark the
27308 start of the text section if DWARF2_GENERATE_TEXT_SECTION_LABEL is
27309 false.
27310 * config/mips/iris6.h (DWARF2_GENERATE_TEXT_SECTION_LABEL):
27311 Define to zero.
27312
27313 1999-07-21 Michael Meissner <meissner@cygnus.com>
27314
27315 * print-rtl.c (print_rtx): Print the names of the virtual
27316 registers.
27317
27318 Wed Jul 21 16:00:32 1999 Nick Clifton <nickc@cygnus.com>
27319
27320 * config/arm/arm.h (INITIAL_ELIMINATION_OFFSET): Fix typo
27321 introduced in previous delta.
27322
27323 Wed Jul 21 14:30:51 1999 Bernd Schmidt <bernds@cygnus.co.uk>
27324
27325 * c-lang.c (finish_file): Rename void_list_node to void_list_node_1
27326 to avoid name clash.
27327
27328 Wed Jul 21 08:39:22 1999 Gavin Romig-Koch <gavin@cygnus.com>
27329
27330 * c-lex.c (yylex) : Correct the test for overflow when lexing
27331 integer literals.
27332
27333 Tue Jul 20 18:02:42 1999 Richard Henderson <rth@cygnus.com>
27334
27335 * haifa-sched.c (insn_cost): FREE implies cost 0 and vice versa.
27336 (adjust_priority): Always call ADJUST_PRIORITY.
27337 (schedule_insn): Only put insns into the ready at cost 0.
27338 (schedule_block): Remove redundant initial sort. Give clock_var
27339 and can_issue_more to MD_SCHED_REORDER. Requeue if hazard cost
27340 is not 0.
27341 * tm.texi (MD_SCHED_REORDER): Update docs.
27342
27343 * sparc.h (MD_SCHED_REORDER): Update. Set CAN_ISSUE_MORE.
27344 * sparc.c (ultra_reorder_called_this_block): Delete.
27345 (ultrasparc_sched_init): Don't set it.
27346 (ultrasparc_sched_reorder): Don't check it.
27347
27348 Tue Jul 20 17:07:54 1999 Richard Henderson <rth@cygnus.com>
27349
27350 * rs6000.h (struct rs6000_args): Add sysv_gregno.
27351 * rs6000.c (init_cumulative_args): Init sysv_gregno.
27352 (function_arg_boundary): Align DFmode.
27353 (function_arg_advance): Restructure for ABI_V4; use sysv_gregno
27354 to get fp reg and stack overflow correct.
27355 (function_arg): Likewise.
27356 (function_arg_pass_by_reference): True for TFmode for ABI_V4.
27357 (setup_incoming_varargs): Restructure for ABI_V4; use
27358 function_arg_advance to skip final named argument.
27359 (expand_builtin_saveregs): Properly unskip the last integer arg
27360 when doing varargs. Adjust overflow location calculation.
27361
27362 * ginclude/va-ppc.h (struct __va_list_tag): Make gpr and fpr
27363 explicitly unsigned.
27364 (__VA_FP_REGSAVE): Use new OFS argument instead of AP->fpr directly.
27365 (__VA_GP_REGSAVE): Similarly.
27366 (__va_longlong_p): Delete.
27367 (__va_arg_type_violation): New declaration.
27368 (va_arg): Restructure. Flag promotion errors. Align double.
27369 TFmode passed by reference.
27370
27371 * rs6000.md (movdi_32+1): Use GEN_INT after arithmetic
27372 in the HOST_BITS_PER_WIDE_INT > 32 case.
27373
27374 Tue Jul 20 12:37:30 1999 Hans-Peter Nilsson <hp@bitrange.com>
27375
27376 * dwarf2out.c (output_abbrev_section): Terminate with a zero.
27377
27378 Tue Jul 20 12:12:27 1999 Jason Merrill <jason@yorick.cygnus.com>
27379
27380 * gcc.c (default_compilers, cpp-output): Pass -fpreprocessed.
27381 * toplev.c (documented_lang_options): Add -fpreprocessed.
27382 * cpplib.h (struct cpp_buffer): Add preprocessed.
27383 * cppinit.c (cpp_handle_option): Handle -fpreprocessed.
27384 (cpp_start_read): Don't expand macros or emit an initial #line
27385 directive if -fpreprocessed.
27386
27387 Tue Jul 20 12:12:09 1999 Michael Tiemann <tiemann@holodeck.cygnus.com>
27388
27389 * cpplib.h (struct cpp_buffer): Added manual_pop for
27390 better C++ tokenization.
27391 * cpplib.c (cpp_get_token): Return CPP_EOF if manual_pop.
27392 Also, support C++ tokenization for ->*, .*, <?, and >? operators.
27393 * c-common.c (cpp_token): Make non-static.
27394
27395 Tue Jul 20 11:24:19 1999 Bernd Schmidt <bernds@cygnus.co.uk>
27396
27397 * c-common.h: New file.
27398 * c-common.c (permanent_obstack): Delete unused declaration.
27399 (c_global_trees): New array.
27400 (c_common_nodes_and_builtins): New function; split off common code
27401 from init_decl_processing in both c-decl.c and cp/decl.c.
27402 * c-tree.h: Delete lots of declarations of tree nodes; replaced by
27403 c_global_trees and accessor macros defined in c-common.h.
27404 Include c-common.h.
27405 * c-decl.c: Delete definitions for tree nodes that were replaced by
27406 c_global_trees.
27407 (init_decl_processing): Build void_list_node.
27408 Call c_common_nodes_and_builtins; delete code to generate the common
27409 builtins here.
27410 * objc/objc-act.c (build_module_descriptor): Rename variable
27411 void_list_node to avoid clash with c-common.h.
27412
27413 * Makefile.in: Update dependencies.
27414 * objc/Make-lang.in: Likewise.
27415
27416 Mon Jul 19 14:22:18 1999 Mark P. Mitchell <mark@codesourcery.com>
27417
27418 * config/mips/iris6gld.h (MAKE_DECL_ONE_ONLY): Define.
27419 (UNIQUE_SECTION_P): Likewise.
27420 (UNIQUE_SECTION): Likewise.
27421
27422 1999-07-19 Linas Vepstas <linas@linas.org>
27423
27424 * config/i370/README: New file.
27425 * config/i370/linux.h: New file.
27426 * config/i370/mvs.h: New file.
27427 * config/i370/oe.h: New file.
27428 * config/i370/t-linux: New file.
27429 * config/i370/t-mvs: New file.
27430 * config/i370/t-oe: New file.
27431 * config/i370/x-oe: New file.
27432 * config/i370/xm-linux.h: New file.
27433 * config/i370/xm-mvs.h: New file.
27434 * config/i370/xm-oe.h: New file.
27435
27436 * i370.c (label_node_t): Add first_ref_page, label_addr,
27437 label_first_ref, label_last_ref members.
27438 (mvs_need_base_reload): Renamed from mvs_label_emitted.
27439 (MAX_MVS_LABEL_SIZE): Define.
27440 (MAX_LONG_LABEL_SIZE): Define.
27441 (alias_node_t, alias_anchor, alias_number): New.
27442 (mvs_function_table): Reorder for EBCDIC.
27443 (ascebc, ebcasc): Unconditionally define.
27444 (i370_branch_dest, i370_branch_length): New functions.
27445 (i370_short_branch, i370_label_scan): New functions.
27446 (mvs_get_label): Renamed from mvs_add_label. Search for
27447 an existing label before creating a new one.
27448 (mvs_add_label): New function.
27449 (mvs_get_label_page): New function.
27450 (mvs_free_label_list): Renamed from mvs_free_label. Iterate
27451 over the entire list.
27452 (mvs_check_page) [TARGET_HLASM]: Use BASR not BALR.
27453 (mvs_check_page) [TARGET_ELF_ABI]: New function.
27454 (mvs_add_alias, mvs_need_alias): New functions.
27455 (mvs_get_alias, mvs_check_alias): New functions.
27456 (handle_pragma): New function.
27457 (mvs_function_check): New function.
27458 (unsigned_jump_follows_p): Search harder.
27459 (i370_function_prolog) [TARGET_HLASM]: Handle LE370. Scan labels.
27460 (i370_function_prolog) [TARGET_ELF_ABI]: New function.
27461 * i370.h (TARGET_VERSION): Delete.
27462 (CPP_SPEC, CPP_PREDEFINES): Delete.
27463 (mvs_label_emitted): Delete.
27464 (TARGET_EBCDIC): Delete.
27465 (MAP_CHARACTER): Define only if TARGET_EBCDIC.
27466 (HANDLE_PRAGMA): Define.
27467 (HARD_REGNO_NREGS): Handle complex modes.
27468 (HARD_REGNO_MODE_OK): Likewise.
27469 (CLASS_MAX_NREGS): Likewise.
27470 (RET_REG): Likewise.
27471 (EXTRA_CONSTRAINT): Define.
27472 (RETURN_IN_MEMORY): True for DImode.
27473 (TRAMPOLINE_TEMPLATE): Use gen_rtx instead of GEN_INT.
27474 (FUNCTION_PROFILER): Delete.
27475 (COUNT_REGS): Fail if REG_P but not REG_OK_FOR_BASE_P.
27476 (NOTICE_UPDATE_CC): Correct handling of MULT, DIV, logicals and shifts.
27477 (TARGET_ESC, TARGET_BELL): Conditionally define for TARGET_EBCDIC.
27478 (TARGET_BS, TARGET_TAB, TARGET_NEWLINE): Likewise.
27479 (TARGET_VT, TARGET_FF, TARGET_CR): Likewise.
27480 (ASM_FILE_START): Add "RMODE ANY".
27481 (ASM_OUTPUT_EXTERNAL): Check for aliases.
27482 (ASM_GLOBALIZE_LABEL): Likewise.
27483 (ASM_OUTPUT_LABELREF): Likewise.
27484 (ASM_OUTPUT_COMMON): Likewise.
27485 (PRINT_OPERAND): Handle 'K', 'W', default.
27486 (PRINT_OPERAND_ADDRESS): New.
27487 (Lots of defines): Add support for TARGET_ELF_ABI.
27488 * i370.md (attr length): New. Define for all patterns.
27489 (*): Lots of tweeks to assembly output and constraints.
27490
27491 Mon Jul 19 15:09:29 1999 David Edelsohn <edelsohn@gnu.org>
27492
27493 * rs6000.md (arithmetic, logical, and shift Rc combiner patterns):
27494 Disable patterns performing SImode comparisons with SImode values
27495 if TARGET_POWERPC64 and instruction does not sign-extend or does
27496 not mask to narrower than SImode, i.e. where bit 31 and bit 63 may
27497 differ for signed quantities.
27498 (indirect_jump): Add expander to choose RTL based on TARGET_64BIT.
27499 (tablejump): Patterns contingent on TARGET_64BIT not TARGET_POWERPC64.
27500 (decrement_and_branch_on_count): Add 64-bit variant.
27501
27502 Mon Jul 19 09:36:27 1999 Bernd Schmidt <bernds@cygnus.co.uk>
27503
27504 * final.c (output_asm_insn): When searching for the matching string
27505 for a given dialect, don't run past the end of the list of
27506 alternatives if there are fewer alternatives in the template than
27507 dialects.
27508
27509 1999-07-17 Alexandre Oliva <oliva@dcc.unicamp.br>
27510
27511 * gcc.texi: Update e-mail addresses and URLs to gcc.gnu.org.
27512 Removed paragraph about compression of files and size limitation,
27513 duplicated in the FAQ. Use gcc-patches for posting patches.
27514 * gcc.c (main): Updated URL with bug reporting instructions to
27515 gcc.gnu.org. Removed e-mail address.
27516 * system.h (abort): Likewise.
27517
27518 1999-07-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
27519
27520 * Makefile.in (stmp-multilib-sub): Make the files extracted
27521 from $(LIBGCC1) writable.
27522
27523 Sat Jul 17 14:25:46 1999 Nick Clifton <nickc@cygnus.com>
27524
27525 * config/arm/aout.h: Reformat for improved readability.
27526
27527 * config/arm/arm.h: Reformat for improved readability.
27528 Replace uses of fprintf with asm_fprintf where appropriate.
27529 (ARM_DECLARE_FUNCTION_NAME): New macro: Perform any generic ARM
27530 function declaration assembler actions.
27531 (NUM_INTS): New macro: Convert from bytes to words.
27532 (NUM_REGS): New macro: Compute number of registers required to
27533 hold a quanitity of tyep MODE.
27534 (NUM_REGS2): New macro: Like NUM_REGS but also copes with BLKmode
27535 types.
27536 (NUM_ARG_REGS): New macro: The number of argument registers
27537 available.
27538 (ARG_REGISTER): New macro: Compute the register number of the Nth
27539 argument register.
27540 (LAST_ARG_REGNUM): New macro: The number of the last argument
27541 register.
27542 (SP_REGNUM): New macro: Register number of the stack pointer.
27543 (FP_REGNUM): New macro: Register number of the frame pointer.
27544 (FUNCTION_ARG, FUNCTION_ARG_PARTIAL_NREGS, INIT_CUMULATIVE_AGS,
27545 FUNCTION_ARG_ADVANCE, SETUP_INCOMING_VARARGS): Change
27546 CUMULATIVE_ARGS so that it counts registers not bytes.
27547
27548 * config/arm/arm.c: Rename TARGET_THUMB_INTERWORK to
27549 TARGET_INTERWORK.
27550 Replace uses of fprintf with asm_fprintf where appropriate.
27551 (output_ascii_pseudo_op): Replace with version from thumb.c
27552
27553 * config/arm/coff.h (ASM_FILE_START): Emit ASM_APP_OFF.
27554
27555 * config/arm/elf.h (CPP_PREDEFINES): Replace with
27556 SUBTARGET_CPP_SPEC.
27557 (ASM_DECLARE_FUNCTION_NAME): Use ARM_DECLARE_FUNCTION_NAME.
27558 (ASM_FILE_START): Emit ASM_APP_OFF.
27559
27560 Fri Jul 16 13:48:09 1999 Jeffrey A Law (law@cygnus.com)
27561
27562 * pa.c (compute_frame_size): Round frame according to
27563 STACK_BOUNDARY rather than a hardwired value.
27564
27565 * pa.h (POINTER_SIZE, PARM_BOUNDARY): Define in terms of BITS_PER_WORD.
27566
27567 * configure.in (hppa*-*-hpux11*): Use symbolic MASK_PA_11 instead
27568 of "1".
27569 * configure: Rebuilt.
27570
27571 * configure.in (hppa*-*-linux*): New configuration.
27572 * configure: Rebuilt.
27573 * pa.h (MAX_OFILE_ALIGNMENT): Delete.
27574 * pa/som.h (MAX_OFILE_ALIGNMENT): Define.
27575 * pa/pa-linux.h: New file.
27576 * pa/t-linux: New file.
27577 * pa/xm-linux.h: New file.
27578
27579 * pa.c (hppa_legitimize_address): Change references from SImode to
27580 either Pmode or word_mode as appropriate.
27581 (emit_move_sequence, store_reg, load_reg): Likewise.
27582 (set_reg_plus_d, hppa_expand_prologue): Likewise.
27583 (output_mul_insn): Likewise.
27584 * pa.h (PROMOTE_MODE): Likewise.
27585 (INITIALZE_TRAMPOLINE): Likewise.
27586 (Pmode): Define to word_mode.
27587
27588 * pa.c (compute_frame_size): Use UNITS_PER_WORD instead of hardwired
27589 value of 4. Allocate 8 bytes for each FP register save.
27590 (hppa_expand_epilogue): Use UNITS_PER_WORD instead of harwarewired
27591 value of 4.
27592 (hppa_expand_prologue): Likewise.
27593 * pa.h (PROMOTE_MODE): Likewise.
27594 (HARD_REGNO_MODE_OK, FUNCTION_ARG_SIZE): Likewise.
27595 (FUNCTION_ARG_BOUNDARY): Likewise.
27596
27597 * invoke.texi (HPPA Options): Remove -mspace/-mno-space.
27598
27599 * pa.c (out_of_line_prologue_epilogue): Delete.
27600 (override_options): Remove -mspace related code.
27601 (hppa_expand_prologue, hppa_expand_epilogue): Likewise.
27602 (compute_frame_size): Only allocate space for register that
27603 actually need to be saved.
27604 * pa.h (MASK_SPACE, TARGET_SPACE): Delete.
27605 (TARGET_SWITCHES): Remove -mspace, -mno-space
27606 * pa/t-pa (LIB2FUNCS_EXTRA): Remove ee.asm and ee_fp.asm
27607 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise. Remove -mspace multilib.
27608 * pa/ee.asm, pa/ee_fp.asm: Delete.
27609
27610 * pa/elf.h (ASM_OUTPUT_DOUBLE_INT): Define.
27611
27612 * config/svr4.h (CONST_SECTION_ASM_OP): Do not emit assembler
27613 directive in column zero.
27614
27615 Fri Jul 16 01:39:57 1999 Jeffrey A Law (law@cygnus.com)
27616
27617 * m68k.c (output_function_prologue): Fix computation of save mask
27618 when generating PIC code.
27619
27620 Thu Jul 15 15:40:09 1999 Jim Wilson <wilson@cygnus.com>
27621
27622 * tree.c (build_type_attribute_variant): Move current_obstack restore
27623 after build_qualified_type call.
27624
27625 1999-07-15 Mark Mitchell <mark@codesourcery.com>
27626
27627 * configure.in: Use t-iris6, even with GNU LD.
27628 * config/mips/iris6gld.h: Fix typo in linker spec.
27629 * config/mips/t-iris6gld: Remove.
27630
27631 Thu Jul 15 15:15:43 1999 David Edelsohn <edelsohn@gnu.org>
27632
27633 * rs6000.md (insv, extzv): Remove SImode dependence in named
27634 patterns. Explicitly generate DImode RTL if PowerPC64 and
27635 operand is DImode.
27636 (insvdi): Reverse start and size in instruction template.
27637
27638 1999-07-12 Joseph S. Myers <jsm28@cam.ac.uk>
27639
27640 * invoke.texi: Typo fixes.
27641
27642 Wed Jul 14 23:28:06 1999 Jeffrey A Law (law@cygnus.com)
27643
27644 * emit-rtl.c (gen_realpart): Issue an error for cases GCC can not
27645 handle at this time instead of silently generating incorrect code.
27646 (gen_imagpart): Likewise.
27647
27648 * reload.c (find_reloads): Emit a USE for a pseudo register without
27649 a hard register if we could not create an optional reload for the
27650 pseudo.
27651
27652 Wed Jul 14 23:45:48 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
27653
27654 * c-typeck.c (output_init_element, process_init_element):
27655 When advancing constructor_unfilled_fields for a RECORD_TYPE,
27656 check for nameless bit fields.
27657
27658 Wed Jul 14 01:57:39 1999 Richard Henderson <rth@cygnus.com>
27659
27660 * regclass.c (scan_one_insn): Notice subregs that change the
27661 size of their operand.
27662 (record_reg_classes): Use that to obey CLASS_CANNOT_CHANGE_SIZE.
27663
27664 Wed Jul 14 01:41:42 1999 Jeffrey A Law (law@cygnus.com)
27665
27666 * configure.in (alpha*-*-*): Include alpha/t-ieee.
27667 * configure: Rebuilt.
27668 * alpha/t-ieee: New file.
27669
27670 Tue Jul 13 10:45:58 1999 Jeffrey A Law (law@cygnus.com)
27671
27672 * rs6000.c (find_addr_reg): Do not select r0 as an address
27673 register.
27674
27675 Tue Jul 13 00:46:18 1999 Philippe De Muyter <phdm@macqel.be>
27676
27677 * m68k/x-mot3300 (XCFLAGS): List of big files now includes `cse.o'.
27678
27679 Mon Jul 12 14:29:15 1999 Jeffrey A Law (law@cygnus.com)
27680
27681 * rs6000.md (movsf): Do not force easy FP constants into memory.
27682
27683 * expr.c (expand_expr, case PLUS_EXPR): Pass constants through
27684 immed_double_const to ensure they are properly truncated then
27685 sign extended.
27686
27687 Mon Jul 12 10:40:01 1999 Vladimir Makarov <vmakarov@tofu.to.cygnus.com>
27688
27689 * config/arm/thumb.c (thumb_reorg): Call replace_symbols_in_block
27690 always unless NO_DEBUG is used. Compile this code
27691 unconditionally.
27692 (replace_symbols_in_block): Compile it unconditionally.
27693
27694 Sun Jul 11 12:32:32 1999 Jeffrey A Law (law@cygnus.com)
27695
27696 * configure.in (i?86-*-elf*): New target.
27697 * configure: Rebuilt.
27698 * i386/i386elf.h, i386/t-i386elf: New files.
27699
27700 Fri Jul 9 22:39:44 1999 Jason Merrill <jason@yorick.cygnus.com>
27701
27702 * toplev.c (main): Don't complain about saying -gdwarf.
27703 (rest_of_compilation): Remove redundant code.
27704
27705 Fri Jul 9 19:08:55 1999 Jim Wilson <wilson@cygnus.com>
27706
27707 * unroll.c (unroll_loops): Don't delete named CODE_LABELs.
27708
27709 Fri Jul 9 18:54:18 1999 Felix Lee <flee@cygnus.com>
27710
27711 * config/i960/i960.c (ret_label): Change asm label from "LR:" to
27712 "Li960R:", to avoid name clash.
27713
27714 Fri Jul 9 10:48:28 1999 Bernd Schmidt <bernds@cygnus.co.uk>
27715
27716 * loop.c (check_dbra_loop): When reversing a loop, delete all
27717 REG_EQUAL notes referencing the reversed biv except those which are
27718 for a giv based on it.
27719
27720 Fri Jul 9 03:51:52 1999 Jeffrey A Law (law@cygnus.com)
27721
27722 * version.c: Drop "gcc-" prefix from version #.
27723
27724 Thu Jul 8 18:06:30 1999 Jason Merrill <jason@yorick.cygnus.com>
27725
27726 * dwarf2out.c (dwarf2out_line): Emit a line number comment after
27727 the label if we're being verbose.
27728
27729 Thu Jul 8 14:18:46 1999 Richard Henderson <rth@cygnus.com>
27730
27731 * m68k.c (output_function_prologue): Add pic register to mask
27732 if live and flag_pic.
27733 (output_function_epilogue): Likewise.
27734
27735 Thu Jul 8 12:55:12 1999 Jeffrey A Law (law@cygnus.com)
27736
27737 * dbxelf.h (ASM_OUTPUT_SOURCE_LINE): Do not put assembler
27738 directives in column zero.
27739
27740 * pa/elf.h (ASM_FILE_START): Define.
27741 * pa/som.h (ASM_FILE_START): Include .level directives.
27742 * pa/hpux10.h (ASM_FILE_START): Delete.
27743 * pa/hpux11.h (ASM_FILE_START): Delete.
27744
27745 * pa/elf.h (BSS_SECTION_ASM_OP): Use .section .bss.
27746
27747 Thu Jul 8 18:03:19 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
27748
27749 * reload1.c (choose_reload_regs): Never call remove_adress_replacements
27750 when reload_out equals reload_in.
27751
27752 Thu Jul 8 16:50:14 1999 Nick Clifton <nickc@cygnus.com>
27753
27754 * invoke.texi (Spec Files): New node: Describe the contents of
27755 spec files.
27756
27757 Thu Jul 8 10:28:25 1999 Craig Burley <craig@jcb-sc.com>
27758
27759 * invoke.texi (DEC Alpha Options): Put @end table at
27760 beginning of line, to avoid confusing texi2html.
27761
27762 Thu Jul 8 09:22:06 1999 Nick Clifton <nickc@cygnus.com>
27763
27764 * config/arm/elf.h (ASM_OUTPUT_INTERNAL_LABEL): Fixed typo
27765 introduced in previous delta.
27766
27767 Wed Jul 7 02:00:04 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
27768
27769 * reload1.c (gen_reload): When synthesizing a 3 operand add
27770 sequence, improve test for when to reload OP1 into the reload
27771 register instead of OP0.
27772
27773 Wed Jul 7 01:38:03 1999 Jim Wilson <wilson@cygnus.com>
27774
27775 * unroll.c (unroll_loop): Don't delete NOTE_INSN_DELETED_LABEL notes.
27776
27777 1999-07-07 Manfred Hollstein <mhollstein@cygnus.com>
27778
27779 * m88k/dguxbcs.h (CPP_SPEC): Add missing \ in multi-line
27780 string literal.
27781
27782 Wed Jul 7 01:16:43 1999 Richard Henderson <rth@cygnus.com>
27783
27784 * ginclude/varargs.h (__builtin_va_alist_t): New typedef.
27785 (va_dcl): Use __builtin_va_alist_t.
27786
27787 Wed Jul 7 01:14:42 1999 Jason Merrill <jason@yorick.cygnus.com>
27788
27789 * dwarf2out.c (gen_struct_or_union_type_die): Only remember types
27790 on the permanent_obstack.
27791 * dwarfout.c (output_type): Likewise.
27792
27793 Tue Jul 6 15:25:32 1999 Gavin Romig-Koch <gavin@cygnus.com>
27794
27795 * c-common.c (unsigned_type,signed_type,signed_or_unsigned_type) :
27796 Merged from c-typeck.c and cp/typeck.c.
27797 * c-typeck.c (unsigned_type,signed_type,signed_or_unsigned_type) :
27798 Merged into c-common.
27799
27800 Tue Jul 6 13:06:01 1999 Dave Brolley <brolley@cygnus.com>
27801
27802 * c-lex.c (errorcount): Declare it.
27803 (finish_parse): Update errorcount when using CPPLIB.
27804
27805 1999-07-06 Bruce Korb <ddsinc09@ix.netcom.com>
27806
27807 * fixinc/inclhack.def(end_else_label): Double the backslash so
27808 sed gets a chance to see it.
27809 * fixinc/inclhack.sh: regen
27810 * fixinc/fixincl.x: regen
27811
27812 Fri Jul 2 18:49:51 1999 Nick Clifton <nickc@cygnus.com>
27813
27814 Add framework to support armv5 architecture when it becomes
27815 available:
27816
27817 * config/arm/arm.c (FL_ARCH5): New processor capability flag.
27818 (arm_arch5): New variable.
27819 (all_architectures): Add armv5 line.
27820 * config/arm/arm.h (CPP_CPU_ARCH_SPEC): Define __ARM_ARCH_5__ if
27821 -march=armv5 is specified on the command line.
27822 (arm_arch5): Export this variable.
27823 * invoke.texi: Document new string accepted by -march= switch for
27824 ARM ports.
27825
27826 * config/arm/arm.h: Replace use of constant 12 as a register
27827 number with IP_REGNUM. Similarly 14 and LR_REGNUM.
27828 * config/arm/arm.c: Replace use of constant 12 as a register
27829 number with IP_REGNUM. Similarly 14 and LR_REGNUM.
27830
27831 * config/arm/elf.h: Tidy up.
27832 * config/arm/coff.h: Tidy up.
27833
27834 Thu Jul 1 19:08:13 1999 Mark P. Mitchell <mark@codesourcery.com>
27835
27836 * gcc/configure.in (mips-sgi-irix6*): Handle --with-gnu-ld.
27837 * gcc/config/mips/t-iris6gld: New file.
27838 * gcc/config/mips/iris6gld.h: Likewise.
27839
27840 Fri Jul 2 13:23:39 1999 Gavin Romig-Koch <gavin@cygnus.com>
27841
27842 * c-decl.c (widest_integer_literal_type_node,
27843 widest_unsigned_literal_type) : New.
27844 (init_decl_processing): Handle/use the two new types.
27845 * c-common.c (type_for_size,type_for_mode) : Same.
27846 * c-lex.c (yylex) : Same.
27847 * c-typeck.c (unsigned_type,signed_type,signed_or_unsigned_type) :
27848 Same.
27849 * c-tree.h (widest_integer_literal_type_node,
27850 widest_unsigned_literal_type) : New.
27851
27852 Fri Jul 2 03:05:44 1999 Jeffrey A Law (law@cygnus.com)
27853
27854 * dwarfout.c (field_byte_offset): Correctly compute the object's
27855 byte offset for the first bit of a field which crosses an alignment
27856 boundary on a !BYTES_BIG_ENDIAN target.
27857
27858 Fri Jul 2 01:36:36 1999 Robert Lipe <robertlipe@usa.net>
27859
27860 * fixinc.svr4: Fix <arpa/inet.h> by deleting protos for htons and
27861 ntohs.
27862
27863 Fri Jul 2 00:46:47 1999 Richard Henderson <rth@cygnus.com>
27864 Jeff Law <law@cygnus.com>
27865
27866 * ginclude/varargs.h (va_dcl): Use word_mode for type of
27867 __builtin_va_list.
27868
27869 * except.c: Include intl.h.
27870 (expand_eh_return): Set current_function_cannot_inline.
27871 (save_eh_status, restore_eh_status): Twiddle eh_return_stub_label.
27872 * function.h (struct function): Add eh_return_stub_label.
27873 * flow.c (delete_unreachable_blocks): Don't merge across EH edges.
27874 * Makefile.in (except.o): Depend on intl.h.
27875
27876 Fri Jul 2 00:04:23 1999 David Edelsohn <edelsohn@gnu.org>
27877
27878 * rs6000.md (movdf_hardfloat32): Handle PRE_INC and PRE_DEC the
27879 same as offsettable in cases 1 and 2.
27880
27881 Thu Jul 1 20:54:10 1999 Richard Henderson <rth@cygnus.com>
27882
27883 * alpha.md (extqh): Define as 64-((R&7)*8) instead of 56-(((R-1)&7)*8).
27884 (extlh, extwh): Likewise.
27885
27886 Thu Jul 1 11:05:25 1999 Gavin Romig-Koch <gavin@cygnus.com>
27887
27888 * c-lex.c (yylex): Improve 'integer constant out of range' messages.
27889
27890 Wed Jun 30 16:51:41 1999 Nick Clifton <nickc@cygnus.com>
27891
27892 * configure.in: Add arm-pe and thumb-pe targets.
27893 * configure: Regenerate.
27894
27895 * thumb.c (arm_naked_function_p): New function: Determines if
27896 a function is naked (has no gcc generated prologue/epilogue).
27897 (is_called_in_ARM_mode): Return true if the func has the
27898 interfacearm attribute.
27899 (output_return): Do not generate a return for naked functions.
27900 (thumb_function_prologue): Do not generate a prologue for
27901 naked functions.
27902 (thumb_expand_prologue): Do not generate a prologue for naked
27903 functions.
27904 (thumb_expand_epilogue): Do not generate an epilogue for naked
27905 functions.
27906 (arm_valid_machine_decl_attribute): New function, copied from
27907 arm.c: Permit naked and interfacearm attributes.
27908
27909 * config/arm/pe.c: New file: Support code for arm-pe target.
27910 * config/arm/pe.h: New file: Header file for arm-pe target.
27911 * config/arm/tpe.h: New file: Header file for thumb-pe target.
27912 * config/arm/t-thumb-pe: New file: Makefile fragment for
27913 thumb-pe target.
27914
27915 1999-07-01 Mark Kettenis <kettenis@gnu.org>
27916
27917 * config/i386/gnu.h (CPP_SPEC): Define __PIC__ and __pic__ if
27918 -fPIC or -fpic is specified.
27919
27920 Wed Jun 30 03:31:54 1999 Jeffrey A Law (law@cygnus.com)
27921
27922 * expr.c (emit_block_move): Use copy_to_mode_reg for
27923 !TARGET_MEM_FUNCTIONS case too.
27924
27925 * configure.in (hppa*-*-*): Add som.h or elf.h to tm_file as
27926 appropriate.
27927 * configure: Rebuilt.
27928 (hppa1.1-*-pro*, hppa1.1-*-rtems*): Define target_cpu_default.
27929 * pa.h: Include dbxelf.h. Delete various dbx/stabs related
27930 definitions made redundant by dbxelf.h inclusion. Delete
27931 lots of definitions related to assembly output that are
27932 specific to the SOM object format.
27933 * pa.c (output_function_prologue): Do not emit the function's
27934 name for OBJ_ELF.
27935 * pa-pro-end.h (STARTFILE_SPEC): Undefine before redefining.
27936 * pa-pro.h: Deleted.
27937 * som.h: New file with SOM specific definitions.
27938 * elf.h: New file with ELF specific definitions.
27939
27940 * elfos.h (const_section): Output a tab before assembler directives.
27941 (ctors_section, dtors_section): Likewise.
27942 (ASM_OUTPUT_SECTION_NAME): Likewise.
27943
27944 * pa/pa1.h: Delete unused file.
27945
27946 Tue Jun 29 01:37:53 1999 Jeffrey A Law (law@cygnus.com)
27947
27948 * configure.in (hppa*-hp-hpux11*): New configuration.
27949 * configure: Rebuilt.
27950 * pa/pa-hpux11.h: New file.
27951 * pa.h (CPP_SPEC): Conditionally add -D__STDC_EXT__ to the cpp
27952 command line.
27953
27954 * mips.md (leasi, leadi): New patterns.
27955
27956 * expr.c (emit_block_move): Properly handle case where one of the
27957 block move arguments has a queued increment or decrement.
27958 (clear_storage): Similarly. Fix formatting goof.
27959
27960 1999-06-28 "David O'Brien" <obrien@NUXI.com>
27961
27962 * fixinc/inclhack.def(stdio_va_list): This patch Removes a
27963 semicolon from the BSD VA_LIST replacement expression.
27964
27965 * fixinc/inclhack.sh: regen
27966 * fixinc/fixincl.x: regen
27967
27968 * fixinc/mkfixinc.sh: Have `i[34567]86-*-freebsd*' machines
27969 now use the fixincl program.
27970
27971 Mon Jun 28 05:28:12 1999 Jeffrey A Law (law@cygnus.com)
27972
27973 * m68k.h (CONDITIONAL_REGISTER_USAGE): Define for !SUN_FPA
27974 case. Also make the PIC register call_used.
27975
27976 * m68k.h (FINALIZE_PIC): Delete.
27977 * m68k.c (finalize_pic): Delete.
27978
27979 Mon Jun 28 05:16:35 1999 Richard Henderson <rth@cygnus.com>
27980
27981 * m68k.h (PREFERRED_RELOAD_CLASS): Don't force any FP const_doubles
27982 to memory.
27983
27984 Mon Jun 28 04:07:27 1999 David Edelsohn <edelsohn@gnu.org>
27985
27986 * expmed.c (expand_divmod): Ensure unsigned value fits in reg_note.
27987
27988 Sun Jun 27 02:39:08 1999 Richard Henderson <rth@cygnus.com>
27989
27990 * jump.c (jump_optimize_1): Validate the cmov copy to a temporary.
27991
27992 Sat Jun 26 17:18:18 1999 David Edelsohn <edelsohn@gnu.org>
27993
27994 * rs6000.c (print_operand, case 'L'): Use plus_constant_for_output.
27995
27996 Fri Jun 25 11:33:24 1999 Richard Henderson <rth@cygnus.com>
27997
27998 * alpha.c (override_options): Add -mcpu=ev45 as an alias for ev4.
27999
28000 Fri Jun 25 13:41:25 1999 David Edelsohn <edelsohn@gnu.org>
28001
28002 * rs6000.c (output_toc): Always use hex values for floating-point
28003 constants. Store single-precision values in upper-half of TOC
28004 entry in 64-bit mode.
28005 * rs6000.md (floatsidf2, floatunssidf2): Add !TARGET_POWERPC64
28006 to final constraints.
28007 (fix_truncdfsi2 splitter): Change pattern matching fctiwz.
28008 (fctiwz): Improve accuracy of RTL for pattern.
28009
28010 Fri Jun 25 11:26:38 1999 Gavin Romig-Koch <gavin@cygnus.com>
28011
28012 * expr.c (expand_expr): Allow RTL_EXPR's through the
28013 MAX_INTEGER_COMPUTATION_MODE checks.
28014
28015 Fri Jun 25 06:06:37 1999 Richard Henderson <rth@cygnus.com>
28016
28017 * alpha.h (MASK_SUPPORT_ARCH, MASK_CPU_EV5, MASK_CPU_EV6): Define
28018 such that MASK_SUPPORT_ARCH is not negative.
28019
28020 Fri Jun 25 05:35:44 1999 Jeffrey A Law (law@cygnus.com)
28021
28022 * loop.c (verify_dominator): Properly handle ADDR_VEC and
28023 ADDR_DIFF_VEC insns that appear inside loops.
28024
28025 Thu Jun 24 22:54:05 1999 David Edelsohn <edelsohn@gnu.org>
28026 Jeff Law <law@cygnus.com>
28027
28028 * rs6000.md (movdf_hardfloat32): Revert previous patch.
28029 Handle LO_SUM the same as offsettable in cases 1 and 2.
28030 * rs6000.c (find_addr_reg): Revert previous patch.
28031
28032 Thu Jun 24 22:43:12 1999 Philippe De Muyter <phdm@macqel.be>
28033
28034 * system.h (strstr): New external function declaration.
28035 * acconfig.h (NEED_DECLARATION_STRSTR): New define slot.
28036 * configure.in (GCC_NEED_DECLARATIONS): Check for strstr.
28037 * config.in, configure: Rebuilt.
28038
28039 1999-06-24 Tom Tromey <tromey@cygnus.com>
28040
28041 * gcc.c (main): Read user-specified specs files after computing
28042 additional startfile_prefixes.
28043
28044 Thu Jun 24 15:00:47 1999 Mark Mitchell <mark@codesourcery.com>
28045
28046 Revert these two patches:
28047
28048 Thu Jun 17 21:34:24 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
28049 * loop.c (strength_reduce): When doing biv->giv conversion, update
28050 reg note of NEXT->insn.
28051
28052 Thu Jun 17 17:22:07 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
28053 * loop.c (strength_reduce): When doing biv->giv conversion, fix up
28054 reg_biv_class.
28055 (recombine_givs): Set ix field after sorting.
28056
28057 Wed Jun 23 21:26:00 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
28058
28059 * rtlanal.c (reg_referenced_p): Use reg_overlap_mentioned_p
28060 for the parts of an UNSPEC / UNSPEC_VOLATILE.
28061
28062 1999-06-23 Bruce Korb <ddsinc09@ix.netcom.com>
28063
28064 *fixinc/inclhack.def: Add fix development commentary
28065 (read_ret_type): reactivate and add selection clause
28066 (zzz_*): tweak output file name to match what is used in hackshell.tpl
28067 *fixinc/{fixincl.x|inclhack.sh}: regen
28068
28069 Wed Jun 23 00:48:21 1999 Jason Merrill <jason@yorick.cygnus.com>
28070
28071 * expr.c (expand_expr): STRIP_NOPS before checking against
28072 MAX_INTEGER_COMPUTATION_MODE
28073 (check_max_integer_computation_mode): Likewise.
28074
28075 Tue Jun 22 20:23:43 1999 Jim Wilson <wilson@cygnus.com>
28076
28077 * md.texi (smul@var{m}3_highpart): Add missing 's' prefix.
28078
28079 1999-06-22 Jim Wilson <wilson@cygnus.com>
28080
28081 * expr.c (store_expr): When target is a promoted subreg, return a
28082 promoted subreg as a result.
28083
28084 Tue Jun 22 17:14:58 1999 Michael Meissner <meissner@cygnus.com>
28085
28086 * dwarf2out.c (dwarf2out_frame_debug_expr): Reformat to match GNU
28087 coding standards.
28088 (dwarf2out_define): Mark unused parameters appropriately.
28089 (gen_unspecified_parameters_die): Ditto.
28090 (gen_subprogram_die): Fix signed/unsigned warnings.
28091 (gen_variable_die): Ditto.
28092
28093 1999-06-22 Bruce Korb <ddsinc09@ix.netcom.com>
28094
28095 * fixinc/inclhack.def(end_else_label): combined else_label
28096 and endif_label and fixed the sed expression.
28097 *fixinc/{fixincl.x|inclhack.sh}: regen
28098
28099 Tue Jun 22 01:58:18 1999 Jeffrey A Law (law@cygnus.com)
28100
28101 * rs6000.md (movdf_hardfloat32): Use %X instead of always emitting
28102 'x' when handling non-offsettable addresses
28103
28104 Tue Jun 22 00:20:05 1999 Richard Earnshaw (rearnsha@arm.com)
28105
28106 * final.c (shorten_branches): Don't try to split an insn that has
28107 been deleted.
28108
28109 Mon Jun 21 12:47:39 1999 Mark Mitchell <mark@codesourcery.com>
28110
28111 * config/mips/mips.c (symbolic_expression_p): New function.
28112 (mips_select_rtx_section): Put symbolic expressions in the
28113 data section, not the read-only data section.
28114
28115 Mon Jun 21 22:13:06 1999 Jeffrey A Law (law@cygnus.com)
28116
28117 * rs6000.md (find_addr_reg): Handle LO_SUM addresses.
28118
28119 Mon Jun 21 20:10:42 1999 Richard Henderson <rth@cygnus.com>
28120
28121 * collect2.c (main): Log frame table count.
28122 (GCC_OK_SYMBOL) [ECOFF]: Accept stGlobal.
28123 (scan_prog_file) [COFF]: Handle frame tables.
28124
28125 * alpha/alpha.h (UNALIGNED_SHORT_ASM_OP): Define.
28126 (UNALIGNED_INT_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Define.
28127 * alpha/elf.h: Undef them again.
28128 * alpha/vms.h: Remove their definitions.
28129
28130 Tue Jun 22 03:17:53 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
28131
28132 * sh.c (machine_dependent_reorg): When fixing up fp pcloads,
28133 remove the clobber of r0 and change the REG_UNUSED note to
28134 REG_INC.
28135
28136 1999-06-21 Jakub Jelinek <jj@ultra.linux.cz>
28137
28138 * real.c (ereal_from_double): Fix for 64-bit big endian hosts.
28139 * emit-rtl.c (gen_lowpart_common): Add case for hosts where double
28140 fits in HOST_WIDE_INT and one uses union to access a long constant
28141 as double.
28142
28143 Mon Jun 21 17:18:25 1999 Richard Henderson <rth@cygnus.com>
28144
28145 * sparc.c (sparc_override_options): Don't allow profiling for
28146 code models other than medlow.
28147 (sparc_function_profiler): New function from old FUNCTION_PROFILER
28148 macro. Use ASM_GENERATE_INTERNAL_LABEL and MCOUNT_FUNCTION.
28149 (sparc_function_block_profiler): Likewise. Use user_label_prefix.
28150 (sparc_block_profiler): Likewise.
28151 (sparc_function_block_profiler_exit): Likewise.
28152 * sparc.h (FUNCTION_PROFILER): Call new sparc.c function.
28153 (FUNCTION_BLOCK_PROFILER): Likewise.
28154 (BLOCK_PROFILER): Likewise.
28155 (FUNCTION_BLOCK_PROFILER_EXIT): Likewise.
28156 (MCOUNT_FUNCTION): New.
28157 * sparc/pbd.h (FUNCTION_PROFILER): Delete.
28158 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Delete.
28159 * sparc/sun4o3.h (FUNCTION_PROFILER): Delete.
28160 (MCOUNT_FUNCTION): New.
28161 * sparc/sysv4.h (FUNCTION_BLOCK_PROFILER): Delete.
28162 (BLOCK_PROFILER): Delete.
28163 (MCOUNT_FUNCTION): New.
28164
28165 Mon Jun 21 14:11:29 1999 David Edelsohn <edelsohn@gnu.org>
28166
28167 * rs6000.md (movdf_hardfloat32): Fix typo in case 2.
28168
28169 Mon Jun 21 12:27:17 1999 Vladimir Makarov <vmakarov@tofu.to.cygnus.com>
28170
28171 * config/mips/elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
28172 Add the macros.
28173
28174 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
28175 Ditto.
28176
28177 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
28178 Ditto.
28179
28180 * config/arm/telf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
28181 Ditto.
28182
28183 Mon Jun 21 14:58:42 1999 Nick Clifton <nickc@cygnus.com>
28184
28185 * config/arm/arm.h: Add cpp support for ARM920 and ARM920T cpu
28186 types.
28187
28188 Mon Jun 21 06:22:21 1999 Mark Elbrecht <snowball3@bigfoot.com>
28189
28190 * i386/djgpp.h (LIB_SPEC): New.
28191 (STARTFILE_SPEC): New.
28192
28193 * i386/xm-djgpp.h (NO_SYS_SIGLIST): Deleted. Now obsolete.
28194
28195 Mon Jun 21 06:19:33 1999 Philippe De Muyter <phdm@macqel.be>
28196
28197 * fixinc/Makefile.in (gnu-regex.o): Do not define STDC_HEADERS in
28198 compiler flags.
28199
28200 * system.h (WSTOPSIG): New macro.
28201
28202 Mon Jun 21 05:33:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
28203
28204 * c-pragma.c (push_alignment): Don't ignore alignments greater than
28205 4 bytes.
28206 (insert_pack_attributes): Take into account member natural
28207 alignment.
28208
28209 * i386/winnt.c (exports_head): New static variable.
28210 (i386_pe_record_exported_symbol): New function.
28211 (i386_pe_asm_file_end): Use.
28212 * i386/cygwin.h (ASM_OUTPUT_COMMON): Record the exported
28213 symbols to be emitted at end of assembly.
28214 (ASM_DECLARE_OBJECT_NAME): Likewise.
28215 (ASM_DECLARE_FUNCTION_NAME): Likewise.
28216
28217 * i386/uwin.h (CPP_SPEC): Use -idirafter instead -iprefix and
28218 -iwithprefix.
28219
28220 Mon Jun 21 04:44:31 1999 Jeffrey A Law (law@cygnus.com)
28221
28222 * sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Fix paren error introduced
28223 in last change.
28224
28225 Sun Jun 20 17:27:20 1999 Richard Henderson <rth@cygnus.com>
28226
28227 * haifa-sched.c (sched_analyze_1): Use free_list instead of
28228 zapping reg_last_uses directly.
28229 (sched_analyze_2, sched_analyze_insn): Likewise.
28230 (sched_analyze): Likewise. Don't clear reg_last_uses on calls.
28231
28232 Sun Jun 20 16:57:29 1999 David Edelsohn <edelsohn@gnu.org>
28233
28234 * rs6000.md (movdf_hardfloat32): Use worst case insn length
28235 attributes for cases 1 and 2.
28236
28237 Sat Jun 19 22:52:55 1999 Richard Henderson <rth@cygnus.com>
28238
28239 * haifa-sched.c (sched_analyze): Mark call-user regs as clobbered
28240 instead of set.
28241
28242 Sat Jun 19 05:40:07 1999 Philip Blundell <pb@nexus.co.uk>
28243
28244 * arm.c (arm_reload_in_hi): Invert sense of test on BYTES_BIG_ENDIAN.
28245
28246 Sat Jun 19 05:25:05 1999 Richard Earnshaw (rearnsha@arm.com)
28247
28248 * arm.h (CONDITIONAL_REGISTER_USAGE): If flag_pic, never use
28249 PIC_OFFSET_TABLE_REGNUM for general alloaction.
28250 (INITIAL_ELIMINATION_OFFSET): Count the fact that the PIC register
28251 must be stacked if it is used for PIC accesses.
28252 * arm.c (use_return_insn): Handle PIC register specially.
28253 (output_return_instruction): Likewise.
28254 (output_func_{prologue,epilogue}): Likewise.
28255 (output_expand_prologue): Likewise.
28256
28257 * arm.md (*adddf_esfdf_df): Renamed from *adddf_df_esfdf.
28258 (*strsi_predec): Renamed from *strqi_predec.
28259 (*loadsi_shiftpreinc): Renamed from *loadqi_shiftpreinc.
28260 (*loadsi_shiftpredec): Renamed from *loadqi_shiftpredec.
28261
28262 * arm.c (arm_override_options): Remove warning about PIC code
28263 not being supported.
28264
28265 Fri Jun 18 23:47:06 1999 David Edelsohn <edelsohn@gnu.org>
28266
28267 * rs6000.c (find_addr_reg): New function.
28268 * rs6000.h (find_addr_reg): Declare.
28269 (offsettable_addr_operand): Delete.
28270 * rs6000.md (movdf_hardfloat32): Handle non-offsettable loads
28271 from and stores to GPRs.
28272
28273 Fri Jun 18 15:44:18 1999 Richard Henderson <rth@cygnus.com>
28274
28275 * alpha.c (alpha_expand_block_move): Use get_insns rather than
28276 gen_sequence as argument to emit_no_conflict_block.
28277
28278 Fri Jun 18 07:02 1999 Bruce Korb <ddsinc09@ix.netcom.com>
28279
28280 * fixinc/mkfixinc.sh: enable the fixincl program for DG/UX
28281 * fixinc/inclhack.def(dgux_int_varargs): script must end with \n
28282 *fixinc/fixincl.x: regen
28283 *fixinc/inclhack.sh: regen
28284
28285 Thu Jun 17 15:06:10 PDT 1999 Don Lindsay <dlindsay@cygnus.com>
28286
28287 * added support for -mpcrel (PC relative addressing for m68k)
28288 based on code done by Michael Tiemann <tiemann@axon.cygnus.com>.
28289 * invoke.texi (m68000 options): Add documentation for -mpcrel flag.
28290 * m68k.c (print_operand_address): Handle 32-bit PIC case.
28291 (comments for general_src_operand): Add some explanation
28292 about EXTRA_CONSTRAINTS.
28293 (OVERRIDE_OPTIONS): Enable -fPIC in combination with -mpcrel.
28294 * m68kelf.h (OVERRIDE_OPTIONS): Ditto.
28295 (LEGITIMATE_PIC_OPERAND_P): Fix typo.
28296 (LEGITIMATE_PIC_OPERAND_P): Re-derive from m68k.h case.
28297 * m68k.h (LEGITIMATE_PIC_OPERAND_P): Fix delete-o.
28298 (INDIRECTABLE_1_ADDRESS): Delete spurious '/' at end of macro.
28299 (OVERRIDE_OPTIONS): Change behavior so that -mpcrel implies -fpic
28300 if not already set.
28301 (OVERRIDE_OPTIONS): Merge in changes from m68k.h.
28302 * m68k.h (TARGET_PCREL): New target flag.
28303 (TARGET_SWITCHES): Add "pcrel" as a recognized switch.
28304 (OVERRIDE_OPTIONS): Add checks for -mpcrel.
28305 (LEGITIMATE_PIC_OPERAND_P): Don't normally accept anything that
28306 contains a SYMBOL_REF. Relax this constraint during reload, since
28307 we want to use the predicates, not reload's built-in concept of a
28308 valid memory address, to control what insns need reloading.
28309 (EXTRA_CONSTRAINT): Define constraints to accept pc-relative
28310 operands (essentially 'g', 'm', and 's' under normal circumstances).
28311 * m68k.c (print_operand): Cause printing of pc-relative addresses
28312 to include pc register.
28313 (print_operand_address): Ditto.
28314 (general_src_operand): Accept operands that are not only
28315 general_operands, but are also valid when used as a pc-relative
28316 source.
28317 (nonimmediate_src_operand): Similar, for nonimmediate_operands.
28318 (memory_src_operand): Similar, for memory_operands.
28319 (pcrel_address): New predicate to accept the special case of a
28320 pc-relative address.
28321 * m68k.md (many patterns): Rewrite common SImode, HImode, and
28322 QImode insns to accept *_src_operand instead of *_operand where
28323 pc-relative operands can fit. For example, a pc-relative operand
28324 can be used as a memory source operand for addsi3, but not as a
28325 memory destination.
28326 * hp320.h linux.h m68kv4.h (LEGITIMATE_PIC_OPERAND_P) as in m68k.h.
28327
28328 Fri Jun 18 09:11:07 1999 Nick Clifton <nickc@cygnus.com>
28329
28330 * config/arm/telf.h (ASM_OUTPUT_DEF_FROM_DECLS): New Marco: USe
28331 .thumb_set pseudo op to mark aliases of thumb functions.
28332
28333 Wed Jun 16 18:19:13 1999 Nick Clifton <nickc@cygnus.com>
28334
28335 * varasm.c (assemble_alias): Use ASM_OUTPUT_DEF_FROM_DECLS in
28336 preference to ASM_OUTPUT_DEF, if it is defined.
28337
28338 * tm.texi: Document new, optional target macro
28339 ASM_OUTPUT_DEF_FROM_DECLS.
28340
28341 Thu Jun 17 15:07 1999 Bruce Korb <ddsinc09@ix.netcom.com>
28342
28343 * fixincludes: ISCNTL patch
28344 * fixinc/inclhack.def (ioctl_fix_ctrl): Fix the definition of [_]*ISCTRL().
28345 (dgux_int_varargs): new for DG/UX
28346 * fixinc/{fixincl.x,inclhack.sh}: Regenerated.
28347
28348 Thu Jun 17 21:34:24 1999 Jeff Law <law@cygnus.com>
28349
28350 * invoke.texi (ia32 options): Fix typo.
28351
28352 Thu Jun 17 21:34:24 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
28353
28354 * loop.c (strength_reduce): When doing biv->giv conversion, update
28355 reg note of NEXT->insn.
28356
28357 Thu Jun 17 14:25:08 1999 Jeffrey A Law (law@cygnus.com)
28358
28359 * loop.c (move_movables): Note issues with replacing REGs with
28360 SUBREGs.
28361 * mips.h (GO_IF_LEGITIMATE_ADDRESS): Handle SUBREGs properly.
28362
28363 Thu Jun 17 13:28:30 1999 David O'Brien <obrien@FreeBSD.org>
28364
28365 * i386/freebsd-elf.h (LINK_SPEC): Fix typo.
28366
28367 * i386/freebsd-elf.h (FUNCTION_PROFILER): labels are not needed and
28368 the reference to `mcount' was not correct for the ELF on FreeBSD.
28369
28370 Thu Jun 17 17:22:07 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
28371
28372 * loop.c (strength_reduce): When doing biv->giv conversion, fix up
28373 reg_biv_class.
28374
28375 (recombine_givs): Set ix field after sorting.
28376
28377 Thu Jun 17 02:54:30 1999 Jeffrey A Law (law@cygnus.com)
28378
28379 * emit-rtl.c (operand_subword): Tighten checks for when it is safe
28380 to safe to extract a subword out of a REG.
28381
28382 Thu Jun 17 01:45:24 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
28383
28384 * sh.md (mulsi3): Don't add a no-op move at the end.
28385
28386 Wed Jun 16 20:29:00 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
28387
28388 * cse.c (cse_insn): Don't put hard register source into tables for
28389 the last insn of a libcall.
28390
28391 Wed Jun 16 19:44:33 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
28392
28393 * loop.c (strength_reduce): Insert sets of derived givs at every
28394 biv increment, even if it's the only one.
28395
28396 Wed Jun 16 10:33:02 1999 Jason Merrill <jason@yorick.cygnus.com>
28397
28398 * dwarfout.c (add_incomplete_type): New fn.
28399 (output_type): Call it.
28400 (retry_incomplete_types): New fn.
28401 (dwarfout_finish): Call it.
28402
28403 From Eric Raskin <ehr@listworks.com>:
28404 (output_type): Output types for bases.
28405
28406 Tue Jun 15 12:51:23 1999 Alexandre Oliva <oliva@dcc.unicamp.br>
28407
28408 * mips.c (mips_output_conditional_branch): Add `break'
28409 between `default' label and `close braces'.
28410
28411 Tue Jun 15 01:55:20 1999 David O'Brien <obrien@FreeBSD.org>
28412
28413 * i386/freebsd-elf.h (LINK_SPEC): clean up the linking library
28414 specifications and make it realistic.
28415 (LIB_SPEC): Likewise.
28416
28417 Mon Jun 14 15:38:43 1999 Jim Wilson <wilson@cygnus.com>
28418
28419 * config/mips/mips.c (mips_secondary_reload_class): Check for
28420 (PLUS (SP) (REG)) and return appropriate register class.
28421 * config/mips/mips.md (reload_insi): Delete predicate for operand 1.
28422 Handle (PLUS (SP) (REG)).
28423 (tablejump): In mips16 code, use emit_insn instead of emit_jump_insn.
28424 (tablejump_mips161, tablejump_mips162): Use emit_jump_insn instead
28425 of emit_insn for tablejump.
28426
28427 Mon Jun 14 17:26:40 1999 David Edelsohn <edelsohn@gnu.org>
28428
28429 * rs6000.c (output_prolog): RS6000_CALL_GLUE must be
28430 asm_fprintf format string by itself.
28431 (output_function_profiler): Likewise.
28432
28433 Mon Jun 14 12:57:38 1999 David Mosberger <davidm@hpl.hp.com>
28434
28435 * combine.c (simplify_logical, case AND): Only call
28436 simplify_and_const_int if the mode is no wider than HOST_WIDE_INT
28437 or the constant is positive.
28438
28439 Mon Jun 14 11:43:41 1999 Nick Clifton <nickc@cygnus.com>
28440
28441 * configure.in: Fix typo in rs6000-ibm-aix4 case.
28442 * configure: Regenerate.
28443
28444 Mon Jun 14 03:55:40 1999 Jeffrey A Law (law@cygnus.com)
28445
28446 * configure.in (rs6000-ibm-aix4.3*, powerpc-ibm-aix4.3*): Do not
28447 require a sub-version #.
28448 * configure: Rebuilt.
28449
28450 1999-06-14 Robert Lipe (robertlipe@usa.net)
28451
28452 * svr4.h (DWARF2_DEBUGGING_INFO): Check for redefinition.
28453
28454 Mon Jun 14 10:30:52 BST 1999 Nathan Sidwell <nathan@acm.org>
28455
28456 * c-typeck.c (process_init_element): Detect excess elements in
28457 char array initializer.
28458
28459 1999-06-14 Andreas Jaeger <aj@arthur.rhein-neckar.de>
28460
28461 * gcc.texi: Mention gcc 2.96 instead of egcs 1.00.
28462
28463 Sat Jun 12 22:29:48 EDT 1999 Jerry Quinn <jquinn@nortelnetworks.com>
28464
28465 * invoke.texi (Option Summary): Add -fpermissive flag.
28466
28467 Sat Jun 12 03:40:42 1999 Jeffrey A Law (law@cygnus.com)
28468
28469 * sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Do nothing with operands
28470 that require PIC code sequences.
28471
28472 Wed Jun 9 16:29:01 1999 Nick Clifton <nickc@cygnus.com>
28473
28474 * configure.in: Add new target: thumb-elf.
28475 * configure: Regenerate.
28476 * config/arm/t-thumb-elf: New file: Makefile fragment for
28477 thumb-elf build.
28478 * config/arm/telf.h: New file: Header file for thumb-elf
28479 build.
28480
28481 Fri Jun 11 03:17:51 1999 Jeffrey A Law (law@cygnus.com)
28482
28483 * Makefile.in (libgcc2): Pass MAYBE_USE_COLLECT2 as an argument.
28484 * libgcc2.c (__CTOR_LIST, __DTOR_LIST); Do not provide
28485 initializers is some circumstances.
28486
28487 * fixinc/inclhack.def (endif_label): Add additional selector for
28488 more bogus stuff after #endif statements.
28489 * fixinc/inclhack.sh, fixinc/fixincl.x: Rebuilt.
28490
28491 Thu Jun 10 20:44:36 1999 Mumit Khan <khan@xraylith.wisc.edu>
28492
28493 * i386/cygwin.h (SET_ASM_OP): Define.
28494
28495 Thu Jun 10 20:37:57 1999 Mumit Khan <khan@xraylith.wisc.edu>
28496
28497 * reg-stack.c (stack_reg_life_analysis): Find all the RETURN insns.
28498
28499 Thu Jun 10 19:23:00 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
28500
28501 * sh.h (TARGET_HARWARD, TARGET_HARVARD): Changed the former to the
28502 latter.
28503
28504 * sh.md (ic_invalidate_line_i): Remove second alternative.
28505
28506 Thu Jun 10 06:55 1999 Bruce Korb <ddsinc09@ix.netcom.com>
28507
28508 *fixinc/inclhack.def(sun_auth_proto): We do not know how to
28509 test for the presence of valid prototypes. Delete bypass expr.
28510 (ioctl_fix_ctrl): Correct the selection expression.
28511 (no_double_slash): Correct quoting rules
28512 *fixinc/fixincl.x: regen
28513 *fixinc/inclhack.sh: regen
28514
28515 Thu Jun 10 15:08:15 1999 Nick Clifton <nickc@cygnus.com>
28516
28517 * config/arm/arm.c (struct all_cores): Add ARM920 and ARM920t.
28518
28519 Wed Jun 9 15:57:57 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
28520
28521 * rs6000.md (movsi_got_internal_mem): Delete.
28522 * rs6000.h (CONDITIONAL_REGISTER_USAGE): Mark PIC_OFFSET_TABLE_REGNUM.
28523 (GOT_TOC_REGNUM): Delete.
28524 (PIC_OFFSET_TABLE_REGNUM): Define.
28525 (FINALIZE_PIC): Disable.
28526 * rs6000.c (rs6000_got_register): New code for fixed pic register.
28527 (rs6000_replace_regno): Delete.
28528 (rs6000_finalize_pic): Likewise.
28529 (output_prolog): Handle PIC_OFFSET_TABLE_REGNUM.
28530
28531 Wed Jun 9 19:44:26 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
28532
28533 * loop.c (loop_insn_first_p): Don't compare LUIDs when P
28534 is a note; use <= for the compare; advance P while it is
28535 a NOTE.
28536
28537 Wed Jun 9 13:12:24 1999 Jeffrey A Law (law@cygnus.com)
28538
28539 * fixinc/inclhack.def (no_double_slash): Fix quoting for test.
28540 * fixinc/inclhack.sh, fixinc/fixincl.x, fixinc/fixincl.sh; Rebuilt.
28541
28542 * varasm.c (remove_from_pending_weak_list): Verify t->name
28543 is non-NULL before passing it to strcmp.
28544
28545 Wed Jun 9 06:50 1999 Bruce Korb <ddsinc09@ix.netcom.com>
28546
28547 *fixinc/inclhack.def(sun_auth_proto): bypass the patch if
28548 the typed arguments are not part of a comment
28549 (ioctl_fix_ctrl): Added a purpose comment
28550 *fixinc/fixincl.x: regenerate
28551 *fixinc/inclhack.sh: regenerate
28552
28553 Wed Jun 9 22:57:02 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
28554
28555 * invoke.texi: Add C4x invocation docs.
28556
28557 Wed Jun 9 22:34:38 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
28558
28559 * config/c4x/c4x.h (TARGET_EXPOSE_LDP, LEGITIMIZE_RELOAD_ADDRESS):
28560 Define new macros.
28561 * config/c4x/c4x.c (c4x_emit_move_sequence, src_operand): Use
28562 TARGET_EXPOSE_LDP.
28563 (c4x_legitimize_reload_address): New function.
28564 * config/c4x/c4x.md: Update docs.
28565
28566 Wed Jun 9 04:14:48 1999 Jeffrey A Law (law@cygnus.com)
28567
28568 * fixincludes: Avoid removing '.'.
28569 * fixinc/fixinc.svr4: Likewise.
28570 * fixinc/fixinc.winnt: Likewise.
28571 * fixinc/inclhack.tpl: Likewise.
28572 * fixinc/fixincl.sh, fixinc/inclhack.sh: Rebuilt.
28573
28574 1999-06-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
28575
28576 * fixinc/inclhack.def (sun_catmacro): Escape parens in the select
28577 pattern.
28578 * fixinc/fixincl.x, fixinc/inclhack.sh: Rebuilt.
28579
28580 Wed Jun 9 03:10:34 1999 Mumit Khan <khan@xraylith.wisc.edu>
28581
28582 * c-pragma.c (handle_pragma_token): Handle `#pragma pack()'
28583 correctly.
28584
28585 Tue Jun 8 13:06:15 1999 Jim Wilson <wilson@cygnus.com>
28586
28587 * configure.in (rs6000-ibm-aix4.[12]*): Change rx6000 to rs6000.
28588 * configure: Regenerate.
28589
28590 Tue Jun 8 05:47:48 1999 Richard Earnshaw (rearnsha@arm.com)
28591
28592 * optabs.c (expand_cmplxdiv_wide): Use expand_abs to get the absolute
28593 values.
28594
28595 Mon Jun 7 22:30:37 1999 Jeffrey A Law (law@cygnus.com)
28596
28597 * fixinc/inclhack.def (avoid_bool): Also catch
28598 "typedef [unsigned] int bool".
28599 * fixinc/inclhack.sh, fixinc/fixincl.x, fixinc/fixincl.sh: Rebuilt.
28600
28601 * m68k/x-hp3bsd44: Delete obsolete and incorrect file.
28602 * configure.in (m68k-hp-bsd4.4): No longer use x-hp3bsd44.
28603 * configure: Rebuilt.
28604
28605 Mon Jun 7 22:05:03 1999 Mark Kettenis <kettenis@gnu.org>
28606
28607 * config/i386/gnu.h: Include <gnu.h> right after <i386/linux.h>,
28608 such that we can override its definitions if necessary.
28609 (CPP_SPEC): New define. Support processor specific predefines via
28610 %(cpp_cpu).
28611 (CC1_SPEC): New define. Support processor specific compiler
28612 options via %(cc1_cpu).
28613 (STARTFILE_SPEC): New define. Use crt0.o instead of crt1.o for
28614 -static.
28615
28616 1999-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
28617
28618 * fixinc/inclhack.def (math_gcc_ifndefs): Insert whitespace
28619 between sed's -e flag, and the open-quote following it.
28620 * fixinc/fixincl.x, fixinc/fixincl.sh: Rebuilt.
28621
28622 Mon Jun 7 20:34:20 1999 Robert Lipe <robertlipe@usa.net>
28623 Jeffrey A Law (law@cygnus.com)
28624
28625 * varasm.c (assemble_start_function): Remove the function
28626 from the pending weak decls list when we define a function.
28627 (assemble_variable): Similarly for variables.
28628 (weak_finish): Ignore items on the list with a NULL name.
28629 (remove_from_ending_weak_list); New function to "remove" an item
28630 from the pending weak declarations list.
28631
28632 Mon Jun 7 19:27:07 1999 Jerry Quinn <jquinn@nortelnetworks.com>
28633
28634 * pa.md (fmpyfadd, fmpynfadd, fnegabs): New patterns.
28635
28636 Mon Jun 7 14:07:39 1999 Dave Brolley <brolley@cygnus.com>
28637
28638 * c-lex.c (GETC): Redefine to call getch.
28639 (UNGETC): Redefine to call put_back.
28640 (putback_buffer): New structure type.
28641 (putback): New static structure.
28642 (getch): New function.
28643 (put_back): New function.
28644 (yylex): Replace unused bytes from bad multibyte character.
28645
28646 Mon Jun 7 13:33:39 1999 Dave Brolley <brolley@cygnus.com>
28647
28648 * cpplib.c (do_define): Cast `alloca' return value.
28649 (do_include, do_undef, do_pragma): Likewise.
28650 * cpphash.c (dump_definition): Cast `xstrdup' and `alloca' return
28651 values.
28652 * cppfiles.c (initialize_input_buffer): Cast `xmalloc' return values.
28653 * gcc/cppspec.c (lang_specific_driver): Cast xmalloc return value.
28654
28655 Sun Jun 6 11:58:34 1999 Jakub Jelinek <jj@ultra.linux.cz>
28656
28657 * sparc.md (abstf2): This should be an expand.
28658 (split after abstf2_notv9): Fix mode.
28659 (abstf2_hq_v9): New pattern.
28660 (abstf2_v9): Only use when no hard quad.
28661 (absdf2_v9): Fix if target is not the same as source.
28662 (ashrsi3_extend, ashrsi3_extend2, lshrsi3_extend, lshrsi3_extend2):
28663 Add correct output constraints.
28664
28665 Sat Jun 5 17:04:16 1999 Craig Burley <craig@jcb-sc.com>
28666
28667 From Dave Love to egcs-patches on 20 May 1999 17:38:38 +0100:
28668 * invoke.texi: Clarify text vis-a-vis Intel CPUs.
28669
28670 Sat Jun 5 12:11:24 1999 Mark Mitchell <mark@codesourcery.com>
28671
28672 * mips.h (mips_output_conditional_branch): New function.
28673 (mips_adjust_insn_length): Likewise.
28674 (ASSEMBLER_SCRATCH_REGNUM): New macro.
28675 (ADJUST_INSN_LENGTH): Likewise.
28676 * mips.c (print_operand): Add `F' and `W' for floating-point
28677 comparison opcodes.
28678 (machine_dependent_reorg): Adjust MIPS16 code; instruction-lengths
28679 are now in bytes.
28680 (mips_adjust_insn_length): New function.
28681 (mips_output_conditional_branch): New function.
28682 * mips.md (length): Adjust attribute definition to handle
28683 conditional branches. Change lengths to bytes, rather than
28684 instructions throughout. Remove length attribute from
28685 instructions whose length is four bytes, and rely on the default
28686 instead.
28687 (dslot): Fix typo in comment.
28688 Reword conditional branch patterns to use
28689 mips_output_conditional_branch.
28690
28691 Fri Jun 4 13:30:27 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
28692
28693 * alpha/osf.h (CPP_SUBTARGET_SPEC): Handle -threads.
28694 (LIB_SPEC): Likewise.
28695 Link with -lprof1_r for -g/-pg.
28696
28697 1999-06-04 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
28698
28699 * loop.c (check_dbra_loop): Fix change of Jan 19.
28700
28701 Fri Jun 4 00:12:40 1999 Marc Espie <espie@cvs.openbsd.org>
28702
28703 * freebsd-elf.h (SWITCH_TAKES_ARG): Redefine, not define.
28704 (STARTFILE_SPEC): Define, override the svr4.h version.
28705 (ENDFILE_SPEC): Likewise.
28706
28707 Thu Jun 3 23:58:55 1999 Jeffrey A Law (law@cygnus.com)
28708
28709 * fixinc/inclhack.def (limits_ifndefs): Also apply to sys/limits.h
28710 * fixinc/fixincl.x: Regenerated.
28711 * fixinc/inclhack.sh: Regenerated.
28712
28713 Fri Jun 4 05:42:23 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
28714
28715 * sh.c (barrier_align): Don't return early for normal branch/barrier
28716 when optimizing for SH2.
28717
28718 Thu Jun 3 22:27:50 1999 Robert Lipe <robertlipe@usa.net>
28719
28720 * i386/udk.h (LINK_SPEC): Correct linker search path for
28721 system libraries.
28722
28723 Fri Jun 4 03:20:40 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
28724
28725 * sh.c (fixup_addr_diff_vecs): Emit braf reference label.
28726 (braf_label_ref_operand): Delete.
28727 * sh.h (PREDICATE_CODES): Remove braf_label_ref_operand.
28728 * sh.md (casesi_jump_2): Operand1 is now the inside of a
28729 label_ref, and has no predicate.
28730 The patten has a predicate to guard against invalid substitutions.
28731 (dummy_jump): Delete.
28732 (casesi): Update use of casesi_jump_2.
28733
28734 Thu Jun 3 07:48 1999 Bruce Korb <ddsinc09@ix.netcom.com>
28735
28736 *fixinc/inclhack.def(Io_Def_Quotes): corrected sed expression
28737 *fixinc/fixincl.x: regenerate
28738 *fixinc/inclhack.sh: regenerate
28739
28740 Thu Jun 3 02:15:07 1999 Jason Merrill <jason@yorick.cygnus.com>
28741
28742 * dwarf2out.c (add_incomplete_type): New fn.
28743 (gen_struct_or_union_type_die): Call it.
28744 (retry_incomplete_types): New fn.
28745 (dwarf2out_finish): Call it.
28746
28747 Thu Jun 3 01:19:03 1999 Jeffrey A Law (law@cygnus.com)
28748
28749 * gcse.c (insert_insn_end_bb): Correct placement of insns when the
28750 current block starts with a CODE_LABEL and ends with a CALL and
28751 we can not find all the argument setup instructions for the CALL.
28752
28753 Wed Jun 2 15:44:15 1999 Mark Mitchell <mark@codesourcery.com>
28754
28755 Revert this change:
28756 * fold-const.c (fold): STRIP_NOPS when deciding whether or not
28757 something is a candidate for optimize_bit_field_compare.
28758
28759 Wed Jun 2 21:53:05 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
28760
28761 * sh.h (CONST_OK_FOR_I, CONST_OK_FOR_L): Cast VALUE to HOST_WIDE_INT.
28762
28763 Wed Jun 2 12:25:55 1999 Richard Henderson <rth@cygnus.com>
28764
28765 * alpha.c (override_options): Thinko in last patch.
28766
28767 * alpha/osf.h (CPP_SUBTARGET_SPEC): Define.
28768 (LIB_SPEC): Recognize -pthread.
28769
28770 Wed Jun 2 08:42:55 1999 Nick Clifton <nickc@cygnus.com>
28771
28772 * config/arm/tcoff.h (USER_LABEL_PREFIX): Synchronise with
28773 definition in config/arm/coff.h
28774 * config/arm/coff.h: Add comment about USER_LABEL_PREFIX.
28775
28776 Wed Jun 2 07:07 1999 Bruce Korb <ddsinc09@ix.netcom.com>
28777
28778 * fixinc/fixincl.c(global def): Add FD_SHELL_SCRIPT to mark
28779 fixes that need "file=xxx\n" prepended before invocation
28780 (start_fixer - new): starting the fixer process is complex enough
28781 to warrent its own routine. It prepends the "file=xxx\n" stuff.
28782 (process): uses the new routine; omit usage of putenv()
28783 * fixinc/fixincl.tpl: mark shell scripts with FD_SHELL_SCRIPT
28784 * fixinc/fixincl.x: regenerate
28785
28786 Wed Jun 2 02:29:07 1999 Jeffrey A Law (law@cygnus.com)
28787
28788 * README, configure.in, gcc.1, gcc.texi: Update name (egcs -> gcc)
28789 and version #s (1.1 -> 2.96) as needed.
28790 * README.g77: Kill way out of date file in the toplevel directory.
28791
28792 Wed Jun 2 00:52:34 1999 David O'Brien <obrien@FreeBSD.org>
28793
28794 * configure.in (i[34567]86-*-freebsdelf): Don't include linux.h,
28795 i386/freebsd-elf.h no longer requires it. Instead include svr4.h.
28796 * configure: Rebuilt.
28797 * i386/freebsd-elf.h (DEFAULT_VTABLE_THUNKS): Define.
28798 (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, SET_ASM_OP): Likewise.
28799 (PREFERRED_DEBUGGING_TYPE, WCHAR_UNSIGNED): Likewise.
28800 (SWITCH_TAKES_ARG): Likewise.
28801 * i386/freebsd.h: Remove FREEBSD_NATIVE support.
28802 * config/t-freebsd: Moved from config/i386/ so it can used for all
28803 FreeBSD targets.
28804
28805 Mon May 31 02:22:55 1999 Philippe De Muyter <phdm@macqel.be>
28806
28807 * m68k/x-mot3300 (XCFLAGS): Fixed to match stb.o, not f/stb.o.
28808
28809 Wed Jun 2 00:08:34 1999 Robert Lipe <robertlipe@usa.net>
28810
28811 * configure.in (i[34567]86-*-udk*): Install headers with cpio.
28812 * configure: Rebuilt.
28813
28814 Tue Jun 1 19:06:22 1999 David Edelsohn <edelsohn@gnu.org>
28815
28816 * rs6000/aix41.h (RS6000_CALL_GLUE): Define.
28817 * rs6000/aix43.h (RS6000_CALL_GLUE): Likewise.
28818 * rs6000/rs6000.c (rs6000_file_start): Use putc.
28819 (rs6000_output_load_toc_table): Same.
28820 (output_prolog, output_mi_thunk): Same.
28821 * rs6000/rs6000.h (SELECT_SECTION): Formatting.
28822 (ASM_GLOBALIZE_LABEL): Use putc.
28823
28824 Mon May 31 15:23:23 1999 Richard Henderson <rth@cygnus.com>
28825
28826 * alpha.md (reload_*_help): New patterns and splitters.
28827 (reload_*): Use them.
28828 (mov[qh]i): Likewise.
28829
28830 Mon May 31 11:48:07 1999 Mark Mitchell <mark@codesourcery.com>
28831
28832 * cccp.c (handle_directive): Handle backslash-newlines in quoted
28833 strings correctly.
28834
28835 Mon May 31 09:36:11 1999 Cort Dougan <cort@cs.nmt.edu>
28836
28837 * rs6000/linux.h (LINK_SPEC): Use emulation elf32ppclinux.
28838
28839 Mon May 31 11:40:20 EDT 1999 John Wehle (john@feith.com)
28840
28841 * flow.c (mark_regs_live_at_end, insn_dead_p,
28842 mark_set_1, mark_used_regs): Only give FRAME_POINTER_REGNUM
28843 and HARD_FRAME_POINTER_REGNUM special treatment if reload
28844 hasn't run or the frame pointer is needed.
28845 * haifa-sched.c (attach_deaths): Likewise.
28846 * sched.c (attach_deaths): Likewise.
28847
28848 Mon May 31 00:46:17 1999 Jeffrey A Law (law@cygnus.com)
28849
28850 * jump.c (jump_optimize_1): Only set CAN_REACH_END if
28851 calculate_can_reach_end returns nonzero.
28852
28853 * configure.in (native gas tests): Search for an assembler in the
28854 same manner that the installed compiler will.
28855 * configure: Rebuilt.
28856 * tm.texi (MD_EXEC_PREFIX): Note need to update configure.in too.
28857
28858 * alias.c (find_base_term): Improve handling of addresses
28859 constructed from binary operations.
28860
28861 Sun May 30 14:29:17 1999 Eric Raskin (ehr@listworks.com)
28862
28863 * dgux.h (STARTFILE_SPEC): Fix incorrectly matched curly-braces.
28864
28865 Sun May 30 14:19:13 1999 Jeffrey A Law (law@cygnus.com)
28866
28867 * function.h (cleanup_label, frame_offset): Declare.
28868 (tail_recursion_label, tail_recursion_reentry): Likewise.
28869 (arg_pointer_save_area, rtl_expr_chain): Likewise.
28870 * stmt.c (cleanup_label, frame_offset): Delete extern declarations.
28871 (tail_recursion_label, tail_recursion_reentry): Likewise.
28872 (arg_pointer_save_area, rtl_expr_chain): Likewise.
28873
28874 Sat May 29 19:08:10 1999 Philip Blundell <philb@gnu.org>
28875
28876 * config/arm/aout.h (ASM_OUTPUT_ALIGN): Only define if not already
28877 defined.
28878 * config/arm/elf.h (ASM_OUTPUT_ALIGN): Define.
28879 (MAX_OFILE_ALIGNMENT): Define.
28880
28881 Fri May 28 21:40 1999 Robert Lipe <robertlipe@usa.net>
28882
28883 * fixincl.c: Replace local include scheme with #includes of
28884 gansidecl.h and system.h.
28885 * procopen.c: Likewise.
28886 * server.c: Likewise.
28887
28888 Fri May 28 03:47:03 1999 Eric Raskin (ehr@listworks.com)
28889
28890 * i386/t-dgux (EXTRA_PARTS): Add crti.o
28891 (crti.o): Add build rule and dependencies.
28892 * fixinc/fixinc.dgux: Use modified _int_varargs.h
28893
28894 Fri May 28 03:41:02 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
28895
28896 * rs6000/sysv4.h (CC1_SPEC): Add support for -profile
28897 (LIB_LINUX_SPEC): Likewise.
28898 (LIB_LINUX_SPEC): Add support for -pthread
28899 (CPP_OS_LINUX_SPEC): Likewise.
28900 (CPP_SYSV_SPEC): Avoid redefinitions if both -fpic and -fPIC are
28901 specified.
28902
28903 Thu May 27 13:04:52 1999 H.J. Lu (hjl@gnu.org)
28904
28905 * i386.c (output_fp_cc0_set): Don't check the JUMP_INSN code for
28906 conditional move.
28907 (notice_update_cc, output_float_compare): Enable TARGET_CMOVE support.
28908 (output_float_compare, output_fp_cc0_set): Fix the FLOAT comparison
28909 for IEEE math and CC_FCOMI.
28910 (put_jump_code): No IEEE if CC_FCOMI is set.
28911
28912 1999-05-27 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
28913
28914 * fold-const.c (fold_truthop): Make the field reference unsigned
28915 when converting a single bit compare.
28916
28917 Thu May 27 02:40:48 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
28918
28919 * loop.c (strength_reduce): Don't do biv->giv conversion on constants.
28920
28921 Thu May 27 02:09:27 1999 Jeffrey A Law (law@cygnus.com)
28922
28923 * varasm.c (STRIP_NAME_ENCODING): Remove default definition.
28924 * output.h (STRIP_NAME_ENCODING): Strip '*' like the old varasm
28925 version did.
28926
28927 * reload.c (push_reload): Do not call remove_address_replacements
28928 when presented with identical optional reloads.
28929
28930 Wed May 26 14:18:05 1999 Richard Henderson <rth@cygnus.com>
28931
28932 * alpha.h (MASK_FIX, TARGET_FIX): New.
28933 (MASK_*): Reorganize constants.
28934 (CPP_AM_FIX_SPEC): New.
28935 (TARGET_SWITCHES): Add FIX.
28936 (EXTRA_SPECS): Likewise.
28937 (CPP_CPU_EV6_SPEC): Use FIX, not CIX.
28938 (SECONDARY_MEMORY_NEEDED): Likewise.
28939 (REGISTER_MOVE_COST): Likewise.
28940 * alpha.c (override_options): Add FIX support. Always use
28941 ALPHA_TP_PROG for ev6.
28942 * alpha.md (sqrt and mov[sd]i patterns): Use FIX, not CIX.
28943 * alpha/elf.h (ASM_FILE_START): Look at FIX too.
28944 * configure.in (target_cpu_default2) [ev6]: Use FIX, not CIX.
28945
28946 Wed May 26 09:53:05 1999 Mark Mitchell <mark@codesourcery.com>
28947
28948 * fold-const.c (fold): STRIP_NOPS when deciding whether or not
28949 something is a candidate for optimize_bit_field_compare.
28950
28951 Wed May 26 09:40:02 1999 Mark Mitchell <mark@codesourcery.com>
28952
28953 * gcc.texi (Passes): Document branch-shortening.
28954 * invoke.texi (Debugging Options): Document the fact that `-dp'
28955 outputs length information for instructions.
28956
28957 Wed May 26 08:49:31 1999 Nick Clifton <nickc@cygnus.com>
28958
28959 * flow.c: Revert previous delta.
28960
28961 Wed May 26 06:05:10 1999 Nick Clifton <nickc@cygnus.com>
28962
28963 * flow.c (insn_dead_p): Check against frame_pointer_rtx not
28964 FRAME_POINTER_REGNUM.
28965 (mark_set_1): Ditto.
28966 (mark_used_regs): Ditto.
28967
28968 Wed May 26 02:19:31 1999 Philip Blundell <pb@nexus.co.uk>
28969
28970 * arm.h (NEED_PLT_GOT): Fix mistake in last change.
28971 (GOT_PCREL): New macro. Define to 1 if not already defined.
28972 * arm/elf.h (GOT_PCREL): Define to 0.
28973 * arm.c (arm_finalize_pic): Take into account the setting of
28974 GOT_PCREL.
28975
28976 Tue May 25 14:06:06 1999 Jeffrey A Law (law@cygnus.com)
28977
28978 * output.h (STRIP_NAME_ENCODING): Provide default definition.
28979 * dwarf2out.c (ASM_NAME_TO_STRING): Use STRIP_NAME_ENCODING.
28980
28981 * flow.c (mark_set_1): Do not record BLKmode stores as dead
28982 store elimination candidates.
28983
28984 Tue May 25 08:55:57 1999 Gavin Romig-Koch <gavin@cygnus.com>
28985
28986 * config/mips/mips.h (ASM_OUTPUT_DOUBLE_INT) : Use 'dword' if
28987 TARGET_GAS.
28988
28989 Mon May 24 20:30:08 1999 Jim Wilson <wilson@cygnus.com>
28990
28991 * configure.in (rs6000-ibm-aix4.[12]*): Delete use of aix41-gld.h.
28992 Add use of x-aix41-gld.
28993
28994 Mon May 24 16:44:09 1999 Jakub Jelinek <jj@ultra.linux.cz>
28995
28996 * sparc/linux64.h (ASM_OUTPUT_CONSTRUCTOR): Define.
28997 (ASM_OUTPUT_DESTRUCTOR): Define.
28998
28999 Mon May 24 14:35:24 1999 Jeffrey A Law (law@cygnus.com)
29000
29001 * loop.c (strength_reduce): Do not clear NOT_EVERY_ITERATION at the
29002 last CODE_LABEL in a loop if we have previously passed a jump
29003 to the top of the loop.
29004
29005 Mon May 24 07:56:29 1999 Nick Clifton <nickc@cygnus.com>
29006
29007 * config/arm/arm.h (OUTPUT_INT_ADDR_CONST): Fix blunder made when
29008 applying Philip's patch.
29009
29010 Mon May 24 01:02:12 1999 Mark Mitchell <mark@codesourcery.com>
29011
29012 * stmt.c (expand_end_bindings): Ignore any elements of VARS that
29013 are not VAR_DECLs.
29014
29015 Sun May 23 20:31:16 1999 Jeffrey A Law (law@cygnus.com)
29016
29017 * loop.c (strength_reduce): Grow reg_single_usage as needed.
29018
29019 Sun May 23 10:13:20 1999 David O'Brien <obrien@FreeBSD.org>
29020
29021 * i386/freebsd-elf.h (LINK_SPEC): Change -static to -Bstatic.
29022 Also remove a useless comment.
29023
29024 Sun May 23 10:05:23 1999 Jerry Quinn <jquinn@nortelnetworks.com>
29025
29026 * pa.md (negdf2,negsf2): Use fneg instead of fsub on pa 2.0.
29027
29028 Sat May 22 21:02:06 1999 David Edelsohn <edelsohn@gnu.org>
29029
29030 * collect2.c (main): Only generate import or export file and add
29031 to link arguments if non-empty. Use xmalloc not alloca.
29032 (write_{export,import}_file): Delete.
29033 (write_aix_file): New function.
29034 (locatelib): Use xmalloc not malloc.
29035 (GCC_OK_SYMBOL): Do not check type if aix64.
29036
29037 Sat May 22 09:35:51 1999 Philip Blundell <pb@nexus.co.uk>
29038
29039 Based on patch by Scott Bambrough and Pat Beirne:
29040 * config/arm/arm.c (making_const_table): New variable.
29041 * config/arm/arm.h (making_const_table): Declare.
29042 (OUTPUT_INT_ADDR_CONST): Mark symbols as position independent if
29043 appropriate.
29044 * config/arm/arm.md (consttable_4, consttable_8, consttable_end):
29045 Keep track of when we are building the constant table.
29046
29047 Sat May 22 09:34:22 1999 Philip Blundell <pb@nexus.co.uk>
29048
29049 * config/arm/arm.c (arm_override_options): Fix erroneous warning
29050 message.
29051
29052 Sat May 22 09:06:33 1999 Nick Clifton <nickc@cygnus.com>
29053
29054 * config/arm/arm.h (NEED_PLT_GOT): Only define if not already
29055 defined.
29056
29057 Sat May 22 07:17:05 1999 Nick Clifton <nickc@cygnus.com>
29058
29059 * tm.texi (FUNCTION_ARG): Correct description of a stack element
29060 in a PARALLEL.
29061
29062 Sat May 22 01:27:49 1999 Mark Mitchell <mark@codesourcery.com>
29063
29064 * expr.h (lang_expand_constant): Guard with #ifdef TREE_CODE.
29065
29066 Fri May 21 21:19:02 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
29067
29068 * rs6000.c (output_mi_thunk): Enable full support again.
29069
29070 Fri May 21 20:09:52 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
29071
29072 * sh.h (BRANCH_COST): Define.
29073
29074 Thu May 20 10:00:42 1999 Stephen L Moshier <moshier@world.std.com>
29075
29076 * Makefile.in (GCC_FOR_TARGET): Add -I$(build_tooldir)/include.
29077
29078 Thu May 20 09:58:57 1999 Jan Hubicka <hubicka@freesoft.cz>
29079
29080 * function.c (assign_stack_local): Align stack slot propertly.
29081 (assign_outer_stack_local): Likewise.
29082
29083 Thu May 20 10:38:43 1999 Mark Mitchell <mark@codesourcery.com>
29084
29085 * expr.h (lang_expand_constant): Declare.
29086 * toplev.c (lang_expand_constant): Define it.
29087 * varasm.c (output_constant): Use it.
29088
29089 Thu May 20 11:28:53 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
29090
29091 * optabs.c (expand_cmplxdiv_straight, expand_cmplxdiv_wide):
29092 Change function definitions to K&R style.
29093
29094 Thu May 20 08:16:39 1999 Bruce Korb <ddsinc09@ix.netcom.com>
29095
29096 * fixinc/fixincl.c: We must not ignore SIGCLD now.
29097
29098 Thu May 20 07:06:39 1999 Alexandre Oliva <aoliva@acm.org>
29099
29100 * fixinc/Makefile.in(gnu-regex.o): add $(INCLUDES) to compile options
29101 * fixinc/fixincl.c(wait_for_pid): K&R-ify arguments
29102 (several places): omit static initialization
29103 (process): use single fd, since only the read fd is used
29104 * fixinc/gnu-regex.c: define 'const' away, if not supported
29105 * fixinc/procopen.c(several places): omit static initialization
29106 * fixinc/server.c: define 'volitile' away, if not supported
29107
29108 1999-05-20 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
29109
29110 * config/dbxcoff.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Use
29111 asm_fprintf and %L to generate the label name.
29112 * config/dbxelf.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Likewise.
29113 (ASM_OUTPUT_SOURCE_LINE): Correct generation of internal labels.
29114
29115 Thu May 20 01:40:55 1999 Jeffrey A Law (law@cygnus.com)
29116
29117 * jump.c (can_reverse_comparison_p): Do not abort if the comparison
29118 insn for a conditional jump can not be found.
29119
29120 Wed May 19 23:58:58 1999 Jeffrey A Law (law@cygnus.com)
29121
29122 * mips.h (ENCODE_SECTION_INFO): Do not perform GP optimizations
29123 on variables in specific sections other than .sbss and .sdata.
29124
29125 Wed May 19 03:56:56 1999 Mark Mitchell <mark@codesourcery.com>
29126
29127 * stmt.c (expand_return): Call start_cleanup_deferral and
29128 end_cleanup_deferral around conditional code.
29129
29130 Wed May 19 08:40:08 1999 Bruce Korb <ddsinc09@ix.netcom.com>
29131
29132 * fixinc/fixincl.tpl: Avoid depending on ANSI C features for
29133 filename lists. Utilizes new "krstr" AutoGen function.
29134 * fixinc/fixincl.x: Rebuilt.
29135
29136 Wed May 19 02:47:11 1999 Jan Hubicka (hubicka@freesoft.cz)
29137
29138 * i386.c (output_float_compare): Avoid GNU-C extensions.
29139
29140 Wed May 19 00:34:40 1999 Jeffrey A Law (law@cygnus.com)
29141
29142 * version.c: Bump to distinguish mainline tree from the
29143 gcc-2.95 branch.
29144
29145 See ChangeLog.1 for earlier changes.
This page took 1.233026 seconds and 6 git commands to generate.