1 Thu Sep 6 11:16:35 2001 Jeffrey A Law (law@cygnus.com)
2 Joern Rennecke (amylaar@cygnus.com)
4 * h8300-protos.h (h8300_return_addr_rtx): New prototype.
5 * h8300.c (initial_offset): Handle offset between RP and FP.
6 (h8300_return_addr_rtx): New function.
7 * h8300.h (FIRST_PSEUDO_REGISTER): Bump now that we have a
9 (FIXED_REGISTERS, CALL_USED_REGISTERS): Corresponding changes.
10 (REG_ALLOC_ORDER, RETURN_ADDRESS_POINTER_REGNUM): Likewise.
11 (REG_CLASS_CONTENTS, ELIMINABLE_REGS): Likewise.
12 (CAN_ELIMINATE, REGISTER_NAMES):
13 (RETURN_ADDR_RTX): Call h8300_return_addr_rtx.
15 2001-09-06 Nathan Sidwell <nathan@codesourcery.com>
17 Remove TYPE_NONCOPIED_PARTS.
18 * tree.h (TYPE_NONCOPIED_PARTS): Remove.
19 (struct tree_type): Remove noncopied_parts.
20 * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Map onto TYPE_BINFO.
21 * expr.c (save_noncopied_parts, init_noncopied_parts): Remove.
22 (fixed_type_p): Remove.
23 (expand_expr, INIT_EXPR): Don't deal with noncopied parts.
24 (expand_expr, MODIFY_EXPR): Likewise.
25 * ggc-common.c (ggc_mark_trees): Remove TYPE_NONCOPIED_PARTS.
26 * doc/c-tree.texi: Remove TYPE_NONCOPIED_PARTS FIXME.
28 2001-09-06 Alan Modra <amodra@bigpond.net.au>
30 * config/rs6000/rs6000.c (mask_operand): Use signed vars to avoid
32 (mask64_operand): Likewise.
33 (includes_rldic_lshift_p): Likewise.
34 (includes_rldicr_lshift_p): Likewise.
36 2001-09-05 Ziemowit Laski <zlaski@apple.com>
38 * objc/objc-act.c (build_message_expr): If a class method cannot
39 be found, do not issue a warning if a corresponding instance
40 method exists in the root class.
42 2001-09-05 Richard Henderson <rth@redhat.com>
44 * config/alpha/alpha.c (alpha_expand_mov): Initialize temp.
46 2001-09-05 Zack Weinberg <zack@codesourcery.com>
48 * function.c (ggc_mark_struct_function): Mark f->outer.
49 * toplev.c (rest_of_compilation): Clear DECL_SAVED_INSNS here...
50 * integrate.c (output_inline_function): ... not here.
52 Wed Sep 5 17:28:49 CEST 2001 Jan Hubicka <jh@suse.cz>
54 * profile.c (branch_prob): Call add_noreturn_fake_exit_edges.
56 * i386.c (size_cost): New static variable.
57 (override_function): Use size_cost when -Os is specified.
59 * i386.c (ix86_expand_prologue): Set use_fast_prologue_epilogue
60 properly; Use current_function_calls_eh_return.
61 (ix86_expand_epilogue): Avoid dummy optimize_size tests;
62 use leave to avoid depdendancy chain.
64 * local-alloc.c (update_equiv_regs): Use CFG to iterate over INSN stream;
65 get BB loop_depth instead of computing it from LOOP notes.
67 * reg-stack.c (subst_stack_reg_pat): Handle reversal of conditional moves.
69 2001-09-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
71 * som.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
72 * pa.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
73 UNALIGNED_DOUBLE_INT_ASM_OP): Define
75 2001-09-05 Jeffrey A Law (law@cygnus.com)
76 Jason Merrill (jason@redhat.com)
78 * stor-layout.c (layout_type): Complain if an array's size can
79 not be represented in a size_t.
81 * config/h8300/elf.h (ENDFILE_SPEC, STARTFILE_SPEC): Define.
83 2001-09-05 David Billinghurst <David.Billinghurst@riotinto.com>
85 * gcc.c: (process_command) Add parentheses around assignment
88 2001-09-05 Richard Sandiford <rsandifo@redhat.com>
90 * config/mips/mips.c (save_restore_insns): Don't mark any register
91 save slots as unchanging if current_function_calls_eh_return.
93 2001-09-05 Richard Henderson <rth@redhat.com>
95 * config/alpha/alpha.c (alpha_legitimate_address_p): New.
96 * config/alpha/alpha-protos.h: Declare it.
97 * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Move to c file.
98 (NONSTRICT_REG_OK_FOR_BASE_P): Rename from non-strict macro.
99 (NONSTRICT_REG_OK_FP_BASE_P): Likewise.
100 (STRICT_REG_OK_FOR_BASE_P): Rename from strict macro.
101 (REG_OK_FOR_BASE_P): Select one of the above.
103 2001-09-05 Richard Sandiford <rsandifo@redhat.com>
105 * config/mips/t-elf (EXTRA_PARTS): Use EXTRA_MULTILIB_PARTS instead.
106 (crti.o): Prefix name of object file with $(T).
109 2001-09-05 David S. Miller <davem@redhat.com>
111 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
112 * config/sparc/linux64.h: Likewise.
114 2001-09-05 Andreas Jaeger <aj@suse.de>
116 * doc/invoke.texi (i386 Options): -mwide-multiply is not
117 available anymore, remove the documentation.
118 (i386 Options): Fix typo, cleanup index entries.
120 * prefix.c (concat): Remove, we can use the version from liberty.
122 2001-09-05 Richard Henderson <rth@redhat.com>
124 * config/alpha/alpha.c (alpha_expand_mov, alpha_expand_mov_nobwx):
125 New functions split out of md file expanders.
126 * config/alpha/alpha-protos.h: Declare them.
127 * config/alpha/alpha.md (movqi, movhi, movsi, movdi): Use them.
129 2001-09-05 Neil Booth <neil@daikokuya.demon.co.uk>
131 * cppmacro.c (funlike_invocation_p): No need to restore context.
133 2001-09-04 Richard Henderson <rth@redhat.com>
135 * reload.c (push_reload): Export.
136 * reload.h (push_reload): Declare it.
138 * config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Move out o' line.
139 (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
140 * config/alpha/alpha.c (alpha_legitimize_address): New.
141 (alpha_legitimize_reload_address): Likewise.
142 * config/alpha/alpha-protos.h: Declare them.
144 2001-09-04 Stan Shebs <shebs@apple.com>
146 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Define.
147 * config/darwin.c (machopic_stub_name): Account for internally
148 generated lib calls such as memcpy.
150 2001-09-04 Richard Henderson <rth@redhat.com>
152 * unwind.h (_UA_END_OF_STACK): New flag.
153 * unwind.inc (_Unwind_ForcedUnwind_Phase2): Set it.
155 Tue Sep 4 11:16:35 2001 Jeffrey A Law (law@cygnus.com)
157 * h8300/elf.h (LINK_SPEC): Redefine appropriately for the H8.
159 2001-09-04 Richard Sandiford <rsandifo@redhat.com>
161 * config/mips/mips.c (save_restore_insns): Change base_offset to
162 fp_offset in second call to mips_emit_frame_related_store.
164 2001-09-04 Hans-Peter Nilsson <hp@axis.com>
166 * doc/rtl.texi: Mention that besides as a CODE_LABEL, a label can
167 sometimes be represented as a NOTE of type
168 NOTE_INSN_DELETED_LABEL.
169 (Insns): Document NOTE_INSN_DELETED_LABEL.
171 2001-09-04 Nathan Sidwell <nathan@codesourcery.com>
173 * c-common.h (tree_dump_index): Add more comments.
174 * c-dump.c (dump_files): Name flags `tree' rather than `ast'.
175 (dump_option_value_info): New struct.
176 (dump_options): New array.
177 (dump_switch_p): Parse switch options symbolically.
178 * doc/invoke.texi (-fdump-ast): Rename to ...
179 (-fdump-tree): ... here. Document that options are symbolic, and
180 not all are applicable.
182 2001-09-04 David S. Miller <davem@redhat.com>
184 * config/sparc/sparc.md (define_splits): Kill constraints.
186 Cleanup redundant and unused insn attributes.
187 * config/sparc/sparc.md (define_attr "insn"): Kill address, unary,
188 binary, and move. Mark ialu as default.
189 (commented out define_function_unit "alu"): Kill.
190 (define_attr "use_clobbered"): Kill.
191 (whole file): Kill address insn type references. Replace
192 all unary/binary/move references with ialu.
193 * config/sparc/sparc.c (whole file): Kill TYPE_ADDRESS
194 references. Replace TYPE_{UNARY,BINARY,MOVE} references with
197 Simplify length insn attribute and make more judicious use
198 of insn attribute defaulting.
199 * config/sparc/sparc.md (all insns with length > one): Mark as
200 insn type multi if real instructions, else use default if
201 it is a forced splitter.
202 (all insns with length == one): Use default insn length.
203 (all insns of type ialu): Use default insn type.
205 Fix erroneous insn attribute settings.
206 (addx): Set insn type to misc.
207 (mulsidi3_sp64, const_mulsidi3_sp64, umulsidi3_sp64,
208 const_umulsidi3_sp64): Set insn type to imul.
210 Track SFmode vs DFmode insns according to UltraSPARC
212 * config/sparc/sparc.md ("fptype"): New attribute, default
214 (all DFmode single insns): Mark as fptype "double".
216 2001-09-03 Jakub Jelinek <jakub@redhat.com>
218 * loop.c (express_from_1): Fix CONSTANT_P(a) case.
220 2001-09-03 Richard Henderson <rth@redhat.com>
222 * function.h (struct function): Add arg_pointer_save_area_init.
223 * function.c (expand_function_end): Init arg_pointer_save_area.
224 (get_arg_pointer_save_area): Do not init arg_pointer_save_area
225 when called from a nested function.
227 2001-09-02 Angela Marie Thomas <angela@cygnus.com>
229 * fixinc/Makefile.in: Regenerate fixincl.x only if maintainer-mode
232 Sun Sep 2 18:37:54 CEST 2001 Jan Hubicka <jh@suse.cz>
234 * reload1.c (fixup_abnormal_edges): Allow NOTEs in the sequence.
236 2001-09-01 Geoffrey Keating <geoffk@redhat.com>
238 * expr.c (push_block): Make sane use of STACK_GROWS_DOWNWARD.
239 (emit_push_insn): Use specified padding direction when
240 STACK_PUSH_CODE is POST_INC.
242 * config/stormy16/stormy16.h (DWARF2_UNWIND_INFO): Define to 0.
244 2001-09-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
246 * mips.h (INITIAL_ELIMINATION_OFFSET): Add missing `else abort'.
248 2001-09-01 Neil Booth <neil@daikokuya.demon.co.uk>
250 * cppinit.c (cpp_start_read): Free the imacros list as we
251 traverse it. Don't free the chains before returning.
252 (_cpp_push_next_buffer): Only try pushing buffers if we've
253 completed -imacros handling.
255 2001-08-31 Eric Christopher <echristo@redhat.com>
257 * gcc.c (handle_braces): Add explaination for abort.
259 2001-08-30 Roman Zippel <zippel@linux-m68k.org>
261 * expmed.c (store_bit_field): Update to patch from 2001-08-27:
262 move adjustment of bitpos instead.
264 2001-08-31 Zack Weinberg <zack@codesourcery.com>
266 * function.c: Remove all_functions. Make outer_function_chain
268 (init_function_start): Don't add new function structure to
270 (find_function_data, push_function_context_to,
271 pop_function_context_from, put_var_into_stack,
272 trampoline_address): Update for changed structure element names.
273 (push_function_context_to): Disentangle.
274 (free_after_compilation): Also free F.
275 (expand_dummy_function_end): Don't free cfun here.
276 (put_var_into_stack): Comment why we can't use find_function_data here.
277 (fix_lexical_addr, trampoline_address, ): Use find_function_data.
278 (mark_function_chain): Split into maybe_mark_struct_function and
279 ggc_mark_struct_function. Export the latter.
280 (init_function_once): Mark from cfun and outer_function_chain;
283 * function.h (struct function): Kill next_global. Rename next
284 to outer. All users updated to match.
285 (all_functions, outer_function_chain): Don't declare.
287 * ggc-common.c (ggc_mark_trees): Mark DECL_SAVED_INSNS.
288 * integrate.c (output_inline_function): Clear DECL_SAVED_INSNS,
289 don't touch f->inlinable, after calling rest_of_compilation.
291 * tree.h: Forward-declare struct function. Prototype
292 ggc_mark_struct_function.
294 2001-08-31 Kazu Hirata <kazu@hxi.com>
296 * config/h8300/h8300.md (*andorhi3): Fix typos.
298 2001-08-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
300 * calls.c (emit_library_call_value): Don't use a fixed
301 argument after VA_CLOSE, i.e. out of scope in traditional C.
303 * emit-rtl.c (gen_rtvec): Likewise.
305 2001-08-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
307 * Makefile.in (c-pragma.o): Depend on output.h.
308 (reorg.o): Depend on except.h.
310 * c-pragma.c: Include output.h.
312 * reorg.c: Include except.h.
314 * unwind-dw2.c: Call __builtin_alloca, not alloca.
316 2001-08-31 Richard Henderson <rth@redhat.com>
318 * sched-deps.c (add_dependence): Don't elide dependancy if the
319 conditional used by insn is modified in elem.
321 2001-08-31 Nick Clifton <nickc@cambridge.redhat.com>
323 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Define.
325 2001-08-31 Diego Novillo <dnovillo@redhat.com>
327 * c-decl.c (c_decode_option): Skip '-f' prefix before calling
330 2001-08-31 Geoffrey Keating <geoffk@redhat.com>
332 * config/stormy16/stormy16.c (stormy16_asm_out_destructor): New
334 (stormy16_asm_out_constructor): New function.
335 (TARGET_ASM_CONSTRUCTOR): Define.
336 (TARGET_ASM_DESTRUCTOR): Define.
338 2001-08-31 Andreas Jaeger <aj@suse.de>
340 * gcse.c (add_label_notes): REG_LABEL is an INSN_LIST.
341 * loop.c (add_label_notes): Likewise.
342 * reload.c (find_reloads): Likewise.
343 * config/sh/sh.c (machine_dependent_reorg): Likewise.
345 2001-08-31 Jason Merrill <jason_merrill@redhat.com>
347 * unwind-pe.h (read_uleb128, read_sleb128): Move actual reading
348 code here. Take _Unwind_{W,Sw}ord*.
349 (read_encoded_value_with_base): Use them.
350 * unwind-dw2.c (_Unwind_FrameState): Make cfa_offset and cfa_reg
352 (extract_cie_info): Simplify read_?leb128 handling.
353 (execute_stack_op, execute_cfa_program): Likewise.
354 * unwind-dw2-fde.c (get_cie_encoding): Likewise.
356 2001-08-31 Geoffrey Keating <geoffk@redhat.com>
358 * config/stormy16/stormy16.c (stormy16_expand_epilogue): Use
359 the frame pointer to pop the stack if convenient.
361 * config/stormy16/stormy16.c (stormy16_initialize_trampoline):
362 Don't use post-increment before combine.
363 * config/stormy16/stormy16.h (STATIC_CHAIN_REGNUM): Don't use
364 a call-saved register.
366 2001-08-31 Andreas Jaeger <aj@suse.de>
368 * jump.c (mark_jump_label): Revert patch from 2001-08-28, the
371 2001-08-30 Geoffrey Keating <geoffk@redhat.com>
373 * config/stormy16/stormy16.md (udivmodhi4): Express using UDIV/UMOD,
374 not DIV/MOD, of course.
376 2001-08-30 Vladimir Makarov <vmakarov@redhat.com>
378 * rtl.def: Undo my patch commited 2001-08-27.
380 * genattrtab.c: Ditto.
384 * sched-int.h: Ditto.
386 * target-def.h: Ditto.
390 * haifa-sched.c: Ditto.
392 * sched-rgn.c: Ditto.
394 * sched-vis.c: Ditto.
396 * Makefile.in: Ditto.
398 * doc/md.texi: Ditto.
400 * doc/tm.texi: Ditto.
402 * doc/contrib.texi: Ditto.
404 * doc/gcc.texi: Ditto.
406 * genattrtab.h: Remove it.
408 * genautomata.c: Remove it.
410 * genattr.c: Undo my patch and Richard Henderson's patch commited
413 Thu Aug 30 19:22:15 2001 J"orn Rennecke <amylaar@redhat.com>
415 * config.gcc (h8300-*-elf*): New case.
416 * h8300.h (CPP_SPEC): Add subtarget_cpp_spec.
417 (SUBTARGET_CPP_SPEC): Define.
418 (EXTRA_SPECS): Define.
419 (SUBTARGET_EXTRA_SPECS): Define.
420 * config/h8300/crti.asm, config/h8300/crtn.asm: New files.
421 * config/h8300/elf.h, config/h8300/t-elf: Likewise.
423 Thu Aug 30 18:50:37 2001 J"orn Rennecke <amylaar@redhat.com>
425 * t-h8300 (LIB1ASMFUNCS): Add _fixunssfdi and _fixunssfsi_asm.
426 (LIB2FUNCS_EXTRA): Define.
427 config/h8300/lib1funcs.asm: New part: L_fixunssfsi_asm .
428 config/h8300/fixunssfsi.c: New file.
430 2001-08-30 Kazu Hirata <kazu@hxi.com>
432 * config/h8300/h8300.md (zero_extendqihi2): Changes to
433 define_expand to accomodate target-specific attributes.
434 (anonymous zero_extendqihi2 patterns): New.
436 Thu Aug 30 18:10:56 2001 J"orn Rennecke <amylaar@redhat.com>
438 * h8300.md (*andorhi3): New pattern.
440 Thu Aug 30 16:00:31 2001 J"orn Rennecke <amylaar@redhat.com>
442 * h8300.c (dosize): Fix test for "sub".
444 Thu Aug 30 10:21:43 2001 J"orn Rennecke <amylaar@redhat.com>
446 * c-typeck.c (pointer_diff): Try to eliminate common term before
449 2001-08-30 Nick Clifton <nickc@cambridge.redhat.com>
451 * config/arm/arm.c (arm_compute_initial_elimination_offset):
452 Account for the saves of the FP registers.
454 * config/arm/unknown-elf.h (TEXT_SECTION): Delete.
455 (TEXT_SECTION_ASM_OP): Define.
456 (INIT_SECTION_ASM_OP): Define.
457 (FINI_SECTION_ASM_OP): Define.
458 (SUBTARGET_EXTRA_SECTIONS): Remove trailing comma.
459 (RDATA_SECTION_FUNCITON): Provide prototype.
461 2001-08-29 Geoffrey Keating <geoffk@redhat.com>
463 * reload1.c (move2add_note_store): Correct typo checking for
466 2001-08-29 Andrew MacLeod <amacleod@redhat.com>
468 * gcse.c (compute_hash_table): The SRC part of an insn with a RETVAL
469 note should not be considered outside the libcall block.
471 2001-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
473 * genattrtab.c (attr_printf): Use VA_OPEN/VA_FIXEDARG/VA_CLOSE.
475 2001-08-29 Kazu Hirata <kazu@hxi.com>
477 * config/h8300/h8300.md (movsi_h8300hs): Make it 64-bit safe.
479 2001-08-29 Kazu Hirata <kazu@hxi.com>
481 * config/h8300/h8300-protos.h: Add a prototype for
483 * config/h8300/h8300.c (emit_logical_op): New.
484 * config/h8300/h8300.md (andhi3): Use emit_logical_op.
491 2001-08-29 John David Anglin <dave@hiauly1.hia.nrc.ca>
493 * pa.c (move_operand): Cast GET_MODE_SIZE results to HOST_WIDE_INT for
494 comparison with rtx INTVAL.
495 (pa_output_function_prologue): Don't mix signed and unsigned in `?'
497 * pa.h (FUNCTION_ARG_SIZE): Likewise.
499 2001-08-29 Kazu Hirata <kazu@hxi.com>
501 * config/h8300/lib1funcs.asm: Update the copyright. Fix
504 2001-08-29 Kazu Hirata <kazu@hxi.com>
506 * config/h8300/h8300.md (anonymous movhi pattern): Don't move
507 (reg n) to (mem (pre_dec (reg n))
508 (anonymous movsi pattern): Likewise.
510 2001-08-29 Kazu Hirata <kazu@hxi.com>
512 * config/h8300/h8300.h (RETURN_ADDR_RTX): New.
514 2001-08-29 Kazu Hirata <kazu@hxi.com>
516 * config/h8300/h8300.md (movsi_h8300hs): Optimize loading of
517 several special constants.
519 2001-08-29 Kazu Hirata <kazu@hxi.com>
521 * config/h8300/lib1funcs.asm: Fix comment typos.
523 2001-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
525 * iris6.h (ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT):
526 Fix format specifier warnings.
528 * irix6-libc-compat.c (inet_ntoa, inet_lnaof, inet_netof,
529 inet_makeaddr, semctl): Prototype.
531 * mips.c (compute_frame_size): Fix signed/unsigned warnings.
532 (save_restore_insns): Use base_offset, not gp_offset.
534 * mips.h (GP_REG_OR_PSEUDO_STRICT_P): Fix signed/unsigned warning.
535 (ASM_OUTPUT_BYTE): Fix format specifier warning.
537 2001-08-29 Richard Henderson <rth@redhat.com>
539 * bb-reorder.c (function_tail_eff_head): New.
540 (record_effective_endpoints): Set it.
541 (fixup_reorder_chain): Use it.
543 2001-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
545 * dwarf2asm.c (dw2_asm_output_nstring): Fix typo in previous change.
547 2001-08-28 Dale Johannesen <dalej@apple.com>
549 * config/darwin.c (machopic_function_base_name): Add const
550 qualifier to a string.
551 (darwin_encode_section_info): Ditto.
553 2001-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
555 * tree.c (default_valid_attribute_p): Don't use PARAMS on a
558 2001-08-28 Daniel Berlin <dan@cgsoftware.com>
560 * df.h (struct df): Add rts_order variable.
562 * df.c (df_visit_next_rts): New function.
563 (df_visit_next): Renamed to df_visit_next_rc
564 (df_analyse_1): Allocate/compute/free rts_order as well.
565 (df_rd_global_compute): Use df_visit_next_rc instead of
567 (df_ru_global_compute): Use df_visit_next_rts instead of
570 * flow.c (flow_reverse_top_sort_order_compute): New function.
572 * basic-block.h: Add prototype.
574 2001-08-28 Daniel Berlin <dan@cgsoftware.com>
576 * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): For unreachable
577 blocks, the BB_REACHABLE is now set, rather than aux being
578 non-NULL. Update the test to reflect this.
580 2001-08-28 Eric Christopher <echristo@redhat.com>
582 * config/mips/crtn.asm: Add comment explaining 16 byte alignment.
583 config/mips/crti.asm: Ditto.
585 2001-08-28 Eric Christopher <echristo@redhat.com>
586 Richard Henderson <rth@redhat.com>
588 * c-pragma.h (add_weak): Move prototype from here...
589 * output.h (add_weak): ... to here.
590 * varasm.c (add_weak): Fix typo.
591 * config/mips/crti.asm: New file.
592 * config/mips/crtn.asm: Ditto.
593 * config/mips/elf.h (SBSS_SECTION_ASM_OP) Add #undef.
594 (CTOR_LISTS_DEFINED_EXTERNALLY): Remove.
595 (INVOKE__main): Ditto.
596 (INIT_SECTION_ASM_OP): New.
597 (FINI_SECTION_ASM_OP): Ditto.
598 (STARTFILE_SPEC): Add crti.
599 (ENDFILE_SPEC): Add crtn.
600 * config/mips/elf64.h: Same.
601 * config/mips/rtems64.h (INVOKE__main, NAME__MAIN, SYMBOL__MAIN):
603 * config/mips/vxworks.h: Ditto.
604 * config/mips/t-elf: Support crti and crtn.
606 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
608 * jump.c (mark_jump_label): Fix typo: REG_LABEL is EXPR_LIST, not
611 2001-08-28 Richard Henderson <rth@redhat.com>
613 * config/ia64/ia64.md (andcmbi3, iorcmbi3): Fix typos.
614 (one_cmplbi2 splitter): Remove redundant test.
616 2001-08-28 Dale Johannesen <dalej@apple.com>
618 * config/rs6000/darwin.h (DEFAULT_SIGNED_CHAR): Define.
620 2001-08-28 Danny Smith <dannysmith@users.sourceforge.net>
622 * config/i386/cygwin.h (BIGGEST_FIELD_ALIGNMENT): Set to 64.
624 2001-08-28 Stan Shebs <shebs@apple.com>
626 * config/darwin.h (ASM_OUTPUT_LABELREF): Handle '*' names.
627 (UNALIGNED_SHORT_ASM_OP): Define.
628 (UNALIGNED_INT_ASM_OP): Define.
630 2001-08-28 Will Cohen <wcohen@redhat.com>
632 * config/rs6000/rs6000.md (store_multiple): Correct RTL
633 generation for first set.
635 2001-08-27 Roman Zippel <zippel@linux-m68k.org>
637 * flow.c (redirect_edge_succ_nodup): Return new edge.
638 (try_simplify_condjump): Use new edge.
639 * basic-block.h (redirect_edge_succ_nodup): Update prototype.
641 * cse.c (cse_basic_block): Skip note instructions.
643 2001-08-27 Richard Henderson <rth@redhat.com>
645 * combine.c (combine_simplify_rtx): Don't reverse condition
646 if there is no reverse for the condition.
647 (simplify_comparison): Don't simplify subregs from INT to FP.
649 * config/m68k/m68k.md (sordered, sordered_1, sunordered, sunordered_1,
650 suneq, suneq_1, sunge, sunge_1, sungt, sungt_1, sunle, sunle_1,
651 sunlt, sunlt_1, sltgt, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
652 bordered, bunordered, buneq, bunge, bungt, bunle, bunlt, bltgt,
653 bordered_rev, bunordered_rev, buneq_rev, bunge_rev, bungt_rev,
654 bunle_rev, bunlt_rev, bltgt_rev): New patterns.
656 2001-08-27 Roman Zippel <zippel@linux-m68k.org>
658 * config/m68k/m68k.md (subreghi1ashrdi_const32, bsetmemqi,
659 bsetmemqi+1, strict_low_part peephole): Fix SUBREG_BYTE offset.
661 (adddi_dilshr32, adddi_dishl32): Only data register can be
662 source for mem destination.
664 * expmed.c (store_bit_field): Ignore adjustment to bitpos
665 and use bitnum to decide about register move.
667 2001-08-27 Richard Henderson <rth@redhat.com>
669 * genattr.c (main): Emit state_t even when not doing scheduling.
671 2001-08-27 Roman Zippel <zippel@linux-m68k.org>
672 Richard Henderson <rth@redhat.com>
674 * gcse.c (reg_first_set, reg_last_set): Replace with ...
675 (reg_avail_info, current_bb): ... these.
676 (oprs_unchanged_p, record_last_reg_set_info): Use them.
677 (compute_hash_table): Likewise.
679 2001-08-27 Roman Zippel <zippel@linux-m68k.org>
681 * flow.c (verify_flow_info): Use checksums to verify edges.
683 2001-08-27 Richard Henderson <rth@redhat.com>
685 * genautomata.c (expand_automata): Always create a description.
687 2001-08-27 Geoffrey Keating <geoffk@redhat.com>
689 * optabs.c (expand_binop): Correctly handle the carry in multiword
690 add/subtract operations.
692 2001-08-27 Fred Fish <fnf@be.com>
694 * ginclude/stddef.h: Fix typo, __SIZE__TYPE__ should be
697 2001-08-27 Geoffrey Keating <geoffk@redhat.com>
699 * reload.c (find_reloads_toplev): Back out this change:
701 Wed Jul 26 19:44:05 2000 Hans-Peter Nilsson <hp@axis.com>
703 * reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
704 mem if the address is a mode_dependent_address_p.
706 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
708 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
709 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
710 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
713 * genattr.c (main): New variable num_insn_reservations. Increase
714 it if there is DEFINE_INSN_RESERVATION. Output automaton based
715 pipeline hazard recognizer interface.
717 * genattrtab.h: New file.
719 * genattrtab.c: Include genattrtab.h.
720 (attr_printf, check_attr_test, make_internal_attr,
721 make_numeric_value): Move protypes into genattrtab.h. Define them
723 (num_dfa_decls): New global variable.
724 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
725 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
726 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
727 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
729 * genautomata.c: New file.
731 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
733 * sched-int.h: (curr_state): Add the external definition for
734 automaton pipeline interface.
735 (haifa_insn_data): Add comments for members blockage and units.
737 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
738 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
739 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
740 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
741 TARGET_SCHED_DFA_POST_CYCLE_INSN,
742 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
743 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
745 (TARGET_SCHED): Use the new macros.
747 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
748 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
749 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
750 dfa_bubble): New members in gcc_target.sched.
752 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
753 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
754 (insn_queue): Redefine it as pointer to array.
755 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
757 (max_insn_queue_index_macro_value): New variable.
758 (curr_state, dfa_state_size, ready_try): New varaibles for
760 (ready_element, ready_remove, max_issue): New function prototypes
761 for automaton interface.
762 (choose_ready): New function prototype.
763 (insn_unit, blockage_range): Add comments.
764 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
765 FUNCTION_UNITS_SIZE == 0.
766 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
767 actual_hazard, potential_hazard): Add comments.
768 (insn_cost): Use cost -1 as undefined value. Remove
769 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
771 (ready_element, ready_remove): New functions for automaton
773 (schedule_insn): Add new code for automaton pipeline interface.
774 (queue_to_ready): Add new code for automaton pipeline interface.
775 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
776 (debug_ready_list): Print newline when the queue is empty.
777 (max_issue): New function for automaton pipeline interface.
778 (choose_ready): New function.
779 (schedule_block): Add new code for automaton pipeline interface.
780 Print ready list before scheduling each insn.
781 (sched_init): Add new code for automaton pipeline interface.
782 Initiate insn cost by -1.
783 (sched_finish): Free the current automaton state and finalize
784 automaton pipeline interface.
786 * sched-rgn.c: Include target.h.
787 (init_ready_list, new_ready, debug_dependencies): Add new code for
788 automaton pipeline interface.
790 * sched-vis.c: Include target.h.
791 (get_visual_tbl_length): Add code for automaton interface.
792 (target_units, print_block_visualization): Add comments.
794 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
795 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
796 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
797 (getruntime.o, genautomata.o): New entries.
798 (genattrtab.o): Add new dependency file genattrtab.h.
799 (genattrtab): Add new dependencies. Link it with `libm.a'.
800 (getruntime.o, hashtab.o): New entries for canadian cross.
802 * doc/md.texi: Description of automaton based model.
804 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
806 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
807 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
808 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
809 TARGET_SCHED_DFA_POST_CYCLE_INSN,
810 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
811 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
812 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
814 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
815 MAX_DFA_ISSUE_RATE): New macro descriptions.
817 * doc/contrib.texi: Add dfa based scheduler contribution.
819 * doc/gcc.texi: Add more information about genattrtab.
821 2001-08-27 Diego Novillo <dnovillo@redhat.com>
823 * flow.c (flow_loop_dump): Do not display insn UIDs if this is not
826 2001-08-27 Richard Henderson <rth@redhat.com>
828 * function.c (expand_function_end): Don't init arg_pointer_save_area.
829 (get_arg_pointer_save_area): New. Create an init it here.
830 (fix_lexical_addr): Use it.
831 * function.h: Declare it.
832 * builtins.c (expand_builtin_setjmp_receiver): Use it.
833 * stmt.c (expand_nl_goto_receiver): Use it.
835 2001-08-27 Richard Henderson <rth@redhat.com>
837 * final.c (final_scan_insn): Don't enter APP_ON mode for
840 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Use proper
841 alignment for assemble_integer for DW_EH_PE_aligned.
842 * except.c (output_function_exception_table): Likewise.
844 2001-08-26 Andreas Jaeger <aj@suse.de>
846 * c-tree.h: Add prototyp for c_sizeof_nowarn.
848 2001-08-25 Dan Nicolaescu <dann@ics.uci.edu>
850 * ssa-ccp.c (ssa_const_prop): Free ssa_edges.
852 2001-08-27 Alan Modra <amodra@bigpond.net.au>
854 * config/rs6000/rs6000.c (mask_operand): Rewrite without
856 (mask64_operand): Likewise.
857 (rldic_operand): Delete.
858 (includes_lshift64_p): Delete.
859 (includes_rldic_lshift_p): New function.
860 (includes_rldicr_lshift_p): New function.
861 (print_operand): Don't call rldic_operand in case 'W'.
862 * config/rs6000/rs6000-protos.h (rldic_operand): Remove.
863 (includes_lshift64_p): Remove.
864 (includes_rldic_lshift_p): Declare.
865 (includes_rldicr_lshift_p): Declare.
866 * config/rs6000/rs6000.h (PREDICATE_CODES): Remove rldic_operand.
867 * config/rs6000/rs6000.md <ashldi3_internal 64 bit patterns>:
868 Replace match_operand rldic_operand predicate with
869 const_int_operand. Replace includes_lshift64_p condition with
870 includes_rldic_lshift_p.
871 <ashldi3_internal 64 bit rldicr patterns>: New.
873 2001-08-27 Andreas Jaeger <aj@suse.de>
875 * emit-rtl.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
876 * errors.c: Likewise.
878 * dwarf2asm.c: Likewise.
879 * doprint.c (checkit): Likewise.
880 * diagnostic.c: Likewise.
881 * collect2.c: Likewise.
883 * c-semantics.c (build_stmt): Likewise.
884 * c-format.c (status_warning): Likewise.
885 * c-errors.c (pedwarn_c99): Likewise.
886 * builtins.c (validate_arglist): Likewise.
887 * config/pj/pj.c (pj_printf): Likewise.
888 * fix-header.c: Likewise.
890 * gcov.c (fnotice): Likewise.
891 * gensupport.c (message_with_line): Likewise.
892 * mips-tfile.c: Likewise.
893 * protoize.c (notice): Likewise.
894 * read-rtl.c (fatal_with_file_and_line): Likewise.
895 * rtl-error.c: Likewise.
896 * tradcpp.c: Likewise.
898 * cp/tree.c (build_min_nt): Likewise.
899 (build_min): Likewise.
900 * cp/lex.c: Likewise.
901 * cp/errfn.c: Likewise.
902 * cp/rtti.c (create_pseudo_type_info): Likewise.
904 Sun Aug 26 20:25:44 2001 Denis Chertykov <denisc@overta.ru>
906 * df.c (df_uses_record): Return after recording all uses
909 2001-08-26 Daniel Berlin <dan@cgsoftware.com>
911 * df.c (df_insn_modify): Realloc the INSN table here, if
912 necessary, here, too.
914 2001-08-26 Aldy Hernandez <aldyh@redhat.com>
916 * config/mips/mips.c (mips_function_value): Handle complex return
919 2001-08-25 Hans-Peter Nilsson <hp@bitrange.com>
921 * reload1.c (reload): Make all entries in reg_equiv_memory_loc
923 * reload.c (make_memloc): Copy result if it is still
924 reg_equiv_memory_loc[regno] on return.
925 (subst_reloads) [ENABLE_CHECKING]: Check that none of
926 reg_equiv_constant, reg_equiv_memory_loc, reg_equiv_address and
927 reg_equiv_mem are modified by the substitutions.
929 Sat Aug 25 23:07:35 CEST 2001 Jan Hubicka <jh@suse.cz>
931 * predict.c (expensive_function_p): New.
932 * rtl.h (expensive_function_p): Declare.
933 * i386.c (FAST_PROLOGUE_INSN_COUNT): New constant.
934 (use_fast_prologue_epilogue): New static variable.
935 (expand_prologue): Set it; emit short prologues if unset.
936 (expand_epilogue): Likewise.
938 2001-08-22 Geoffrey Keating <geoffk@redhat.com>
940 * config.gcc: Add stormy16-*-elf case.
941 * config/stormy16/stormy-abi: New file.
942 * config/stormy16/stormy16-lib2.c: New file.
943 * config/stormy16/stormy16-protos.h: New file.
944 * config/stormy16/stormy16.c: New file.
945 * config/stormy16/stormy16.h: New file.
946 * config/stormy16/stormy16.md: New file.
947 * config/stormy16/t-stormy16: New file.
949 Sat Aug 25 15:46:51 CEST 2001 Jan Hubicka <jh@suse.cz>
951 * i386.h (no-accumulate-outgoing-args): Use proper mask.
953 2001-08-24 David Edelsohn <edelsohn@gnu.org>
955 * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Function
956 descriptor members are pointer size, not constant 4.
957 * config/rs6000/rs6000.md (define_splits): Remove more unused
960 2001-08-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
962 * sparc.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
964 2001-08-24 Andreas Jaeger <aj@suse.de>, rkl@connect.org.uk
966 * cp/rtti.c (VPARAMS): Fix parameter.
968 2001-08-24 Zack Weinberg <zackw@panix.com>
970 * expmed.c: Default-#define HAVE_insv, HAVE_extv, and HAVE_extzv
972 (mode_for_extraction): No need for #ifdefs. Add default-case abort
974 (store_bit_field): Eliminate insv_bitsize variable. Put HAVE_insv
975 in if controlling use of insv.
976 (extract_bit_field): Likewise, for extv and extzv.
978 Fri Aug 24 17:27:46 CEST 2001 Jan Hubicka <jh@suse.cz>
980 * i386.md (movcc peep2): Fix load of 0.
982 2001-08-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
984 * fold-const.c (tree_expr_nonnegative_p): Handle *_DIV_EXPR,
985 *_MOD_EXPR, SAVE_EXPR and NON_LVALUE_EXPR.
987 2001-08-23 Jason Merrill <jason_merrill@redhat.com>
989 * c-pragma.h: Move weak_syms and weak_decls...
990 * varasm.c: ...here. Now static.
991 (declare_weak, weak_finish, remove_from_pending_weak_list): Don't
992 depend on HANDLE_PRAGMA_WEAK.
994 * c-common.c (c_alignof, c_alignof_expr): Move here...
995 * c-typeck.c: ...from here.
996 * c-tree.h, c-common.h: Adjust.
998 2001-08-23 Bernd Schmidt <bernds@redhat.com>
1000 * config/ia64/ia64.c (rws_update): If !pred, set write_count
1001 instead of incrementing it.
1003 * config/ia64/ia64.c (ia64_sched_reorder): When there's more than one
1004 asm ready, don't try to move them all into the same array element.
1006 Thu Aug 23 17:21:43 CEST 2001 Jan Hubicka <jh@suse.cz>
1008 * function.c (thread_prologue_and_epilogue_insns): Avoid
1009 fallthru flag on edge to exit.
1011 * i386.md (trunc?fsi splitter): Conditionionize for non-sse.
1013 * flow.c (delete_noop_moves, propagate_block_delete_insn): Purge
1016 2001-08-23 Lars Brinkhoff <lars@nocrew.org>
1018 * config/mcore/mcore.h (MACHINE_DEPENDENT_SIMPLIFY): Remove.
1019 * config/mcore/mcore.c (mcore_dependent_simplify_rtx): Likewise.
1020 * config/mcore/mcore-protos.h (mcore_dependent_simplify_rtx):
1023 2001-08-23 Lars Brinkhoff <lars@nocrew.org>
1025 * genconstants.c, genpreds.c, libfuncs.h, optabs.h, rtl-error.h:
1026 replace "GNU CC" with "GCC".
1028 2001-08-23 Richard Henderson <rth@redhat.com>
1030 * config/ia64/ia64.c (ia64_register_move_cost): Add mode arguemnt.
1031 Reorganize. Handle ADDL like GR, add GR_AND_BR. Handle TFmode.
1032 (ia64_secondary_reload_class): Need GR between AR/BR and anything.
1033 Need GR between FR and not GR_AND_FR.
1034 * config/ia64/ia64-protos.h (ia64_register_move_cost): Update.
1035 * config/ia64/ia64.h (reg_class): Add GR_AND_BR_REGS, move
1036 AR regs before GR regs.
1037 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
1038 (PREFERRED_RELOAD_CLASS): Tweak for reordered classes.
1039 (REGISTER_MOVE_COST): Update.
1040 (MEMORY_MOVE_COST): Add GR_AND_FR_REGS.
1042 2001-08-23 Richard Henderson <rth@redhat.com>
1044 * regclass.c (init_reg_sets_1): Don't assume cost 2 within
1047 2001-08-22 Geoffrey Keating <geoffk@redhat.com>
1049 * reload1.c (emit_reload_insns): Don't look for notes
1050 on a NULL store_insn.
1052 2001-08-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1054 * sparc.c (uns_small_int): Don't reference a constant >32-bit.
1055 (addrs_ok_for_ldd_peep): Fix signed/unsigned warning.
1056 (sparc_flat_function_prologue, sparc_flat_function_epilogue): Fix
1057 format specifier warnings.
1058 (sparc_sched_reorder): Mark parameter with ATTRIBUTE_UNUSED.
1060 2001-08-22 David Billinghurst <David.Billinghurst@riotinto.com>
1062 * config/i386/i386-protos.h: Correct declaration of
1063 i386_pe_asm_named_section.
1065 2001-08-22 John David Anglin <dave@hiauly1.hia.nrc.ca>
1067 * pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Add declaration for
1069 * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Likewise.
1071 2001-08-22 Neil Booth <neil@daikokuya.demon.co.uk>
1073 * cpperror.c (print_location): Don't show _Pragma.
1074 * cppfiles.c (_cpp_pop_file_buffer): Handle -include file pushing
1075 and file change callback generation here.
1076 (stack_include_file): Update use of cpp_push_buffer.
1077 * cpphash.h (_cpp_pop_file_buffer): Update prototype.
1078 (struct cpp_buffer): Remove type, pfile members.
1079 * cppinit.c (cpp_handle_option): Use free_chain.
1080 * cpplex.c (_cpp_lex_token): Don't do -include file pushing here.
1081 (skip_escaped_newlines, get_effective_char, lex_percent): Take
1082 a cpp_reader rather than a cpp_buffer.
1083 (skip_escaped_newlines, get_effective_char, skip_block_comment,
1084 skip_line_comment, parse_string, lex_percent, lex_dot,
1085 _cpp_lex_token): Update accordingly.
1086 * cpplib.c (_cpp_pop_buffer): Don't do file change callback
1088 (cpp_push_buffer): Update prototype.
1089 (run_directive): Update use of cpp_push_buffer.
1090 (_cpp_do__Pragma, cpp_define, cpp_define_builtin, cpp_undef,
1091 handle_assertion): Update use of run_directive.
1092 * cpplib.h (enum cpp_buffer_type): Remove.
1093 (cpp_push_buffer): Update prototype.
1094 * fix-header.c (read_scan_file): Update.
1096 2001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1098 * gcc.c (struct prefix_list): Change prefix to const char *.
1100 2001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1102 * final.c (final_scan_insn): Call ADDR_VEC_ALIGN on next insn.
1104 2001-08-22 Jason Merrill <jason_merrill@redhat.com>
1106 * explow.c (set_mem_attributes): Avoid returning a bogus alias set
1109 * jump.c (squeeze_notes): Take parms by reference. Handle END being
1112 * ifcvt.c (dead_or_predicable): Adjust.
1113 * loop.c (find_and_verify_loops): Adjust.
1114 * stmt.c (expand_end_case): Adjust.
1115 * flow.c (merge_blocks_move_successor_nojumps): Adjust. Modify the
1116 head and end insn pointers in the basic block, not just local copies.
1117 (merge_blocks_move_predecessor_nojumps): Likewise.
1119 2001-08-22 Lars Brinkhoff <lars@nocrew.org>
1121 * Makefile.in, alias.c, basic-block.h, bb-reorder.c, bitmap.c,
1122 bitmap.h, builtin-types.def, builtins.c, builtins.def,
1123 c-aux-info.c, c-common.c, c-common.def, c-common.h,
1124 c-convert.c, c-decl.c, c-dump.c, c-dump.h, c-errors.c,
1125 c-format.c, c-lang.c, c-lex.c, c-lex.h, c-parse.in,
1126 c-pragma.c, c-pragma.h, c-semantics.c, c-tree.h, c-typeck.c,
1127 caller-save.c, calls.c, collect2.c, collect2.h, combine.c,
1128 conditions.h, config.gcc, configure.frag, configure.in,
1129 conflict.c, convert.c, convert.h, cppspec.c, crtstuff.c,
1130 cse.c, cselib.c, cselib.h, dbxout.c, dbxout.h, defaults.h,
1131 dependence.c, df.c, df.h, diagnostic.c, diagnostic.h,
1132 doloop.c, dominance.c, dwarf.h, dwarf2.h, dwarf2asm.c,
1133 dwarf2asm.h, dwarf2out.c, dwarf2out.h, dwarfout.c,
1134 emit-rtl.c, errors.c, errors.h, except.c, except.h,
1135 exgettext, explow.c, expmed.c, expr.c, expr.h, final.c,
1136 fixproto, flags.h, flow.c, fold-const.c, fp-test.c,
1137 function.c, function.h, gbl-ctors.h, gcc.c, gcc.h, gcc.hlp,
1138 gccspec.c, gcov-io.h, gcse.c, genattr.c, genattrtab.c,
1139 gencheck.c, gencodes.c, genconfig.c, genemit.c,
1140 genextract.c, genflags.c, gengenrtl.c, genmultilib,
1141 genopinit.c, genoutput.c, genpeep.c, genrecog.c,
1142 gensupport.c, gensupport.h, ggc-callbacks.c, ggc-common.c,
1143 ggc-none.c, ggc-page.c, ggc-simple.c, ggc.h, global.c,
1144 graph.c, graph.h, gthr-aix.h, gthr-dce.h, gthr-posix.h,
1145 gthr-rtems.h, gthr-single.h, gthr-solaris.h, gthr-vxworks.h,
1146 gthr-win32.h, gthr.h, haifa-sched.c, halfpic.c, halfpic.h,
1147 hard-reg-set.h, hwint.h, ifcvt.c, input.h, insn-addr.h,
1148 integrate.c, integrate.h, jump.c, lcm.c, libgcc2.c,
1149 libgcc2.h, lists.c, local-alloc.c, loop.c, loop.h,
1150 machmode.def, machmode.h, main.c, mbchar.c, mbchar.h,
1151 mips-tdump.c, mips-tfile.c, mklibgcc.in, mkmap-flat.awk,
1152 mkmap-symver.awk, optabs.c, output.h, params.c, params.def,
1153 params.h, predict.c, predict.def, predict.h, prefix.c,
1154 prefix.h, print-rtl.c, print-tree.c, profile.c, protoize.c,
1155 read-rtl.c, real.c, real.h, recog.c, recog.h, reg-stack.c,
1156 regclass.c, regmove.c, regrename.c, regs.h, reload.c,
1157 reload.h, reload1.c, reorg.c, resource.c, resource.h, rtl.c,
1158 rtl.def, rtl.h, rtlanal.c, sbitmap.c, sbitmap.h,
1159 sched-deps.c, sched-ebb.c, sched-int.h, sched-rgn.c,
1160 sched-vis.c, sdbout.c, sdbout.h, sibcall.c, simplify-rtx.c,
1161 ssa-ccp.c, ssa-dce.c, ssa.c, ssa.h, stmt.c, stor-layout.c,
1162 stringpool.c, system.h, timevar.c, timevar.def, timevar.h,
1163 tlink.c, toplev.c, toplev.h, tree.c, tree.def, tree.h,
1164 tsystem.h, unroll.c, unwind-dw2-fde.c, unwind-dw2-fde.h,
1165 unwind-dw2.c, unwind-pe.h, unwind-sjlj.c, unwind.h,
1166 unwind.inc, varasm.c, varray.c, varray.h, xcoffout.c,
1167 xcoffout.h: replace "GNU CC" with "GCC".
1169 2001-08-21 Richard Henderson <rth@redhat.com>
1171 * final.c (LABEL_ALIGN_AFTER_BARRIER): Default to no alignment.
1172 (final_scan_insn): Consider jump tables data even if we have no
1173 independant text section if !JUMP_TABLES_IN_TEXT_SECTION. Use
1175 * config/ia64/ia64.h (JUMP_TABLES_IN_TEXT_SECTION): Remove.
1176 (ASM_OUTPUT_CASE_END): Remove.
1177 (ASM_OUTPUT_ADDR_DIFF_ELT): Emit pc-relative references.
1178 * config/ia64/ia64.md (tablejump): Decode pc-relative references.
1179 * config/ia64/sysv4.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
1181 2001-08-21 Richard Henderson <rth@redhat.com>
1183 * config/ia64/ia64.c (emit_all_insn_group_barriers): Flush state
1184 at barrier insns. Emit stop bits before barriers.
1186 * flow.c (flow_find_cross_jump): Don't consider unconditional
1187 return insns for commoning.
1189 * final.c (compute_alignments): Fix typo.
1191 * expmed.c (CODE_FOR_insv, gen_insv): Provide defaults.
1192 (CODE_FOR_extv, gen_extv, CODE_FOR_extzv, gen_extzv): Likewise.
1193 (store_bit_field): Use mode_for_extraction more places.
1194 (extract_bit_field): Likewise.
1196 2001-08-21 Zack Weinberg <zackw@panix.com>
1198 * caller-save.c: Don't include insn-codes.h.
1199 (reg_save_code, reg_restore_code): Make arrays of int.
1200 All uses updated to match.
1201 (insert_save, insert_restore): No need to initialize "code"
1202 variable upon declaration.
1203 * Makefile.in: update dependencies; fix typo in clean rule.
1205 2001-08-21 Richard Henderson <rth@redhat.com>
1207 * ifcvt.c (find_if_block): Allow join_bb as EXIT.
1208 (merge_if_block): Handle fallout from same.
1210 2001-08-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1212 * builtins.c (type_to_class): Fix typo in last change.
1214 2001-08-21 Richard Henderson <rth@redhat.com>
1216 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't emit '#' if
1217 ia64_asm_output_label.
1219 * config/ia64/crtbegin.asm (__do_global_dtors_aux): Use saved
1220 copy of gp while the real gp register contains garbage.
1222 2001-08-21 Zack Weinberg <zackw@panix.com>
1224 * expmed.c (mode_for_extraction): New function.
1225 (store_bit_field, extract_bit_field): Use it.
1226 * expr.h: Prototype it and provide an enum for its first argument.
1228 * combine.c, function.c, recog.c: Don't include insn-codes.h.
1229 Use mode_for_extraction rather than testing HAVE_insv/extv/extzv
1230 and digging through the insn_data tables.
1231 * Makefile.in: Update dependencies.
1233 2001-08-22 Neil Booth <neil@daikokuya.demon.co.uk>
1235 * cppfiles.c (stack_include_file): line-map.c now handles include
1237 (handle_missing_handler): Similarly.
1238 (_cpp_execute_include): Similarly.
1239 (_cpp_pop_file_buffer): Similarly.
1240 * cpphash.h (struct cpp_reader): Remove system_include_depth,
1241 buffer_stack_depth and include_depth.
1242 * cpplib.c (do_include_common): line-map.c now handles include depth.
1243 (cpp_push_buffer): Similarly.
1244 (_cpp_pop_buffer): Similarly.
1245 * cppmacro.c (builtin_macro): Update.
1246 * line-map.c (init_line_maps): Set depth.
1247 (add_line_map): Increment "used" earlier. Update and use the
1249 (trace_include): Use the include depth.
1250 * line-map.h (struct line_maps): New member depth.
1252 2001-08-21 Neil Booth <neil@daikokuya.demon.co.uk>
1254 * cppfiles.c (stack_include_file): Don't handle -H here.
1255 * cppinit.c (cpp_start_read): Set include tracing after
1256 cpp_post_options and after stacking the main file.
1257 * line-map.c (trace_include): New.
1258 (init_line_maps, add_line_map): Update.
1259 * line-map.h (struct line_maps): New member trace_includes.
1261 2001-08-21 Neil Booth <neil@daikokuya.demon.co.uk>
1263 * cppfiles.c (stack_include_file): Harmonize system headerness tests.
1264 * cppfiles.c (stack_include_file): Only stack a file if there
1265 is something to do. Return a boolean indicating whether a
1266 buffer was stacked or not.
1267 (_cpp_execute_include): Similarly.
1268 (_cpp_read_file): Similarly.
1269 * cpphash.h (_cpp_read_file, _cpp_execute_include): Update prototypes.
1271 2001-08-21 Sam Steingold <sds@gnu.org>
1273 * tradcpp.c (rescan): define obufp_before_macroname before RECACHE
1274 (RECACHE): keep obufp_before_macroname up to date
1276 2001-08-21 Zack Weinberg <zackw@panix.com>
1278 * stmt.c: Don't include insn-codes.h.
1279 (expand_end_case): Machine specific logic moved to expr.c.
1280 No need to worry about __builtin_classify_type.
1281 (check_for_full_enumeration_handling, emit_case_nodes):
1284 * builtins.o (expand_builtin_classify_type): Split up so code
1285 can be shared with fold_builtin_classify_type.
1286 (type_to_class, fold_builtin_classify_type): New functions.
1287 (fold_builtins): Handle __builtin_classify_type.
1289 * expr.c (do_tablejump): Now static.
1290 (case_values_threshold, try_casesi, try_tablejump): New;
1291 code mostly from stmt.c (expand_end_case).
1292 (expr.h): Update prototypes.
1294 * Makefile.in (stmt.o): Update dependencies.
1296 2001-08-21 Will Cohen <wcohen@redhat.com>
1298 * configure/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Added local
1299 declaration of variable i.
1300 * configure/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Added local
1301 declaration of variable i.
1303 2001-08-21 Richard Henderson <rth@redhat.com>
1305 * crtstuff.c: Fix thinko last change. Move list tails to start
1306 of CRT_END section. Tidy ifdefs.
1307 (__EH_FRAME_BEGIN__): Always static for ELF.
1308 (__do_global_ctors_1): Rename from __frame_dummy.
1309 * config/mips/iris6.h (LINK_SPEC): Update for __do_global_ctors_1
1310 name change; don't hide __EH_FRAME_BEGIN__.
1312 2001-08-21 Richard Henderson <rth@redhat.com>
1314 * gdbinit.in: Move break on exit after break on fancy_abort.
1316 * config/ia64/ia64.c (ia64_return_in_memory): True for variable
1319 2001-08-21 Neil Booth <neil@daikokuya.demon.co.uk>
1321 * cpphash.h (_cpp_push_next_buffer): New.
1322 * cppinit.c (do_includes): Remove.
1323 (push_include, free_chain, _cpp_push_next_buffer): New.
1324 (cpp_start_read): Use them to rework command line option handling.
1325 (cpp_handle_option): Combine handling of -include and -imacros.
1326 * cpplex.c (_cpp_lex_token): Push a new -include buffer if
1327 appropriate. Always insert missing \n at EOF.
1328 * cpplib.c (start_directive): Get the directive position right.
1329 * cppmain.c (cb_file_change): Always print the first line, unless
1332 2001-08-20 Andreas Jaeger <aj@suse.de>
1334 * profile.c (compute_branch_probabilities): Remove extra new-line
1336 * flow.c (verify_flow_info): Likewise.
1338 2001-08-20 Diego Novillo <dnovillo@redhat.com>
1340 * basic-block.h (basic_block): Add new field 'flags'.
1341 (BB_REACHABLE): Define.
1342 (expunge_block): Declare.
1343 * flow.c (ENTRY_BLOCK_PTR): Initialize field 'flags'.
1344 (EXIT_BLOCK_PTR): Ditto.
1345 (expunge_block): Remove static declaration.
1346 (cleanup_cfg): Clear bb->aux on every basic block.
1347 (find_unreachable_blocks): Set BB_REACHABLE bit in bb->flags when
1348 computing reachability.
1349 (delete_unreachable_blocks): Delete block b if b->flags has
1352 2001-08-20 Diego Novillo <dnovillo@redhat.com>
1354 * doc/invoke.texi: Replace references to -fdump-tree with -fdump-ast.
1356 2001-08-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1358 * sparc.c (sparc_variable_issue): Fix typo in last change.
1360 2001-08-20 Richard Henderson <rth@redhat.com>
1362 * varasm.c (assemble_integer): Document ppc-eabi -mrelocatable losage.
1364 2001-08-20 John David Anglin <dave@hiauly1.hia.nrc.ca>
1366 * pa.h (RETURN_IN_MEMORY): Improve comment.
1368 2001-08-20 Janis Johnson <janis187@us.ibm.com>
1370 * doc/invoke.texi (Profiling options): Clarify the interactions
1371 between -fprofile-arcs and -ftest-coverage, -fprofile-arcs.
1373 2001-08-20 Jeffrey Oldham <oldham@codesourcery.com>
1375 * crtstuff.c (__do_global_ctors): Fix typo in preprocessing
1378 2001-08-20 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1380 * gcc.c (make_relative_prefix): Allocate a sufficiently large
1383 2001-08-20 Richard Henderson <rth@redhat.com>
1385 * final.c (end_final): Fix typo last change.
1387 2001-08-20 Neil Booth <neil@daikokuya.demon.co.uk>
1389 * cppinit.c (init_standard_includes): The returned buffer
1390 is already malloc-ed.
1391 * gcc.c (add_prefix): Similarly.
1392 * prefix.c (translate_name): Update to support clear buffer
1394 (update_path): Similarly. Be sure to free any newly allocated
1395 key. UPDATE_PATH_HOST_CANONICALIZE takes only one argument.
1397 * prefix.h (update_path): Update prototype and document.
1398 * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): Clean
1399 up and update to new buffer ownership rules.
1400 * doc/gcc.texi (UPDATE_PATH_HOST_CANONICALIZE): Update.
1402 Mon Aug 20 01:44:50 CEST 2001 Jan Hubicka <jh@suse.cz>
1404 * final.c (compute_alignments): New function.
1405 (init_insn_lengths): Do not care label_align.
1406 (LABEL_ALIGN_AFTER_BARRIER): Default to 1.
1407 (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Default to 0.
1408 (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): New.
1409 (shorted_branches): Realloc label_align array; do
1410 not call init_insn_lengths; Do not care about loop alignments.
1411 * output.h (compute_alignments): Declare.
1412 * toplev.c (rest_of_compilation): Call compute_alignments.
1413 * tm.texi (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): Document.
1415 * predict.c (block_info_def): Add npredecesors, remove nvisited;
1416 change visited to tovisit.
1417 (propagate_freq): Use faster traversing algorithm.
1418 (estimate_loops_at_level, estimate_bb_frequencies): Change visited
1419 to tovisit; reverse meaning.
1421 * predict.c (struct block_info_def): Remove nvisited.
1422 (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
1423 (estimate_bb_frequencies): Call mark_dfs_back_edges.
1425 2001-08-19 Geoffrey Keating <geoffk@redhat.com>
1427 * doc/invoke.texi (MIPS Options): Document -mfused-madd.
1428 * config/mips/mips.h (MASK_NO_FUSED_MADD): New.
1429 (TARGET_FUSED_MADD): New.
1430 (TARGET_SWITCHES): Add -mfused-madd, -mno-fused-madd.
1431 * config/mips/mips.md: Add TARGET_FUSED_MADD as condition to
1432 the multiply-add instructions.
1434 2001-08-19 Richard Henderson <rth@redhat.com>
1436 * dwarf2asm.c (dw2_output_indirect_constant_1): The symbol ref
1437 is aligned to pointer size.
1439 2001-08-19 Richard Henderson <rth@redhat.com>
1441 * config/ia64/ia64.c (ia64_cycle_display): Only emit cycle
1442 display markers during final schedule.
1444 2001-08-19 Richard Henderson <rth@redhat.com>
1446 * function.c (gen_mem_addressof): Don't call get_alias_set if no decl.
1448 2001-08-19 Richard Henderson <rth@redhat.com>
1450 * config/ia64/ia64.h (STRIP_NAME_ENCODING): Handle @ and *
1452 (ASM_NAME_TO_STRING): Remove.
1453 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Handle @ and *
1454 in the same string. Remove support for expressions.
1456 2001-08-19 Richard Henderson <rth@redhat.com>
1458 * config/i386/i386.md (tablejump): Make an expander; handle
1459 pic relative addressing here.
1460 (tablejump_1): Rename from tablejump_pic.
1463 2001-08-19 Richard Henderson <rth@redhat.com>
1465 * regclass.c (fix_register): Fix typo.
1467 2001-08-18 Richard Henderson <rth@redhat.com>
1469 * config/ia64/unwind-ia64.c (UNW_REG_B0): New.
1470 (struct _Unwind_Context): Expand br_loc to hold it.
1471 (uw_frame_state_for): Handle leaf functions better.
1472 (uw_update_reg_address): Update for br_loc change.
1474 2001-08-18 Richard Henderson <rth@redhat.com>
1476 * crtstuff.c: Move list heads before code that uses them.
1477 (__JCR_LIST__): Remove initial null.
1478 (frame_dummy, __frame_dummy): Do java registration here ...
1479 (__do_global_ctors_aux): ... not here.
1481 * config/ia64/crtbegin.asm (dtor_ptr): Make gp-relative.
1482 (__do_global_dtors_aux): Update to match.
1483 (__JCR_LIST__, __do_jv_register_classes): New.
1485 * config/ia64/crtend.asm (__JCR_END__): New.
1486 (__do_global_ctors_aux): Use a GPREL64I reloc to __CTOR_END__
1487 instead of an indirect LTOFF22 reloc.
1489 2001-08-18 Richard Henderson <rth@redhat.com>
1491 * flow.c (mark_regs_live_at_end): Use regs_invalidated_by_call.
1492 * regclass.c (init_reg_sets_1): Fix typo.
1493 * config/ia64/ia64.c (ar_pfs_reg_operand): New.
1494 (ia64_expand_call): Pass ar.pfs to sibcall expanders.
1495 (ia64_compute_frame_size): Make ar.unat live when in use.
1496 (ia64_epilogue_uses): Reformat; do not check current_function_is_leaf
1497 for ar.pfs; remove ar.unat handling.
1498 * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): ar.unat is
1500 (PREDICATE_CODES): Add ar_pfs_reg_operand.
1501 * config/ia64/ia64-protos.h: Update decls.
1502 * config/ia64/ia64.md (sibcall_nopic): Use ar.pfs.
1503 (sibcall_pic): Likewise.
1505 2001-08-18 Richard Henderson <rth@redhat.com>
1507 * config/ia64/ia64.c (ia64_sched_reorder2): Also skip past
1508 pred_rel_mutex when searching for insn_group_barrier.
1509 * config/ia64/ia64.md (cycle_display): Combine the expander
1512 * config/ia64/ia64.c (ia64_internal_sched_reorder): Emit stop
1513 bit before asm as needed.
1515 2001-08-18 Richard Henderson <rth@redhat.com>
1517 * timevar.def (TV_MACH_DEP): New.
1518 * toplev.c (rest_of_compilation): Use it.
1519 * config/ia64/ia64.c (ia64_reorg): Push to TV_SCHED2.
1521 2001-08-18 Zack Weinberg <zackw@panix.com>
1523 * unwind-dw2.c (execute_stack_op): Add default aborts to
1524 the inner switches to prevent warnings.
1526 2001-08-18 Richard Henderson <rth@redhat.com>
1528 * timevar.h (struct timevar_time_def): Change element type to float.
1529 (ticks_to_msec, clocks_to_msec): Likewise.
1530 (TICKS_TO_MSEC, CLOCKS_TO_MSEC): Rescale to seconds; use type float.
1531 (get_time): Likewise.
1532 (timevar_print): Adjust zero check and printing to match.
1534 2001-08-18 Zack Weinberg <zackw@panix.com>
1536 * doc/extend.texi, doc/gcc.texi, doc/install-old.texi,
1537 doc/invoke.texi, doc/md.texi, doc/rtl.texi, doc/include/gpl.texi:
1538 Eliminate overfull or underfull hboxes.
1540 2001-08-18 Zack Weinberg <zackw@panix.com>
1542 * cpperror.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
1544 2001-08-18 Zack Weinberg <zackw@panix.com>
1546 * haifa-sched.c: Convert to target hooks. Macros replaced
1547 are ISSUE_RATE, ADJUST_COST, ADJUST_PRIORITY, MD_SCHED_INIT,
1548 MD_SCHED_REORDER, MD_SCHED_REORDER2, MD_SCHED_VARIABLE_ISSUE,
1549 MD_SCHED_FINISH, and HAVE_cycle_display.
1550 * target-def.h (TARGET_SCHED_ADJUST_COST,
1551 TARGET_SCHED_ADJUST_PRIORITY, TARGET_SCHED_ISSUE_RATE,
1552 TARGET_SCHED_VARIABLE_ISSUE, TARGET_SCHED_INIT,
1553 TARGET_SCHED_FINISH, TARGET_SCHED_REORDER,
1554 TARGET_SCHED_REORDER2, TARGET_SCHED_CYCLE_DISPLAY):
1555 New hook #defines to be overridden.
1556 (TARGET_SCHED): Bring them all together.
1557 (TARGET_INITIALIZER): Update.
1558 * target.h: Don't forward declare struct rtx_def. Use 'rtx'
1559 instead of 'struct rtx_def *' throughout.
1560 (struct sched): New set of hooks for the scheduler.
1561 * Makefile.in (haifa-sched.o): Depend on target.h.
1562 * doc/tm.texi: Document the new scheduler hooks, together in
1563 their own section, instead of scattered around.
1564 Fix a bunch of underfull/overfull hboxes.
1566 * a29k.h, alpha.h, arm.h, c4x.h, convex.h, d30v.h, i386.h,
1567 ia64.h, m32r.h, m88k.h, mips.h, pa.h, rs6000.h, s390.h, sh.h,
1568 sparc.h: Don't define any of the old scheduler macros.
1570 * a29k.c, alpha.c, arm.c, c4x.c, convex.c, d30v.c, i386.c,
1571 ia64.c, m32r.c, m88k.c, mips.c, pa.c, rs6000.c, s390.c, sh.c,
1572 sparc.c: Create hook functions from code extracted from
1573 corresponding target header, or make existing hooks static, as
1574 appropriate. Set the appropriate entries in targetm.
1576 * alpha-protos.h, arm-protos.h, c4x-protos.h, d30v-protos.h,
1577 i386-protos.h, ia64-protos.h, m32r-protos.h, pa-protos.h,
1578 rs6000-protos.h, s390-protos.h, sparc-protos.h:
1579 Remove prototypes for functions which are now static.
1581 * d30v.h, d30v.c, m32r.h, m32r.c: Remove #ifdef HAIFA and
1582 related gunk; the Haifa scheduler is now the only choice.
1584 2001-08-18 Zack Weinberg <zackw@panix.com>
1586 * optabs.h (OTI_flodiv, flodiv_optab): Kill.
1587 * genopinit.c: Put floating point divide insns in sdiv_optab.
1588 * expr.c (expand_expr): Use sdiv_optab, not flodiv_optab.
1589 * config/gofast.h, config/c4x/c4x.h,
1590 config/ia64/hpux_longdouble.h, config/mips/mips.h,
1591 config/pa/long_double.h, config/rs6000/sysv4.h,
1592 config/sparc/sparc.h: Put floating point divide libcalls in sdiv_optab.
1593 * optabs.c (init_optab): Break into new_optab, init_optab, init_optabv.
1594 (init_optabs): Use init_optabv for overflow-trapping optabs.
1595 Don't init flodiv_optab. Give mov_optab, movstrict_optab, and
1596 cmp_optab RTX codes so have_insn_for can find them.
1598 * optabs.c (expand_simple_binop, expand_simple_unop,
1599 have_insn_for, gen_sub3_insn): New interfaces.
1600 * expr.h: Prototype new functions.
1601 (enum optab_methods): Move here from optabs.h.
1603 * builtins.c, combine.c, doloop.c, function.c, ifcvt.c,
1604 loop.c, profile.c, simplify-rtx.c, stmt.c, unroll.c:
1605 Use new functions instead of working directly with optabs.
1606 * doloop.c, ifcvt.c, loop.c, profile.c, simplify-rtx.c,
1607 unroll.c: Don't include optabs.h.
1608 * caller-save.c, combine.c, function.c, stmt.c: Just include
1609 insn-codes.h, not optabs.h.
1610 * Makefile.in: Update dependencies.
1612 * combine.c (make_compound_operation, simplify_comparison):
1613 Fix typos testing for this or that instruction.
1615 2001-08-18 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
1617 * mklibgcc.in: Prefer LIB1ASMFUNCS over LIB2_DIVMOD_FUNCS when
1618 generating libgcc.a.
1620 2001-08-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1622 * except.c (TYPE_HASH): Delete.
1624 * objc/objc-act.c (HASHFUNCTION): Cast to size_t, not
1627 * tree.c (TYPE_HASH): Delete.
1629 * tree.h (TYPE_HASH): Define.
1631 2001-08-18 Graham Stott <grahams@redhat.com>
1633 * config/mips/mips.md (adddi3_internal_2+1): Remove contraints from
1635 (adddi3_internal_2+2): Likewise.
1636 (eh_set_lr_di+1): Likewise.
1638 2001-08-17 Richard Henderson <rth@redhat.com>
1640 * defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
1641 UNALIGNED_DOUBLE_INT_ASM_OP, ASM_BYTE_OP): Move from ...
1642 * dwarf2asm.c: ... here.
1643 * dwarfout.c: Remove them.
1645 * varasm.c (assemble_integer): Add align parameter.
1646 (assemble_real, output_constant, output_constructor): Likewise.
1647 * output.h: Update decls.
1648 * dwarf2asm.c, final.c, varasm.c, config/darwin.c, config/nextstep.c,
1649 config/alpha/alpha.c, config/arm/arm.md, config/clipper/clipper.c,
1650 config/m88k/m88k.c, config/mcore/mcore.md, config/mips/mips.h,
1651 config/mips/mips.md, config/pa/pa.c, config/rs6000/rs6000.c,
1652 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.md:
1655 * final.c (end_final): Abort profile block generation if we
1656 havn't layed it out properly.
1657 * output.h (assemble_eh_integer): Remove stale decl.
1658 * varasm.c (assemble_zeros): Tidy; use assemble_integer.
1660 (assemble_integer): Handle unaligned data.
1661 (assemble_real): Abort on unaligned data.
1662 (output_constructor): Don't assume ASM_OUTPUT_ALIGN 0 does
1664 (default_dtor_section_asm_out_destructor): Use assemble_align.
1665 (default_named_section_asm_out_constructor): Likewise.
1666 (default_ctor_section_asm_out_constructor): Likewise.
1667 * config/darwin.c (machopic_asm_out_constructor): Likewise.
1668 (machopic_asm_out_destructor): Likewise.
1669 * config/nextstep.c (nextstep_asm_out_constructor): Likewise.
1670 (nextstep_asm_out_destructor): Likewise.
1671 * config/alpha/alpha.c (vms_asm_out_constructor): Likewise.
1672 (vms_asm_out_destructor): Likewise.
1674 2001-08-17 Richard Henderson <rth@redhat.com>
1676 * config/mips/iris6.h (TARGET_IRIX6): New.
1677 (current_section_name, current_section_flags): New.
1678 (ASM_OUTPUT_ALIGN, ASM_FILE_START, ASM_FILE_END): New.
1679 (MAX_OFILE_ALIGNMENT): New.
1680 (ASM_OUTPUT_ALIGNED_LOCAL): Use bss_section.
1681 * config/mips/mips.c (mips_make_temp_file, temp_filename): Remove.
1682 (copy_file_data): Split out from
1683 (mips_asm_file_end): ... here.
1684 (mips_asm_file_start): Remove extra .section directive. Use
1685 tmpfile instead of mips_make_temp_file.
1686 (mips_unique_section): Use const char * as needed for warnings.
1687 (iris6_asm_named_section_1): Renamed from iris6_asm_named_section;
1688 re-add align parameter.
1689 (iris6_asm_named_section): New.
1690 (iris_section_align_entry_eq, iris_section_align_entry_hash): New.
1691 (iris6_asm_output_align, iris6_section_align_1): New.
1692 (iris6_asm_file_start, iris6_asm_file_end): New.
1693 * config/mips/mips-protos.h: Update decls.
1695 2001-08-17 Janis Johnson <janis187@us.ibm.com>
1697 * doc/install.texi (Install GCC): Add links to build status pages.
1699 (Final install): Ditto; request updates for specific info
1701 2001-08-17 Neil Booth <neil@daikokuya.demon.co.uk>
1703 * cpperror.c (print_location): Don't take a file name; use the
1705 (_cpp_begin_message): Similarly.
1706 (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
1707 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
1708 (cpp_pedwarn_with_file_and_line): Remove.
1709 * cppfiles.c (stack_include_file): Update; set filename to stdin
1710 here when appropriate.
1711 * cpphash.h (struct cpp_buffer): Remove nominal_fname.
1712 (_cpp_begin_message): Don't take a file name.
1713 * cppinit.c: Add comment.
1714 * cpplex.c: Fix end-of-directive indicator.
1715 * cpplib.c: Don't include intl.h.
1716 (run_directive, do_diagnostic): Update.
1717 (do_line): Update to not use nominal_fname.
1718 (cpp_push_buffer): Don't take a filename.
1719 * cpplib.h (struct ht): Remove.
1720 (cpp_push_buffer): Don't take a filename.
1721 (cpp_pedwarn_with_file_and_line): Remove.
1722 * cppmacro.c (struct cpp_macro): Remove file.
1723 (builtin_macro): Update.
1724 (_cpp_create_definition): Update.
1725 * cppmain.c: Correct comment.
1726 * fix-header.c (read_scan_file): Update.
1728 2001-08-17 Kazu Hirata <kazu@hxi.com>
1730 * sbitmap.c: Fix comment formatting.
1731 * sched-deps.c: Likewise.
1732 * sibcall.c: Likewise.
1733 * simplify-rtx.c: Likewise.
1735 * ssa-ccp.c: Likewise.
1736 * stor-layout.c: Likewise.
1737 * timevar.c: Likewise.
1738 * toplev.c: Likewise.
1739 * unwind-dw2.c: Likewise.
1740 * unwind-dw2-fde.c: Likewise.
1741 * varasm.c: Likewise.
1743 2001-08-17 John David Anglin <dave@hiauly1.hia.nrc.ca>
1745 * pa.h (RETURN_IN_MEMORY): Return types with a size that is varable
1746 or larger than an integer in memory.
1748 2001-08-17 Zack Weinberg <zackw@panix.com>
1750 * system.h: Forward-declare struct rtx_def, struct rtvec_def,
1751 and union tree_node. Typedef rtx, rtvec, and tree. Fix comment.
1752 * rtl.h: Don't forward-declare union tree_node here. Don't
1753 typedef rtx or rtvec here. Change all uses of struct rtx_def *,
1754 struct rtvec_def *, or union tree_node * to use rtx, rtvec,
1755 and tree respectively.
1756 * tree.h: Don't forward-declare struct rtx_def here. Don't
1757 typedef tree here. Change all uses of struct rtx_def *,
1758 struct rtvec_def *, or union tree_node * to use rtx, rtvec,
1759 and tree respectively.
1761 2001-08-17 Richard Henderson <rth@redhat.com>
1763 * config/mips/elf.h, config/mips/elf64.h, config/mips/netbsd.h,
1764 config/mips/openbsd.h: Fix typos last change.
1766 2001-08-17 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1768 * doc/invoke.texi (Optimize Options): The default for
1769 -finline-limit is 600.
1771 2001-08-17 Richard Henderson <rth@redhat.com>
1773 * varasm.c (text_section): Allow TEXT_SECTION to override the
1774 printing of TEXT_SECTION_ASM_OP.
1775 * dwarf2out.c (TEXT_SECTION_NAME): Rename from TEXT_SECTION.
1776 (DATA_SECTION, BSS_SECTION): Remove.
1777 * dwarfout.c (TEXT_SECTION_NAME, DATA_SECTION_NAME, DATA1_SECTION_NAME,
1778 RODATA_SECTION_NAME, RODATA1_SECTION_NAME, BSS_SECTION_NAME):
1779 Rename from s/_NAME//.
1780 * config/mips/mips.h (TARGET_FILE_SWITCHING): Add !TARGET_MIPS16.
1781 (ASM_DECLARE_FUNCTION_NAME): Move file switching ...
1782 (TEXT_SECTION): ... here. New.
1783 * config/mips/elf.h (TEXT_SECTION): New; no file switching.
1784 * config/mips/elf64.h, config/mips/netbsd.h: Likewise.
1785 * config/mips/openbsd.h: Likewise.
1786 * config/mips/mips.c (mips_asm_file_start): Tidy file switching test.
1787 (mips_asm_file_end): Likewise test.
1788 (mips_output_function_epilogue): Likewise. Switch back to data
1789 section after emitting the function.
1791 * doc/tm.texi (Sections): Document TEXT_SECTION.
1793 2001-08-17 Richard Henderson <rth@redhat.com>
1795 * dwarf2out.c (dwarf2out_init): Don't emit .debug_loc label here.
1796 (dwarf2out_finish): Do it here. Emit .debug_loc before .debug_info.
1798 2001-08-17 Richard Henderson <rth@redhat.com>
1800 * varasm.c (assemble_variable): Don't overalign if DECL_USER_ALIGN.
1801 * crtstuff.c (__CTOR_LIST__, __DTOR_LIST__, __EH_FRAME_BEGIN__,
1802 __JCR_LIST__, __CTOR_END__, __DTOR_END__, __FRAME_END__,__JCR_END__):
1803 Add aligned attribute.
1805 2001-08-17 Andrew Haley <aph@cambridge.redhat.com>
1807 * config/sh/sh.md: Add modes to unspecs in first insn to match
1808 those in the second.
1810 * Makefile.in: Fix collect2 copy for Cygwin.
1812 Fri Aug 17 15:48:57 CEST 2001 Jan Hubicka <jh@suse.cz>
1814 Install the proper patch.
1815 * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
1816 (assign_params): Avoid setting DECL_RTL to unfinished RTX.
1817 (expand_function_start): Likewise.
1818 * stmt.c (expand_decl): Likewise.
1819 * varasm.c (make_decl_rtx): Likewise.
1821 Fri Aug 17 15:41:35 CEST 2001 Jan Hubicka <jh@suse.cz>
1823 * final.c: Undo my previous accidental checkin.
1824 * output.h: Likewise.
1825 * tm.texi: Likewise.
1827 2001-08-16 Richard Henderson <rth@redhat.com>
1829 * varasm.c (named_section_flags): Remove align parameter.
1830 * varasm.c, dwarf2out.c: Update all callers.
1831 * output.h: Update prototypes.
1833 * target.h (target.asm_out.named_section): Remove align parameter.
1834 * varasm.c, config/a29k/a29k.c, config/alpha/alpha.c,
1835 config/arm/arm.c, config/c4x/c4x.c, config/h8300/h8300.c,
1836 config/i386/i386.c, config/i386/winnt.c, config/m68k/m68k.c,
1837 config/mcore/mcore.c, config/mips/mips.c, config/rs6000/rs6000.c,
1838 config/sh/sh.c, config/sparc/sparc.c: Update implementations to match.
1840 * varasm.c (in_named_entry_eq, in_named_entry_hash): New.
1841 (get_named_section_flags, set_named_section_flags): New.
1842 (named_section_flags): Use them.
1843 (named_section): Do decl vs section flags check here...
1844 (default_section_type_flags): ... not here.
1845 (init_varasm_once): Create in_named_htab.
1846 (resolve_unique_section): Mark reloc unused.
1848 2001-08-16 Richard Henderson <rth@redhat.com>
1850 * varasm.c (force_const_mem): Keep pool alignment in bits.
1851 (output_constant_pool): Use assemble_align.
1853 2001-08-16 Zack Weinberg <zackw@panix.com>
1855 * doc/tm.texi: Remove extra @table command.
1857 2001-08-16 Zack Weinberg <zackw@panix.com>
1859 * final.c (shorten_branches): Clear the end of the label_align
1860 array only if we made it larger. Break up messy expressions
1863 * diagnostic.c (internal_error): Check for error recursion
1864 before doing ICE suppression.
1866 * timevar.c: Timing variables now count in milliseconds.
1867 (init_timevar): Set up ticks_to_msec and clocks_to_msec here.
1868 (get_time): Not here.
1869 (timevar_print): Don't print any timer whose user, cpu, and
1870 wall times are all zero as displayed.
1871 * timevar.h: Update comment aboout units. Make timevar
1874 Thu Aug 16 17:39:45 CEST 2001 Jan Hubicka <jh@suse.cz>
1876 * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
1877 (assign_params): Avoid setting DECL_RTL to unfinished RTX.
1878 (expand_function_start): Likewise.
1879 * stmt.c (expand_decl): Likewise.
1880 * varasm.c (make_decl_rtx): Likewise.
1882 2001-08-16 Jason Merrill <jason_merrill@redhat.com>
1884 * stor-layout.c (layout_decl): Don't set DECL_USER_ALIGN.
1885 (finalize_record_size): Don't set TYPE_USER_ALIGN.
1887 2001-08-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1889 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Remove unused
1892 2001-08-16 Andreas Jaeger <aj@suse.de>
1894 * config/s390/s390.c: Include "debug.h" for dwarf2out_do_frame
1897 Wed Aug 15 15:22:52 EDT 2001 John Wehle (john@feith.com)
1899 * rtl.h (only_sets_cc0_p): New prototype.
1900 * jump.c (sets_cc0_p): Handle INSN.
1901 (only_sets_cc0_p): New function.
1902 * flow.c (merge_blocks_nomove): Use only_sets_cc0_p.
1903 (tidy_fallthru_edge): Likewise.
1904 * integrate.c (copy_insn_list): Likewise.
1905 * unroll.c (unroll_loop): Likewise.
1906 (copy_loop_body): Likewise.
1908 2001-08-15 Jason Eckhardt <jle@redhat.com>
1910 * config/i960/i960.md (trap): Change "faulteq.t" to "faulte.t".
1912 Wed Aug 15 14:24:22 CEST 2001 Jan Hubicka <jh@suse.cz>
1914 * predict.c (struct block_info_def): Remove nvisited.
1915 (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
1916 (estimate_bb_frequencies): Call mark_dfs_back_edges.
1918 * i386.c (ix86_agi_depdendant): Lea causes AGI only on the Pentium
1919 (ix86_adjust_cost): Teach scheduler that latency to load operand can
1922 Wed Aug 15 12:41:32 CEST 2001 Jan Hubicka <jh@suse.cz>
1924 * predict.def: Update hitrates.
1926 2001-08-15 Richard Henderson <rth@redhat.com>
1928 * except.c (TYPE_HASH): Cast to size_t, not HOST_WIDE_INT.
1930 Tue Aug 14 17:30:59 2001 Jeffrey A Law (law@cygnus.com)
1932 * flow.c (commit_one_edge_insertion): Don't separate a LOOP_BEG
1933 note from its associated jump.
1935 2001-08-14 Ulrich Weigand <uweigand@de.ibm.com>
1937 * config/s390/linux64.h (CPP_PREDEFINES): Define __s390__
1938 also on 64-bit s390x targets.
1940 2001-08-14 Nick Clifton <nickc@cambridge.redhat.com>
1942 * config/arm/arm.c (arm_compute_initial_elimination_offset): New
1944 (arm_expand_prologue): Handled nested functions which take a
1945 variable argument list.
1946 * config/arm/arm.h (ARM_INITIAL_ELIMINATION_OFFSET): Replace
1947 macro with an invocation of
1948 arm_compute_initial_elimination_offset.
1949 * config/arm/arm-protos.h: Prototype
1950 arm_compute_initial_elimination_offset.
1952 2001-08-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1954 * doc/install.texi (Specific, avr): Fix markup.
1955 (Specific, c4x): Ditto.
1957 2001-08-14 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1959 * predict.c (dump_prediction): Change `bool' parameter to `int'.
1961 2001-08-14 Gabriel Dos Reis <gdr@codesourcery.com>
1963 * Makefile.in (OBJS): Add rtl-error.o
1964 (rtl-error.o): New rule.
1965 (diagnostic.o): Adjust dependency.
1966 diagnostic.c (file_and_line_for_asm, diagnostic_for_asm,
1967 error_for_asm, _fatal_insn, _fatal_insn_not_found,
1968 warning_for_asm): Move to...
1969 rtl-error.c: ...here. New file.
1971 2001-08-14 Richard Henderson <rth@redhat.com>
1973 * dwarf2out.c (dwarf2out_frame_finish): Never emit .eh_frame
1974 if USING_SJLJ_EXCEPTIONS.
1976 2001-08-14 Steve Ellcey <sje@cup.hp.com>
1978 * tlink.c (scan_linker_output): Check string for unsatisfied in
1979 addition to undefined and unresolved.
1981 2001-08-14 Graham Stott <grahams@redhat.com>
1983 * libgcc2.c (*): Replace EH_FRAME_SECTION with
1984 EH_FRAME_SECTION_NAME.
1986 Tue Aug 14 14:57:07 CEST 2001 Jan Hubicka <jh@suse.cz>
1988 * genattrtab.c (simplify_test_exp_in_temp): New function.
1989 (simplify_test_exp): Avoid explicit use of temporary obstack.
1990 (simplify_cond, insert_right_side, evaluate_eq_attr,
1991 simplify_and_tree, simplify_or_tree, eliminate_known_true):
1992 Use simplify_test_exp_in_temp.
1993 (optimize_attrs): Iterate until expression stabilizes.
1995 2001-08-13 Ulrich Weigand <uweigand@de.ibm.com>:
1997 * glimits.h: Remove the __LONG_MAX__ special case for s390x.
1998 * config/s390/linux64.h: Define __LONG_MAX__ in CPP_PREDEFINES.
2000 2001-08-13 Richard Henderson <rth@redhat.com>
2002 * config/arm/unknown-elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END): Remove.
2003 (DTOR_LIST_BEGIN, DTOR_LIST_END): Remove.
2004 * config/arm/conix-elf.h: Likewise.
2006 2001-08-13 Geoffrey Keating <geoffk@redhat.com>
2008 * config/svr4.h (LINK_SPEC): Don't do -Wl, here, it is done
2010 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
2012 * gcse.c (hash_scan_set): Expressions that are set as part of
2013 jump instructions are not available.
2015 2001-08-13 Ulrich Weigand <uweigand@de.ibm.com>
2017 * config/s390/s390.c (print_operand, s390_function_prologue,
2018 s390_va_start): Fixed HOST_WIDE_INT type mismatch.
2020 2001-08-13 Richard Henderson <rth@redhat.com>
2022 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): New.
2023 * defaults.h (EH_FRAME_SECTION_NAME): Respect it.
2024 * doc/tm.texi (Exception Region Output): Document it.
2026 2001-08-13 Geoffrey Keating <geoffk@redhat.com>
2028 * config/rs6000/sysv4.h (PREFERRED_DEBUGGING_TYPE): Use
2029 DWARF2 instead of stabs by default.
2031 2001-08-13 David Edelsohn <edelsohn@gnu.org>
2033 * config/rs6000/rs6000.c: Include optabs.h.
2035 2001-08-13 David Edelsohn <edelsohn@gnu.org>
2037 * config/rs6000/eabi.asm: Define 64-bit versions of FPR
2038 save/restore routines.
2039 * ginclude/ppc-asm.h: Define 64-bit FUNC_* macros.
2041 2001-08-13 Andreas Jaeger <aj@suse.de>
2043 * gcc.c (init_spec): Revert last patch by Theodore Papadopoulo,
2044 the english is correct.
2046 2001-08-13 Zack Weinberg <zackw@panix.com>
2048 * expr.h: Split out optab- and libfunc-related code to...
2049 * optabs.h, libfuncs.h: ... these new headers.
2051 * Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
2053 (various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
2055 * mkconfig.sh: Don't include insn-codes.h from config.h.
2057 * reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
2058 enum insn_code is available. Move reload_in_optab and
2059 reload_out_optab array declarations to optabs.h.
2060 * regmove.c (gen_add3_insn): Move to optabs.c, export from
2061 there, prototype in expr.h.
2062 * gencodes.c: Cleanup: zap global variables, don't use
2063 printf where puts will do, don't bother defining MAX_INSN_CODE
2064 which nothing uses, let CODE_FOR_nothing get its value implicitly.
2066 * genemit.c, genopinit.c: Include optabs.h in generated file.
2067 * genoutput.c: Include insn-codes.h in generated file.
2068 * builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
2069 expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
2070 reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
2071 config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
2072 config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
2073 config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
2075 * builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
2076 optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
2077 config/m88k/m88k.c, config/sparc/sparc.c:
2079 * reload.c: Include expr.h and optabs.h before reload.h.
2080 * config/alpha/alpha.c: Include tree.h before reload.h.
2081 * config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
2082 and reload.h in that order.
2083 * config/sparc/sparc.c: Include debug.h.
2084 * recog.c: Include insn-codes.h.
2086 2001-08-13 Andreas Jaeger <aj@suse.de>
2088 * config.gcc: Use t-slibgcc-elf to build shared libgcc_s on
2091 2000-08-13 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
2093 * dwarf2out.c (output_cfa_loc): Fix typo in comment.
2094 * gcc.c (init_spec): Fix typo in comment.
2095 * varasm.c (data_section): Fix typo in comment.
2097 Mon Aug 13 02:27:39 CEST 2001 Jan Hubicka <jh@suse.cz>
2099 * predict.c (dump_prediction): New argument "USED".
2100 (combine_predictions_for_insn): Determine the used heuristics,
2101 output the case no heuristic applied.
2102 * predict.def (PRED_DS_THEORY, PRED_NO_HEURISTIC): New.
2104 2001-08-13 Andreas Jaeger <aj@suse.de>
2106 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Don't capitalize
2109 2001-08-13 Kazu Hirata <kazu@hxi.com>
2111 * jump.c: Fix formatting.
2113 2001-08-13 Kazu Hirata <kazu@hxi.com>
2115 * config/h8300/h8300.md (zero_extendqihi2): Correct the insn
2118 2001-08-12 Geoffrey Keating <geoffk@redhat.com>
2120 * loop.c (check_dbra_loop): Use condjump_label to compute
2123 * rtl.h: Move prototypes of rtx_alloc and rtvec_alloc around
2124 to better document the files they're in.
2126 2001-08-12 Zack Weinberg <zackw@panix.com>
2128 * recog.h (struct insn_operand_data): Shrink 'mode' field
2131 2001-08-12 Kazu Hirata <kazu@hxi.com>
2133 * gcc.c: Fix comment formatting.
2134 * gccspec.c: Likewise.
2137 * genemit.c: Likewise.
2138 * gengenrtl.c: Likewise.
2139 * genrecog.c: Likewise.
2140 * gensupport.c: Likewise.
2141 * ggc-page.c: Likewise.
2142 * global.c: Likewise.
2143 * graph.c: Likewise.
2144 * ifcvt.c: Likewise.
2145 * integrate.c: Likewise.
2147 * libgcc2.c: Likewise.
2149 * mbchar.c: Likewise.
2150 * optabs.c: Likewise.
2151 * predict.c: Likewise.
2152 * prefix.c: Likewise.
2153 * profile.c: Likewise.
2154 * protoize.c: Likewise.
2156 * recog.c: Likewise.
2157 * regclass.c: Likewise.
2158 * regmove.c: Likewise.
2159 * reg-stack.c: Likewise.
2160 * reload1.c: Likewise.
2161 * resource.c: Likewise.
2162 * rtlanal.c: Likewise.
2165 2001-08-12 Kazu Hirata <kazu@hxi.com>
2167 * doc/tm.texi (ENCODE_SECTION_INFO): Add documentation on how
2168 a tree representing a constant is passed to the macro.
2170 2001-08-12 Richard Henderson <rth@redhat.com>
2172 * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor): New.
2173 (rs6000_elf_asm_out_destructor): New.
2174 * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): Remove.
2175 (DTORS_SECTION_ASM_OP): Remove.
2176 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
2177 (ASM_OUTPUT_INT): Don't hack TARGET_RELOCATABLE for constructors.
2179 2001-08-12 David Edelsohn <edelsohn@gnu.org>
2182 2001-08-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2183 * gcc.c (set_collect_gcc_options): New function, split out from
2185 Ignore elided switches.
2186 (do_spec_1): Invoke before executing command.
2187 (set_input): Export.
2188 Move declaration ...
2189 * gcc.h (set_input): ... here.
2190 * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
2193 2001-08-12 Richard Henderson <rth@redhat.com>
2195 * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Fix
2196 thinko wrt TARGET_RELOCATABLE.
2198 2001-08-12 Neil Booth <neil@daikokuya.demon.co.uk>
2200 * fix-header.c (cb_file_change): Update prototype.
2202 2001-08-11 Zack Weinberg <zackw@panix.com>
2204 * toplev.c (set_float_handler): Make static.
2205 * toplev.h: Don't prototype set_float_handler.
2207 * simplify-rtx.c: Don't include setjmp.h.
2208 (simplify_unary_real, simplify_binary_real, simplify_binary_is2orm1):
2210 (simplify_unary_operation, simplify_binary_operation): Use them,
2211 via do_float_handler.
2213 * fold-const.c: Don't include setjmp.h.
2214 (exact_real_inverse_1): New function.
2215 (exact_real_inverse): Use it, via do_float_handler.
2217 * varasm.c: Don't include setjmp.h.
2218 (assemble_real_1): New function.
2219 (assemble_real): Use it, via do_float_handler.
2220 Call internal_error if we get a trap here.
2222 * c-parse.in, cse.c, cselib.c, config/i386/i386.c,
2223 config/pj/pj.c, config/s390/s390.c: Don't include setjmp.h.
2225 2001-08-11 Zack Weinberg <zackw@panix.com>
2227 * defaults.h: Define PREFERRED_STACK_BOUNDARY to
2228 STACK_BOUNDARY if not already defined.
2230 * calls.c, function.c, reload1.c, explow.c: Don't default
2231 PREFERRED_STACK_BOUNDARY. Remove all #if/#ifdef on
2232 PREFERRRED_STACK_BOUNDARY and/or STACK_BOUNDARY.
2234 * explow.c (allocate_dynamic_stack_space): Change unsafe #if
2237 * doc/tm.texi: Document that STACK_BOUNDARY is required;
2238 clarify difference between it and PREFERRED_STACK_BOUNDARY.
2240 2001-08-11 Neil Booth <neil@daikokuya.demon.co.uk>
2242 * cppmacro.c (enter_macro_context): Push macro expansions even
2245 2001-08-11 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2247 * config/rs6000/rs6000.c: Include integrate.h to silence warning.
2248 (rs6000_elf_section_type_flags): Actually return a value.
2250 2001-08-11 Ulrich Weigand <uweigand@de.ibm.com>
2252 * s390.c, s390.h, s390.md, s390-protos.h, linux.h, t-linux:
2253 Clean up code: add missing comments and prototypes, fix warnings,
2254 remove obsolete code, fix spacing to conform to coding style.
2256 2001-08-11 Ulrich Weigand <uweigand@de.ibm.com>
2258 * config/s390/s390.c (targetm): Define TARGET_ASM_OPEN_PAREN
2259 and TARGET_ASM_CLOSE_PAREN.
2260 (regclass_map): CC register belongs to class NO_REGS.
2261 (legitimize_pic_address): Don't generate unnecessary moves
2262 (to avoid confusing loop optimization).
2263 (check_and_change_labels): Replace jump_long by indirect_jump.
2264 (s390_final_chunkify): Don't start a new literal pool on section
2265 switch in 64-bit code.
2266 (s390_va_start, s390_va_arg): Fixed incorrect sizes for 64-bit.
2268 * config/s390/s390.h (TARGET_SWITCHES): Renamed debug_arg to debug.
2269 (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE): Set to 64 (for 64-bit).
2270 (HARD_REGNO_MODE_OK, RETURN_IN_MEMORY): Support complex integer
2272 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Remove CC_REGS.
2273 (EH_RETURN_HANDLER_RTX): Fixed incorrect offset for 64-bit.
2274 (CONST_COSTS): Fixed incorrect costs.
2276 * config/s390/s390.md (fixuns_trunc[sd]f[sd]i2, udivsi3, umodsi3):
2277 Use emit_jump instead of emit_jump_insn (gen_jump).
2278 (divsi3, modsi3): Clobber low word of divmoddisi3 before shifting
2279 (to avoid confusing flow analysis).
2280 (tablejump, tablejump1, tablejump2): Removed. Replaced by casesi.
2281 (casesi, casesi_jump): New.
2282 (jump_long): Removed. Functionality merged into indirect_jump.
2283 (indirect_jump): Accept address_operand, not just register_operand.
2284 (cjump_long, icjump_long): Use same logic as indirect_jump.
2285 (builtin_setjmp_setup, builtin_setjmp_receiver, builtin_longjmp):
2286 Fixed broken setjmp/longjmp handling.
2287 (do_builtin_setjmp_setup): Removed.
2289 * config/s390/linux.h (ASM_OUTPUT_DOUBLE_INT): Work around
2290 broken GNU as versions that don't accept .quad with large
2291 negative values. Use hexadecimal output instead.
2292 (ASM_OUTPUT_ADDR_DIFF_ELT): Adapt to new casesi insn.
2293 (ASM_OPEN_PAREN, ASM_CLOSE_PAREN, FUNCTION_PROLOGUE,
2294 FUNCTION_EPILOGUE): Removed. Now in targetm.
2296 * config/s390/linux64.h (CALL_USED_REGISTERS): Add CC register.
2298 * config/s390/fixdfdi.h: Add missing copyright statement.
2299 Fix type conflicts on 64-bit. Add missing SFmode routines.
2301 * s390.c, s390.h, s390.md, linux.h, linux64.h: Fixed incorrect
2304 2001-08-11 Richard Henderson <rth@redhat.com>
2306 * rtl.h (REG_EH_RETHROW): Remove.
2307 * rtl.c (reg_note_name): Update.
2308 * combine.c (distribute_notes): Don't check for it.
2310 2001-08-11 Richard Henderson <rth@redhat.com>
2312 * combine.c (distribute_notes): Place REG_SETJMP.
2314 2001-08-11 Richard Henderson <rth@redhat.com>
2316 * doc/extend.texi (Arrays and pointers implementation): Discourage
2317 relying on sign-extension of pointers.
2319 2001-08-11 H.J. Lu <hjl@gnu.org>
2321 * config/mips/linux.h (EXTRA_SECTIONS): Remove in_ctors and
2323 (EXTRA_SECTION_FUNCTIONS): Remove DTORS_SECTION_ASM_OP and
2324 RDATA_SECTION_ASM_OP.
2326 2001-08-11 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2328 * doc/install.texi (Specific, c4x): Fix cross-reference to the
2329 main manual to work both for info and HTML versions.
2331 2001-08-11 Neil Booth <neil@daikokuya.demon.co.uk>
2332 Matt Kraai <kraai@alumni.carnegiemellon.edu>
2334 * cpphash.c (_cpp_destroy_hashtable): Use ht_destroy.
2335 * cpphash.h (CPP_IN_SYSTEM_HEADER): Fix.
2336 (struct cpp_pool): New member first.
2337 * cppinit.c (append_include_chain): Plug memory leaks.
2338 * cpplib.c (cpp_register_pragma, cpp_register_pragma_space):
2339 Allocate pragma structures from the (aligned) macro pool to
2340 avoid leaking memory.
2341 * cpplex.c (_cpp_init_pool, _cpp_free_pool): Use pool->first
2342 so we don't leak memory.
2343 * hashtable.c (ht_destroy): New.
2344 * hashtable.h (ht_destroy): New.
2346 2001-08-11 Neil Booth <neil@daikokuya.demon.co.uk>
2347 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2349 * c-lex.c (map): Make const.
2350 (cb_file_change): Update for callback passing a line map.
2351 Don't assume we have a previous map. Remove sanity check
2352 about popping too many files.
2353 * cpperror.c (print_location): Make map const.
2354 * cppfiles.c (stack_include_file): Update; line maps now hold sysp.
2355 (cpp_make_system_header): Similarly.
2356 (search_from): Similarly.
2357 (_cpp_execute_include): Don't remember where we came from.
2358 * cpphash.h (struct cpp_buffer): Remove return_to_line, sysp.
2359 (struct cpp_reader): Make map const.
2360 (CPP_IN_SYSTEM_HEADER, _cpp_do_file_change): Update.
2361 * cpplib.c (do_line): Update; line maps now hold sysp.
2362 (cpp_push_buffer): Similarly.
2363 (_cpp_do_file_change): Similarly; callback with map instead.
2364 (cpp_get_line_maps): Constify return value.
2365 (_cpp_pop_buffer): Update.
2366 * cpplib.h (struct cpp_file_change): Remove.
2367 (struct cpp_callbacks): Update.
2368 (cpp_get_line_maps): Constify return value.
2369 * cppmacro.c (_cpp_create_definition): Update.
2370 * cppmain.c (struct printer): Constify map.
2371 (maybe_print_line): Similarly.
2372 (print_line): Similarly. Deduce flags 1 and 2 here.
2373 (cb_file_change): Update.
2374 * line-map.c (free_line_maps): Warn regardless.
2375 (add_line_map): Return pointer to const. When passed NULL to_file
2376 with LC_LEAVE, use the obvious values for the return point so the
2377 caller doesn't have to figure them out.
2378 (lookup_line): Return pointer to const.
2379 (print_containing_files): Take pointer to const.
2380 * line-map.h (struct line_map): New members reason, sysp.
2381 (add_line_map): Return pointer to const.
2382 (lookup_line): Similarly.
2383 (print_containing_files): Take pointer to const.
2385 2001-08-10 Roman Zippel <zippel@linux-m68k.org>
2386 Richard Henderson <rth@redhat.com>
2388 * regmove.c (regmove_optimize): Avoid setting a register twice in
2391 2001-08-10 Richard Henderson <rth@redhat.com>
2393 * doc/extend.texi (Arrays and pointers implementation): Document
2394 behavior of pointer/integer conversion.
2396 2001-08-10 Ulrich Weigand <uweigand@de.ibm.com>
2398 * glimits.h (__LONG_MAX__): Add s390x as 64-bit architecture.
2400 2001-08-10 Richard Henderson <rth@redhat.com>
2402 * doc/extend.texi (C Implementation): New chapter.
2403 * doc/gcc.texi (Top): Link it in.
2405 2001-08-10 Andrew Cagney <ac131313@redhat.com>
2407 * doc/install.texi (Specific): Fix CVS merge botch.
2409 2001-08-10 Richard Henderson <rth@redhat.com>
2411 * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): Protect with
2412 ifdef CTOR_LIST_BEGIN instead of INIT_SECTION_ASM_OP.
2414 2001-08-10 Zack Weinberg <zackw@stanford.edu>
2416 * calls.c, function.c: Always define PREFERRED_STACK_BOUNDARY
2417 if not already defined. Remove all #ifdefs on STACK_BOUNDARY;
2418 this macro is now required.
2420 * cselib.c (cselib_process_insn), flow.c (propagate_block),
2421 loop.c (find_and_verify_loops), reload.c (reload): Check
2422 for rtx code of CALL_INSN, not CALL, when deciding if we
2423 need to check for REG_SETJMP note.
2425 * gcse.c (compute_hash_table, compute_store_table): Update
2426 the #ifdef NON_SAVING_SETJMP code to the new REG_SETJMP
2429 * config/avr/avr.c: Fix typo.
2430 * config/convex/convex.c (expand_movstr): Use adjust_address.
2431 * config/dsp16xx/dsp16xx.c: Define dsp16xx_compare_gen
2433 * config/dsp16xx/dsp16xx.md: Correct calls to replace_equiv_address.
2434 * config/elxsi/elxsi.c: Include tree.h, expr.h, regs.h, and flags.h.
2436 * config/elxsi/elxsi.h: Don't define Rmode (typo for Pmode?)
2437 Do define STACK_BOUNDARY.
2438 * config/i370/i370.c: Include expr.h.
2439 * config/i860/sysv3.h, config/i860/sysv4.h, config/m32r/m32r.h,
2440 config/pa/som.h, config/v850/v850.h: Take in_ctors and
2441 in_dtors out of EXTRA_SECTIONS; take CTORS_SECTION_FUNCTION
2442 and DTORS_SECTION_FUNCTION out of EXTRA_SECTION_FUNCTIONS.
2443 * config/m88k/m88k.c: Include c-tree.h after expr.h.
2444 * config/pdp11/pdp11.c: Include expr.h and toplev.h.
2445 * config/romp/romp.c: Include expr.h after tree.h.
2447 (output_fpop): Use xmalloc, not oballoc.
2448 * config/we32k/we32k.c: Include expr.h.
2450 2001-08-10 Kazu Hirata <kazu@hxi.com>
2452 * config/h8300/h8300.h: Fix formatting.
2454 2001-08-08 Jason Merrill <jason_merrill@redhat.com>
2456 * c-common.h (RETURN_NULLIFIED_P): Lose.
2457 * c-semantics.c (genrtl_return_stmt): Don't check it.
2459 2001-08-10 Richard Sandiford <rsandifo@redhat.com>
2461 * config/mips/mips.c (mips_add_large_offset_to_sp): New function.
2462 (mips_annotate_frame_insn): New function.
2463 (mips_emit_frame_related_store): New function.
2464 (save_restore_insns): Don't mark instructions that set up the base
2465 registers as frame-related. Add REG_FRAME_RELATED_EXPR notes to
2466 the store instructions instead.
2467 (mips_expand_prologue): If the stack size is moved into a temporary
2468 register, do not mark that move as frame-related. Add a
2469 REG_FRAME_RELATED_EXPR note to the stack adjustment instruction.
2471 2001-08-10 Richard Sandiford <rsandifo@redhat.com>
2473 * config/mips/mips.c (save_restore_insns): Don't mark the RA's
2474 stack slot as unchanging if current_function_calls_eh_return.
2476 2001-08-10 Richard Sandiford <rsandifo@redhat.com>
2478 * config/mips/mips.md (reload_incc): Use HARD_REGNO_NREGS to
2479 access the second half of the TFmode scratch operand.
2481 2001-08-10 Anthony Green <green@redhat.com>
2483 * java/class.c (emit_register_classes): Conditionalize code on
2486 2001-08-10 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2488 * doc/install.texi (Specific, avr): Fix cross-reference to the
2489 main manual to work both for info and HTML versions.
2491 2001-08-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
2493 * stmt.c (expand_null_return_1): Remove code to generate simple returns
2494 and "use_goto" argument.
2495 (expand_null_return, expand_value_return): Update all callers.
2496 * function.c (expand_function_end): Remove code to generate simple
2498 * config/vax/vax.md (epilogue): New expander for function return.
2499 * doc/md.texi (epilogue): Remove "if defined".
2501 2001-08-09 Zack Weinberg <zackw@stanford.edu>
2503 * Makefile.in: Partially revert my previous change:
2504 put -DGENERATOR_FILE back in HOST_CFLAGS, take it out
2505 of the hashtab.o and safe-ctype.o rules.
2507 2001-08-09 Richard Henderson <rth@redhat.com>
2509 * Makefile.in (MAYBE_USE_COLLECT2): Remove; purge all uses.
2510 (USE_COLLECT2): Remove duplicate definition.
2511 * config.gcc (a29k-udi, a29k-wrs-vxworks) [tm_file]: Remove a29k/udi.h.
2512 (use_collect2): Remove dead code.
2513 * configure.in (use_collect2): Remove will_use_collect2 and
2514 maybe_use_collect2; add USE_COLLECT2 to host_xm_defines and xm_defines.
2515 * configure: Rebuild.
2517 * target.h (targetm.asm_out.constructor): New.
2518 (targetm.asm_out.destructor, targetm.have_ctors_dtors): New.
2519 * target-def.h (TARGET_ASM_CONSTRUCTOR): New.
2520 (TARGET_ASM_DESTRUCTOR, TARGET_HAVE_CTORS_DTORS): New.
2521 * varasm.c (in_ctors, in_dtors): New.
2522 (assemble_constructor, assemble_destructor): Remove.
2523 (default_stabs_asm_out_destructor): New.
2524 (default_named_section_asm_out_destructor): New.
2525 (dtors_section, default_dtor_section_asm_out_destructor): New.
2526 (default_stabs_asm_out_constructor): New.
2527 (default_named_section_asm_out_constructor): New.
2528 (ctors_section, default_ctor_section_asm_out_constructor): New.
2529 * output.h: Update declarations.
2530 * c-decl.c (c_expand_body): Use target hooks instead of
2531 assemble_constructor and assemble_destructor.
2532 * profile.c (output_func_start_profiler): Likewise.
2533 * objc/objc-act.c (finish_objc): Likewise.
2534 (build_module_descriptor): Tidy. Set TREE_PUBLIC properly
2535 for the constructor.
2536 * objc/Make-lang.in (objc-act.o): Depend on TARGET_H.
2538 * crtstuff.c (CTORS_SECTION_ASM_OP): Don't define.
2539 (DTORS_SECTION_ASM_OP): Likewise.
2540 (__CTOR_LIST__): Use attribute section when possible.
2541 (__DTOR_LIST__, __CTOR_END__, __DTOR_END__): Likewise.
2543 * defaults.h (EH_FRAME_SECTION_NAME): Don't depend on
2544 ASM_OUTPUT_CONSTRUCTOR.
2546 * config/darwin.c (machopic_asm_out_constructor): New.
2547 (machopic_asm_out_destructor): New.
2548 * config/darwin-protos.h: Update declarations.
2549 * config/darwin.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
2550 (ASM_OUTPUT_DESTRUCTOR): Remove.
2551 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
2552 * config/nextstep.c (nextstep_asm_out_constructor): New.
2553 (nextstep_asm_out_destructor): New.
2554 * config/nextstep.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
2555 (ASM_OUTPUT_DESTRUCTOR): Remove.
2556 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
2557 * config/nextstep21.h: Undef TARGET_ASM_*STRUCTOR instead of
2558 ASM_OUTPUT_*STRUCTOR.
2559 * config/i386/aix386ng.h: Likewise.
2561 * config/elfos.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Remove.
2562 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): No ctors/dtors.
2563 (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
2564 (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
2565 * config/lynx.h: Likewise.
2566 * config/netware.h: Likewise.
2567 * config/psos.h: Likewise.
2568 * config/alpha/alpha-interix.h: Likewise.
2569 * config/alpha/elf.h: Likewise.
2570 * config/arc/arc.h: Likewise.
2571 * config/arm/aof.h: Likewise.
2572 * config/arm/coff.h: Likewise.
2573 * config/arm/elf.h: Likewise.
2574 * config/c4x/c4x.h: Likewise.
2575 * config/h8300/h8300.h: Likewise.
2576 * config/i386/cygwin.h: Likewise.
2577 * config/i386/djgpp.h: Likewise.
2578 * config/i386/i386-coff.h: Likewise.
2579 * config/i386/i386-interix.h: Likewise.
2580 * config/i386/sco5.h: Likewise.
2581 * config/i386/vsta.h: Likewise.
2582 * config/i386/win32.h: Likewise.
2583 * config/i960/i960-coff.h: Likewise.
2584 * config/ia64/sysv4.h: Likewise.
2585 * config/m68hc11/m68hc11.h: Likewise.
2586 * config/m68k/coff.h: Likewise.
2587 * config/m68k/mot3300.h: Likewise.
2588 * config/m88k/m88k.h: Likewise.
2589 * config/mcore/mcore-pe.h: Likewise.
2590 * config/mcore/mcore.h: Likewise.
2591 * config/mips/elf.h: Likewise.
2592 * config/mips/elf64.h: Likewise.
2593 * config/mips/iris6.h: Likewise.
2594 * config/pa/pa64-hpux.h: Likewise.
2595 * config/rs6000/sysv4.h: Likewise.
2596 * config/sh/sh.h: Likewise.
2597 * config/sparc/litecoff.h: Likewise.
2599 * config/svr3.h (CTORS_SECTION_ASM_OP): Remove.
2600 (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
2601 (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
2602 * config/1750a/1750a.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
2603 (ASM_OUTPUT_DESTRUCTOR): Remove.
2604 * config/a29k/a29k.c: Move include of tree.h.
2605 * config/a29k/udi.h: Delete file.
2606 * config/alpha/alpha.c (vms_asm_out_constructor): New.
2607 (vms_asm_out_destructor): New.
2608 * config/alpha/vms.h (EXTRA_SECTIONS): No ctors/dtors.
2609 (EXTRA_SECTION_FUNCTIONS): Likewise.
2610 (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
2611 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
2612 * config/c4x/c4x.c: Move include of tree.h.
2613 * config/clipper/clipper.c (clix_asm_out_constructor): New.
2614 (clix_asm_out_destructor): New.
2615 * config/clipper/clix.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
2616 (ASM_OUTPUT_DESTRUCTOR): Remove.
2617 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
2618 * config/i386/aix386.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
2619 (TARGET_ASM_CONSTRUCTOR): New.
2620 * config/i386/i386.c (ix86_svr3_asm_out_constructor): New.
2621 (sco_asm_out_constructor): New.
2622 * config/i386/sco5.h (TARGET_ASM_CONSTRUCTOR): New.
2623 * config/i386/svr3gas.h: Remove stack grows up code.
2624 Remove code duplicated from i386/sysv3.h.
2625 (TARGET_ASM_CONSTRUCTOR): New.
2626 (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
2627 (DTORS_SECTION_FUNCTION, CTORS_SECTION_FUNCTION): Remove.
2628 * config/i386/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
2629 (TARGET_ASM_CONSTRUCTOR): New.
2630 * config/m68hc11/m68hc11.c (m68hc11_asm_out_constructor): New.
2631 (m68hc11_asm_out_destructor): New.
2632 * config/m68hc11/m68hc11.h (TARGET_ASM_CONSTRUCTOR): New.
2633 (TARGET_ASM_DESTRUCTOR): New.
2634 * config/m68k/auxgas.h: Don't undef ASM_OUTPUT_*STRUCTOR.
2635 * config/m68k/dpx2.h: Properly undef all the bits inherited from
2636 config/svr3.h pertaining to section manipulation.
2637 * config/m68k/dpx2g.h: Remove #if 0 code.
2638 * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): New.
2639 * config/m68k/tower-as.h (ASM_OUTPUT_SOURCE_LINE): Fix typo.
2640 (ASM_OUTPUT_CONSTRUCTOR): Remove.
2641 (TARGET_ASM_CONSTRUCTOR): New.
2642 * config/m88k/m88k.c (m88k_layout_frame): Don't use assign_stack_local.
2643 (m88k_svr3_asm_out_constructor): New.
2644 (m88k_svr3_asm_out_destructor): New.
2645 * config/m88k/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
2646 (ASM_OUTPUT_DESTRUCTOR): Remove.
2647 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
2648 * config/mips/mips.h: Remove #if 0 ASM_OUTPUT_*STRUCTOR code.
2649 * config/rs6000/aix.h: Likewise.
2650 * config/mips/rtems64.h: Don't undef removed constructor related bits.
2651 * config/mips/vxworks.h: Likewise.
2652 * config/rs6000/lynx.h: Likewise.
2653 * config/sh/elf.h: Likewise.
2654 * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): New.
2655 (DTORS_SECTION_ASM_OP): New.
2656 * config/sparc/linux64.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
2657 (ASM_OUTPUT_DESTRUCTOR): Remove.
2658 * config/sparc/sol2-sld-64.h: Likewise.
2659 * config/vax/vax.c (vms_asm_out_constructor): New.
2660 (vms_asm_out_destructor): New.
2661 * config/vax/vms.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
2662 (ASM_OUTPUT_DESTRUCTOR): Remove.
2663 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
2665 * doc/tm.texi (@node Initialization): Update.
2667 2001-08-09 Richard Henderson <rth@redhat.com>
2669 * config/alpha/crtbegin.asm (__JCR_LIST__): New.
2670 (__do_global_dtors_aux): Use gp-relative static data to avoid
2671 one dynamic relocation.
2672 (__do_frame_setup): Register Java classes.
2673 * config/alpha/crtend.asm (__JCR_END__): New.
2675 2001-08-09 Zack Weinberg <zackw@stanford.edu>
2677 * Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
2678 (CONFIG_H, TCONFIG_H, TM_P_H): Update.
2679 (GEN, STAGESTUFF): Add new files.
2680 (insn-constants.h, s-constants, tm-preds.h, s-preds,
2681 genconstants, genpreds, genconstants.o, genpreds.o): New rules.
2682 (hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
2683 * mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
2684 as well as insn-codes.h and insn-flags.h in config.h; and no
2685 extra headers in tconfig.h and hconfig.h.
2687 * gencodes.c: Eliminate code to generate predicate declarations
2688 or #defines for md-file constants.
2689 * genconstants.c, genpreds.c: New files.
2691 * i386.md: Re-order guard expressions such that TARGET_64BIT
2692 comes first, when this permits better optimization. Add
2693 TARGET_64BIT to more x86-64 patterns. Add comment explaining
2694 why this is desirable.
2696 2001-08-09 Jakub Jelinek <jakub@redhat.com>
2698 * config/ia64/fde-glibc.c: Require glibc 2.2.4+ headers.
2699 (find_fde_for_dso): Remove.
2700 (_Unwind_IteratePhdrCallback): New.
2701 (_Unwind_FindTableEntry): Use dl_iterate_phdr.
2702 * config/ia64/crtbegin.asm (__ia64_app_header): Remove.
2704 Thu Aug 9 11:30:20 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2706 * expr.c (emit_single_push_insn): Only exists ifdef PUSH_ROUNDING.
2707 (move_by_pieces_1): If would call it, abort if no PUSH_ROUNDING.
2709 2001-08-09 Graham Stott <grahams@redhat.com>
2711 * sched-vis.c (MAX_VISUAL_NO_UNIT): Define.
2712 (vis_no_unit): Use it.
2713 (visualize_no_unit): Add the insn only if room exists.
2715 2001-08-09 Graham Stott <grahams@redhat.com>
2717 * predict.c (estimate_probability): Replace magic numbers with
2718 appropriate enumeration.
2720 2001-08-09 Graham Stott <grahams@redhat.com>
2722 * cppexp.c (EXTRACT_PRIO): Uppercase and parenthsize macro
2724 (EXTRACT_FLAGS): Likewise.
2726 2001-08-09 Aldy Hernandez <aldyh@redhat.com>
2728 * config/mips/mips.c (mips_legitimate_address_p): Check for
2729 CONST_INT in last patch.
2731 2001-08-08 Anthony Green <green@redhat.com>
2733 * java/class.c (emit_register_classes): Use assemble_jcr if
2734 possible. Keep the original mechanism as a fallback.
2735 * defaults.h (JCR_SECTION_NAME): Define if we have named section
2736 and weak symbol support.
2737 * crtstuff.c (__JCR_LIST__): Define.
2738 (__JCR_END__): Define.
2739 (_Jv_RegiserClasses): Define weak symbol if possible.
2740 (__do_global_ctors_aux): Register classes for ELF targets with
2741 weak symbol support.
2743 2001-08-08 Kazu Hirata <kazu@hxi.com>
2745 * dbxout.c: Fix comment formatting.
2746 * dependence.c: Likewise.
2748 * diagnostic.c: Likewise.
2749 * dominance.c: Likewise.
2750 * doprint.c: Likewise.
2751 * dwarf2out.c: Likewise.
2752 * dwarfout.c: Likewise.
2753 * emit-rtl.c: Likewise.
2754 * except.c: Likewise.
2755 * explow.c: Likewise.
2756 * expmed.c: Likewise.
2759 * fold-const.c: Likewise.
2760 * function.c: Likewise.
2762 2001-08-08 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2764 * global.c (retry_global_alloc): Avoid shadowing allocno.
2766 2001-08-08 Mark Mitchell <mark@codesourcery.com>
2768 * except.c (remove_fixup_regions): Fix typo.
2770 2001-08-08 Jan van Male <jan.vanmale@fenk.wau.nl>
2772 * emit-rtl.c (adjust_address, adjust_address_nv): Cast offset to
2773 unsigned HOST_WIDE_INT to avoid warning.
2774 * final.c (final): Cast INSN_UID to unsigned to avoid warning.
2775 * flow.c (set_block_for_new_insns): Likewise.
2777 Wed Aug 8 21:08:14 CEST 2001 Jan Hubicka <jh@suse.cz>
2779 * sibcall.c (return_value_pseudo): New static variable.
2780 (skip_copy_to_return_value): Handle return_value_pseudo.
2781 (call_ends_block_p): Ensure that return_value_pseudo is set.
2782 (optimize_sibling_and_tail_recursive_call): Discover the
2783 load of pseudo return value in alternate exit block.
2785 Wed Aug 8 21:06:43 CEST 2001 Jan Hubicka <jh@suse.cz>
2787 * calls.c (ECF_ALWAYS_RETURN): New constant.
2788 (emit_call_1): Add REG_ALWAYS_RETURN note if needed.
2789 (expand_call): Use LCF_ALWAYS_RETURN for __bb_fork_func.
2790 (emit_library_call_value_1): Handle LCT_ALWAYS_RETRUN.
2791 * flow.c (need_fake_edge_p): Handle REG_ALWAYS_RETURN.
2792 * rtl.c (reg_note_name): New name.
2793 * rtl.h (enum reg_note): Add REG_ALWAYS_RETURN.
2795 2001-08-07 Aldy Hernandez <aldyh@redhat.com>
2797 * config/mips/mips.c (mips_legitimate_address_p): Limit "la" addresses.
2799 2001-08-08 Jason Merrill <jason_merrill@redhat.com>
2801 * alias.c (get_alias_set): Return a previously calculated
2802 alias set for a VAR_DECL.
2803 * function.c (gen_mem_addressof): Calculate the alias set before
2806 Wed Aug 8 18:44:37 CEST 2001 Jan Hubicka <jh@suse.cz>
2808 * predict.def: Set hitrates according our experimental run.
2810 Wed Aug 8 18:01:58 CEST 2001 Jan Hubicka <jh@suse.cz>
2812 * i386.h (HARD_REGNO_RENAME_OK): New macro.
2814 2001-08-08 H.J. Lu <hjl@gnu.org>
2816 * config/mips/mips.c (mips_unique_section): New. Copied from
2819 * config/mips/mips-protos.h (mips_unique_section): New
2822 * config/mips/elf.h (UNIQUE_SECTION): Use mips_unique_section.
2824 * config/mips/little.h: New. Generic little endian mips
2825 targets. Only mips*-*-linux* is converted to use it so far.
2827 * config/mips/linux.h: Include "gofast.h" and "mips/mips.h".
2828 (WCHAR_TYPE): Defined
2829 (WCHAR_TYPE_SIZE): Likewise.
2830 (INIT_SUBTARGET_OPTABS): Likewise.
2831 (BSS_SECTION_ASM_OP): Likewise.
2832 (SBSS_SECTION_ASM_OP): Likewise.
2833 (ASM_OUTPUT_ALIGNED_BSS): Likewise.
2834 (ASM_DECLARE_OBJECT_NAME): Likewise.
2835 (UNIQUE_SECTION): Likewise.
2836 (EXTRA_SECTIONS): Likewise.
2837 (ASM_OUTPUT_CONSTRUCTOR): Likewise.
2838 (ASM_OUTPUT_DESTRUCTOR): Likewise.
2839 (ASM_OUTPUT_DEF): Likewise.
2840 (HANDLE_SYSV_PRAGMA): Removed.
2841 (NO_IMPLICIT_EXTERN_C): Likewise.
2842 (TARGET_MEM_FUNCTIONS): Likewise.
2843 (STARTFILE_SPEC): Likewise.
2844 (ENDFILE_SPEC): Likewise.
2845 (LIB_SPEC): Likewise.
2846 (INVOKE__main): Likewise.
2847 (CTOR_LIST_BEGIN): Likewise.
2848 (CTOR_LIST_END): Likewise.
2849 (DTOR_LIST_BEGIN): Likewise.
2850 (DTOR_LIST_END): Likewise.
2851 (SET_ASM_OP): Likewise.
2852 (ASM_OUTPUT_SOURCE_LINE): Likewise.
2853 (ASM_OUTPUT_DEF): Likewise.
2854 (ASM_OUTPUT_IDENT): Likewise.
2856 * config/mips/mips.h (ASM_SPEC): Undefine before define.
2857 (CPLUSPLUS_CPP_SPEC): Likewise.
2858 (ASM_APP_ON) Redefine only if not defined.
2859 (ASM_APP_OFF): Likewise.
2860 (ASM_OUTPUT_SOURCE_LINE): Likewise.
2861 (ASM_OUTPUT_IDENT): Likewise.
2863 * config.gcc: Update tm_file for Linux/mips.
2865 2001-08-08 Bernd Schmidt <bernds@redhat.com>
2867 * cselib.c (cselib_record_sets): If insn is predicated, turn
2868 sources into IF_THEN_ELSEs.
2870 * config/ia64/ia64.md (cond_opsi2_internal, cond_opsi2_internal_b):
2871 Turn into define_insn_and_split.
2873 * sched-deps.c: Include "cselib.h".
2874 (add_insn_mem_dependence, sched_analyze_1, sched_analyze_2):
2875 Use cselib to turn memory addresses into VALUEs.
2876 (sched_analyze): Call cselib_init/cselib_finish if necessary.
2877 * sched-int.h (struct sched_info): New member USE_CSELIB.
2878 * sched-ebb.c (ebb_sched_info): Initialize it.
2879 * sched-rgn.c (rgn_sched_info): Likewise.
2880 * Makefile.in (sched-deps.o): Update dependencies.
2882 * cselib.h (cselib_subst_to_values): Declare.
2883 * cselib.c (cselib_subst_to_values): No longer static. Allow MEMs
2884 that have no value and autoincs to be handled by generating a new
2887 2001-08-08 Graham Stott <grahams@redhat.com>
2889 * final.c (shorten_branches): Update the INSN_ADDRESSES of insns
2890 within fixed length SEQUENCE.
2892 2001-08-08 Graham Stott <grahams@redhat.com>
2894 * diagnostic.h (diagnostic_format_decoder): Parenthesize macro parameter.
2895 (diagnostic_prefixing_rule): Likewise.
2896 (diagnostic_line_cutoff): Likewise.
2897 (diagnostic_kind_count): Likewise.
2899 2001-08-08 Graham Stott <grahams@redhat.com>
2901 * alias.c (find_base_decl): Delete redundent assignment.
2903 2001-08-08 Graham Stott <grahams@redhat.com>
2905 * dependence.c (INDEX_LIMIT_CHECK): Uppercase macro parameter.
2906 (abs): Uppercase and paranthesize macro parameter.
2907 (MEM_DEPENDENCY): Add whitespace.
2909 2001-08-08 Graham Stott <grahams@redhat.com>
2911 * config/mips/mips.c (mips_legitimate_address_p): Fix enable checking
2912 failure check for CONST_INT
2914 2001-08-08 Graham Stott <grahams@redhat.com>
2916 * flow.c (back_edge_of_syntactic_loop_p): Add whitespace.
2917 (libcall_dead_p): Likewise.
2919 (mark_used_regs): Constify fmt.
2920 (find_use_as_address): Likewise.
2922 2001-08-08 Graham Stott <grahams@redhat.com>
2924 * c-typeck.c (RESTORE_SPELLING_DEPTH): Uppercase and parenthesize macro
2927 2001-08-08 Graham Stott <grahams@redhat.com>
2929 * combine.c (combine_simplify_rtx): Update comment and
2930 remove erroneous test.
2932 2001-08-07 Neil Booth <neil@daikokuya.demon.co.uk>
2934 * cppinit.c (cpp_finish): Pop the final buffer without comment.
2935 * cpplex.c (_cpp_lex_token): Don't pop the final buffer; and
2936 take care to avoid multiple no-newline at EOF warnings in that
2939 Tue Aug 7 22:18:06 CEST 2001 Jan Hubicka <jh@suse.cz>
2941 * calls.c (expand_call): Do not emit INSN_SETJMP note.
2942 (emit_library_call_value_1): Likewise.
2943 (emit_call_1): Emit REG_SETJMP note.
2944 * cse.c (cse_end_of_basic_block): Use REG_SETJMP instead
2946 * cselib.c (cselib_process_insn): Likewise.
2947 * flow.c (propagate_block): Likewise.
2948 * loop.c (find_and_verify_loops): Likewise.
2949 * reload.c (find_equiv_regs): Likewise.
2950 * reload1.c (reload): Likewise.
2951 * resource.c (mark_referenced_resources,
2952 mark_set_resources): Likewise.
2953 * sched-deps (sched_analyze_insn, sched_analyze): Likewise.
2954 * final.c (final_scan_insn): Remove NOTE_INSN_SETJMP.
2955 * haifa-sched.c (unlink_other_notes): Likewise.
2956 (reemit_notes): Likewise.
2957 * sched-ebb.c (sched_ebb): Likewise.
2958 * sched-rgc.c (sched_region): Likewise.
2959 * rtl.c (note_insn_name): Likewise.
2960 (reg_note_name): Add REG_SETJMP
2961 * rtl.h (reg_note): Add REG_SETJMP.
2962 (insn_note): Remove NOTE_INSN_SETJMP.
2964 * profile.c (branch_prob): Add fake edges for setjmp.
2966 2001-08-07 Daniel Jacobowitz <drow@mvista.com>
2968 * config.gcc: Quote target_cpu_default2 correctly for
2969 powerpc*-*-* targets.
2971 2001-08-07 Neil Booth <neil@daikokuya.demon.co.uk>
2973 * cpplib.h, line-map.h: Update comments.
2974 * cppmain.c (printer_init): Move inline.
2975 (maybe_print_line, print_line): Take a map pointer.
2976 (cb_ident, cb_define, cb_undef, cb_include, cb_def_pragma): Update.
2977 (cb_file_change): Don't use prior value of print.map.
2979 2001-08-07 David Edelsohn <edelsohn@gnu.org>
2981 * doc/install.texi: Document fine-grained multilib configuration.
2983 Tue Aug 7 16:52:54 CEST 2001 Jan Hubicka <jh@suse.cz>
2985 * rtlanal.c (find_first_parameter_load): Call note_stores
2986 only on the instructions.
2988 Tue Aug 7 14:56:16 CEST 2001 Jan Hubicka <jh@suse.cz>
2990 * alias.c (nonlocal_mentioned_p):
2991 Rename CONST_CALL_P to CONST_OR_PURE_CALL_P
2992 * calls.c (emit_call_1): Likewise.
2993 * cse.c (cse_insn, invalidate_skipped_block): Likewise.
2994 * cselib.c (cselib_process_insn): Likewise.
2995 * df.c (df_insns_modify): Likewise.
2996 * flow.c (need_fake_edge_p): Likewise.
2997 (propagate_one_insn): Likewise.
2998 * haifa-sched.c (reemit_notes): Likewise.
2999 * integrate.c (copy_insn_list): Likewise.
3000 * jump.c (delete_prior_computation): Likewise.
3001 * local-alloc.c (validate_equiv_mem): Likewise.
3002 * loop.c (scan_loop): Likewise.
3003 * predict.c (estimate_probability): Likewise.
3004 * reload.c (reload): Likewise.
3005 * sched-deps (sched_analyze): Likewise.
3006 * rtl.h (CONST_CALL_P): rename to CONST_OR_PURE_CALL_P.
3007 * gcse.c (compute_hash_table): Likewise.
3008 (mark_call): Likewise.
3009 (store_killed_in_insn): Likewise.
3011 2001-08-07 Jason Merrill <jason_merrill@redhat.com>
3013 * c-semantics.c (make_rtl_for_local_static): Use DECL_RTL_SET_P.
3015 2001-08-06 Richard Henderson <rth@redhat.com>
3017 * varasm.c (assemble_gc_entry): Remove.
3018 * output.h: Likewise.
3020 2001-08-06 Richard Henderson <rth@redhat.com>
3022 * varasm.c (assemble_constructor): Take a symbol_ref and a
3023 priority instead of a bare string. Move priority handling
3024 here from cp/decl2.c.
3025 * output.h: Update decls.
3027 * c-decl.c (c_expand_body): Update calls to assemble_constructor
3028 and assemble_destructor.
3029 * profile.c (output_func_start_profiler): Likewise.
3030 * objc/objc-act.c (finish_objc): Likewise.
3031 (build_module_descriptor): Return the symbol not the symbol name.
3033 2001-08-06 David Edelsohn <edelsohn@gnu.org>
3035 * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): Add whitespace.
3036 * config/rs6000/linux64.h (RS6000_MCOUNT): Define.
3037 ({SAVE,RESTORE}_FP_{PREFFIX,SUFFIX}): Define.
3038 * config/rs6000/rs6000.h (ASM_OUTPUT_DOUBLE_INT): Remove whitespace.
3039 * config/rs6000/sysv4.h (DOUBLE_INT_ASM_OP): Add whitespace.
3040 * config/rs6000/xcoff.h (DOUBLE_INT_ASM_OP): Add whitespace.
3042 2001-08-06 Neil Booth <neil@daikokuya.demon.co.uk>
3044 * cpperror.c (print_containing_files): Moved to line-map.c.
3045 (print_location): line-map.c handles re-listing or otherwise.
3046 * cpphash.h (struct lexer_state): Remove next_bol.
3047 (struct cpp_buffer): Remove include_stack_listed.
3048 * cpplib.c (do_line, cpp_push_buffer, _cpp_pop_buffer):
3049 Remove faked buffer handling.
3050 (_cpp_do_file_change): Tweak.
3051 * cpplib.h (enum cpp_buffer_type): Remove BUF_FAKE.
3052 * cppmain.c (struct printer): Remove filename.
3053 (print_line, cb_file_change): Update accordingly.
3054 * line-map.c: Include intl.h.
3055 (init_line_maps): Initialize last_listed.
3056 (free_line_maps): Sanity check, warn if ENABLED_CHECKING.
3057 (add_line_map): Sanity check inputs, warn if ENABLED_CHECKING.
3058 (print_containing_files): New.
3059 * line-map.h (struct line_maps): New member last_listed.
3060 (print_containing_files, INCLUDED_FROM): New.
3061 * Makefile.in: Update.
3062 * po/POTFILES.in: Add line-map.c.
3064 2001-08-06 Richard Henderson <rth@redhat.com>
3066 * except.c (convert_from_eh_region_ranges_1): Never mark
3067 USE or CLOBBER insns as throwing.
3069 * expr.c (store_constructor): Don't clobber memory targets.
3071 2001-08-06 Andreas Jaeger <aj@suse.de>
3073 * profile.c (branch_prob): Remove unused variable insn.
3075 * Makefile.in (local-alloc.o): Add dependency on except.h.
3077 * local-alloc.c: Include except.h for can_throw_internal prototype.
3079 2001-08-06 Richard Henderson <rth@redhat.com>
3081 * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): New.
3082 * function.c (expand_main_function): Implement it.
3083 * doc/tm.texi: Document it.
3085 2001-08-06 Stan Shebs <shebs@apple.com>
3087 * doc/install.texi: Document powerpc-*-darwin* details.
3089 2001-08-06 Daniel Berlin <dan@cgsoftware.com>
3091 * config/rs6000/aix.h (CPP_CPU_SPEC): Move back to rs6000.h
3092 (ASM_CPU_SPEC): Move back to rs6000.h
3093 #undef CPP_DEFAULT_SPEC and ASM_DEFAULT_SPEC before redefining them.
3095 * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): New macro.
3097 * config/rs6000/linux.h: Remove vtable thunks stuff we accidently
3100 * config/rs6000/linux64.h: Ditto.
3102 * config/rs6000/rs6000.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
3103 to here. Define default ASM_DEFAULT_SPEC and CPP_DEFAULT SPEC to
3106 Remove accidently readded definitions of FUNCTION_PROLOGUE,
3107 FUNCTION_EPILOGUE, ASM_OPEN_PAREN, ASM_CLOSE_PAREN
3109 * config/rs6000/sysv4.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
3112 2001-08-05 Richard Henderson <rth@redhat.com>
3114 * local-alloc.c (update_equiv_regs): Do not move insns that
3117 2001-08-05 Jan Hubicka <jh@suse.cz>
3119 * Makefile.in (reload1.o): Add dedendancy on except.h
3120 * basic-block.h (purge_all_dead_edges, purge_dead_edges): Update
3122 * flow.c (purge_dead_edges, purge_all_dead_edges): Return bool
3123 indicating wehther edges has been cleaned up.
3124 * reload1.c: Inlucde except.h
3125 (fixup_abnormal_edges): Accept deleted insns.
3126 * toplev.c (rest_of_compilation): Purge dead edges unconditionally
3129 2001-08-06 Neil Booth <neil@daikokuya.demon.co.uk>
3131 * cpplib.c (do_line): Correct line number after pop_buffer.
3133 2001-08-05 Neil Booth <neil@daikokuya.demon.co.uk>
3135 PR preprocessor/3824
3136 * line-map.c: Update comments.
3137 * line-map.h: Update comments.
3138 * tradcif.y: Don't consider large numbers unsigned.
3140 2001-08-05 Neil Booth <neil@daikokuya.demon.co.uk>
3142 PR preprocessor/3081
3143 * c-lex.c (map): New.
3144 (cb_file_change): Update map and use it.
3145 (cb_def_pragma, cb_define, cb_undef): Use map and line.
3146 (c_lex): Update to use map.
3147 * cpperror.c (print_location): Move to using logical line numbers.
3148 * cppfiles.c (stack_include_file): Update for new _cpp_do_file_change.
3149 (cpp_make_system_header): Similarly.
3150 (_cpp_execute_include): Stop line numbering hacks. Store the
3151 line we will return to.
3152 * cpphash.h (CPP_BUF_LINE): Remove.
3153 (struct cpp_buffer): Remove lineno and pseudo_newlines.
3154 Add map and return_to_line.
3155 (_cpp_do_file_change): Update.
3156 * cppinit.c (cpp_start_read): Update line kludge.
3157 * cpplex.c (handle_newline): Don't update lineno and pseudo_newlines.
3158 (trigraph_ok): Use logical line numbers for diagnostics.
3159 (skip_block_comment): Likewise.
3160 (skip_whitespace): Likewise.
3161 (skip_line_comment): Use pfile->line instead.
3162 (_cpp_lex_token): Update to use logical line numbering exclusively.
3163 Handle BOL locally. Accept new lines in directives, but keep
3164 pfile->line decremented. Diagnostics use logical lines. Update
3166 * cpplib.c (SEEN_EOL): New.
3167 (skip_rest_of_line, check_eol): Use it.
3168 (end_directive): Increase line number when accepting the newline
3169 at the end of a directive.
3170 (run_directive): Simplify.
3171 (do_line): Bad LC_LEAVEs become LC_RENAMEs. Update.
3172 (_cpp_do_file_change): Update to take buffer line number as an
3173 argument, and store the current map in the cpp_reader. Remove
3174 line number kludges.
3175 (_cpp_do__Pragma): Restore output position after a _Pragma.
3176 (cpp_push_buffer): Don't set output line or lineno.
3177 (_cpp_pop_buffer): Transfer more info from a faked buffer.
3178 Remove line kludge. Set output_line.
3179 * cppmacro.c (builtin_macro): Update handling of __LINE__.
3180 (parse_arg): Use logical lines.
3181 (save_lookahead_token): Save EOFs too now.
3182 * cppmain.c (struct printer): Fix comments.
3183 (printer_init): Simplify, let caller do errors.
3184 (scan_translation_unit, check_multiline_token, dump_macro): Update.
3185 (maybe_print_line): Simplify.
3186 (print_line): Don't print a linemarker if -P.
3187 (cb_define, cb_undef, cb_def_pragma, cb_ident, cb_include): Update.
3188 (cb_file_change): Simplify.
3189 * line-map.h (LAST_SOURCE_LINE): Fix.
3190 (CURRENT_LINE_MAP): New.
3192 2001-08-05 Bernd Schmidt <bernds@redhat.com>
3194 * doloop.c (doloop_modify_runtime): Properly compute number of
3195 iterations if loop was unrolled.
3197 * alias.c (rtx_equal_for_memref_p): VALUEs are only identical
3198 if their CSELIB_VAL_PTRs are.
3200 * config/ia64/ia64.c (struct spill_fill_data): New member prev_insn.
3201 (setup_spill_pointers): Initialize it.
3202 (spill_restore_mem): Set it.
3203 (do_spill, do_restore): Use it to add REG_INC note.
3204 * config/ia64/ia64.md (movti_internal): Add REG_INC notes as needed.
3206 * config/ia64/ia64.c (ia64_sched_reorder): Defer scheduling of
3207 asms if other insns are available.
3209 * config/ia64/ia64.c (condop_operator): New predicate.
3210 * config/ia64/ia64.h (PREDICATE_CODES): Add it.
3211 * config/ia64/ia64.md (cond_opsi2_internal and splitters): New
3214 * expr.c (expand_expr, case COND_EXPR): Prefer working with a
3215 temporary register than directly using a MEM.
3217 2001-08-04 Hans-Peter Nilsson <hp@bitrange.com>
3219 * config/sh/sh.c (sh_asm_named_section): Fix typo in align
3220 parameter in last change.
3222 2001-08-04 Zack Weinberg <zackw@panix.com>
3224 * sparc.md: Don't use #if inside C test expression.
3226 2001-08-04 Richard Henderson <rth@redhat.com>
3228 * i386.c: Revert 07-30 ix86_output_main_function_alignment_hack.
3230 2001-08-04 Neil Booth <neil@daikokuya.demon.co.uk>
3232 * cpphash.h (struct cpp_reader): New member directive_line.
3233 * cpplib.h (struct cpp_callbacks): Update prototypes of callbacks.
3234 * cpplib.c (do_define, do_undef, do_ident, do_include_common,
3235 do_pragma): Pass line to callbacks.
3236 (start_directive): Record line of directive.
3237 * cppmain.c (cb_ident, cb_define, cb_undef, cb_def_pragma,
3238 cb_include): Similarly.
3239 * c-lex.c (cb_ident, cb_define, cb_undef, cb_def_pragma):
3242 2001-08-04 Hans-Peter Nilsson <hp@bitrange.com>
3244 * config/d30v/d30v.h: Fix typo in start of UNIQUE_SECTION
3247 Sat Aug 4 13:51:36 CEST 2001 Jan Hubicka <jh@suse.cz>
3249 * loop.c (try_copy_prop); Kill invalidated REG_EQUAL notes.
3251 * reload1.c (fixup_abnormal_edges): New static function.
3254 * flow.c (need_fake_edge_p): New function.
3255 (flow_call_edges_add): Fix handling of noreturn and sibbling calls;
3256 avoid call insn to be very last insn in the insn stream.
3258 * profile.c (branch_prob): Call flow_call_edges_add instead of
3259 doing that by hand; cleanup cfg to re-merge basic blocks once
3262 2001-08-04 Neil Booth <neil@cat.daikokuya.demon.co.uk>
3264 * Makefile.in (CPPLIB_H): New, so that dependencies on cpplib.h
3265 are also on line-map.h.
3266 * cppfiles.c (stack_include_file): Update.
3267 * cpphash.h (struct cpp_buffer): New member return_at_eof.
3268 (_cpp_pop_buffer): New.
3269 * cppinit.c (cpp_destroy, cpp_finish): Update.
3270 (do_includes): Mark each buffer to return at EOF.
3271 * cpplex.c (_cpp_lex_token): Pop buffers at EOF. Continue or
3272 return as requested.
3273 * cpplib.c (run_directive, do_line, cpp_push_buffer): Update.
3274 (cpp_pop_buffer): Rename _cpp_pop_buffer. Stop skipping.
3275 * cpplib.h (cpp_pop_buffer): Remove.
3276 (cpp_scan_buffer_nooutput): Rename cpp_scan_nooutput.
3277 * cppmacro.c (cpp_scan_buffer_nooutput): Similarly. No need to pop
3279 * cppmain.c (scan_buffer): Rename scan_translation_unit. No need
3281 (do_preprocessing): Update.
3282 * fix-header.c (read_scan_file): Update. No need to pop buffers.
3283 * c-parse.in (_yylex): Similarly.
3284 * scan-decls.c (scan_decls): Similarly.
3285 * line-map.h: Update comments.
3287 * objc/Make-lang.in (objc-act.o): Update dependencies.
3289 2001-08-04 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3291 * config/m68hc11/m68hc11.md ("cmphi_1", "cmpqi_1"): Allow memory
3292 and soft register for operand 0.
3293 ("cmphi_z_used", "cmpqi_z_used"): Allow memory for operand 0.
3295 2001-08-04 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3297 * config/m68hc11/m68hc11.md ("bitcmpqi"): Allow memory and soft
3298 register for operand 0.
3299 ("bitcmpqi_z_used"): Allow memory for operand 0.
3300 (split "bitcmpqi"): New split to handle address reg as operand 1.
3302 2001-08-04 Andreas Jaeger <aj@suse.de>
3304 * gcse.c: Revert Daniel's last patch.
3306 2001-08-03 Zack Weinberg <zackw@stanford.edu>
3308 * sparc-protos.h: Add prototypes for fp_zero_operand and
3310 * sh-protos.h: Add prototype for fpul_operand.
3312 2001-08-04 Hans-Peter Nilsson <hp@bitrange.com>
3314 * doc/extend.texi (Other Builtins): Fix typo in last change.
3316 2001-08-03 Richard Henderson <rth@redhat.com>
3318 * target.h (gcc_target): Add asm_out.named_section,
3319 section_type_flags, have_named_sections.
3320 * target-def.h (TARGET_ASM_NAMED_SECTION): New.
3321 (TARGET_HAVE_NAMED_SECTIONS): New.
3322 (TARGET_SECTION_TYPE_FLAGS): New.
3324 * Makefile.in (toplev.o): Depend on TARGET_H.
3325 (varasm.o, dbxout.o): Likewise.
3326 * c-common.c (decl_attributes): Check targetm.have_named_sections
3327 instead of ifdef ASM_OUTPUT_SECTION_NAME.
3328 * dbxout.c (dbxout_function_decl): Likewise.
3329 (dbxout_function_end): Likewise.
3330 * toplev.c (compile_file): Likewise.
3331 * varasm.c (exception_section): Likewise.
3332 * cp/decl2.c (finish_objects): Likewise.
3334 * defaults.h (EH_FRAME_SECTION): Remove.
3335 (EH_FRAME_SECTION_ASM_OP): Remove.
3336 (EH_FRAME_SECTION_NAME): New.
3337 (UNIQUE_SECTION): Don't depend on ASM_OUTPUT_SECTION_NAME.
3338 (UNIQUE_SECTION_P): Remove.
3339 * dwarf2out.c (SECTION_FORMAT): Remove.
3340 (ASM_OUTPUT_SECTION): Remove.
3341 (output_call_frame_info): Use named_section_flags.
3342 (output_comp_unit, dwarf2out_start_source_file): Likewise.
3343 (dwarf2out_end_source_file, dwarf2out_define): Likewise.
3344 (dwarf2out_undef, dwarf2out_init, dwarf2out_finish): Likewise.
3345 * varasm.c (in_eh_frame, eh_frame_section): Remove.
3346 (named_section_flags): New.
3347 (named_section): Use it and targetm.section_type_flags.
3348 (resolve_unique_section): New.
3349 (assemble_start_function): Use it.
3350 (asm_emit_uninitialised, assemble_variable): Likewise.
3351 (default_section_type_flags): New.
3352 (default_no_named_section, default_elf_asm_named_section): New.
3353 (default_coff_asm_named_section, default_pe_asm_named_section): New.
3354 * output.h: Update varasm.c decls.
3355 (SECTION_*): New flags.
3357 * crtstuff.c: Check EH_FRAME_SECTION_NAME not EH_FRAME_SECTION_ASM_OP.
3358 (__EH_FRAME_BEGIN__, __FRAME_END__): Use attribute section.
3360 * config/elfos.h (UNIQUE_SECTION_P): Remove.
3361 * config/alpha/elf.h, config/arm/linux-elf.h: Likewise.
3362 * config/arm/pe.h, config/arm/unknown-elf.h: Likewise.
3363 * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
3364 * config/i386/i386-interix.h, config/i386/win32.h: Likewise.
3365 * config/ia64/sysv4.h, config/mcore/mcore-pe.h: Likewise.
3366 * config/mips/elf.h, config/mips/elf64.h: Likewise.
3367 * config/mips/iris6gld.h, config/mips/mips.h: Likewise.
3368 * config/pa/pa64-hpux.h,
3370 * config/elfos.h (ASM_OUTPUT_SECTION_NAME): Remove.
3371 (TARGET_ASM_NAMED_SECTION): New.
3372 * config/psos.h, config/a29k/a29k.h, config/alpha/elf.h: Likewise.
3373 * config/alpha/vms.h, config/arm/coff.h: Likewise.
3374 * config/arm/conix-elf.h, config/arm/elf.h: Likewise.
3375 * config/arm/linux-elf.h, config/arm/pe.h: Likewise.
3376 * config/arm/unknown-elf.h, config/avr/avr.h: Likewise.
3377 * config/c4x/c4x.h, config/h8300/h8300.h: Likewise.
3378 * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
3379 * config/i386/i386-interix.h, config/i386/i386elf.h : Likewise.
3380 * config/i386/sco5.h, config/i386/win32.h: Likewise.
3381 * config/m68k/coff.h, config/mcore/mcore-pe.h: Likewise.
3382 * config/mcore/mcore.h, config/mips/elf.h: Likewise.
3383 * config/mips/elf64.h, config/mips/iris6.h: Likewise.
3384 * config/mips/netbsd.h, config/mips/openbsd.h: Likewise.
3385 * config/pa/pa64-hpux.h, config/rs6000/sysv4.h: Likewise.
3386 * config/rs6000/xcoff.h, config/sh/sh.h: Likewise.
3387 * config/sparc/sysv4.h: Likewise.
3389 * config/nextstep.h: Error until named sections implemented.
3391 * config/a29k/a29k.c (a29k_asm_named_section): New.
3392 * config/alpha/alpha.c (SECTION_VMS_OVERLAY): New.
3393 (vms_section_type_flags, vms_asm_named_section): New.
3394 * config/arm/arm.c (arm_elf_asm_named_section): New.
3395 * config/avr/avr.c (asm_output_section_name): Remove.
3396 * config/avr/avr-protos.h: Update.
3397 * config/c4x/c4x.c (c4x_asm_named_section): New.
3398 * config/h8300/h8300.c (h8300_asm_named_section): New.
3399 * config/i386/i386.c (sco_asm_named_section): New.
3400 * config/i386/winnt.c (SECTION_PE_SHARED): New.
3401 (i386_pe_section_type_flags): New.
3402 (i386_pe_asm_named_section): New.
3403 * config/i386/i386-protos.h: Update.
3404 * config/m68k/m68k.c (m68k_coff_asm_named_section): New.
3405 * config/mcore/mcore.c (mcore_asm_named_section): New.
3406 * config/mips/mips.c (iris6_asm_named_section): New.
3407 * config/mips/mips.h (ENCODE_SECTION_INFO): Use DECL_ONE_ONLY
3408 instead of UNIQUE_SECTION_P.
3409 * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): New.
3410 (xcoff_asm_named_section): New.
3411 * config/sh/sh.c (sh_asm_named_section): New.
3412 * config/sparc/sparc.c (sparc_elf_asm_named_section): New.
3414 * config/i386/djgpp.h (EH_FRAME_SECTION_ASM_OP): Remove.
3415 * config/i386/sco5.h (EH_FRAME_SECTION_ASM_OP*): Remove.
3416 (EH_FRAME_SECTION_NAME): New.
3417 (EXCEPTION_SECTION): New.
3418 * config/ia64/ia64.h (EH_FRAME_SECTION_ASM_OP): Remove.
3419 (DEBUG_*_SECTION): Remove.
3420 * config/m68k/rtemself.h (EH_FRAME_SECTION_ASM_OP): Remove.
3421 * config/mips/iris6.h (DEBUG_*_SECTION): Remove.
3422 (EH_FRAME_SECTION_ASM_OP): Remove.
3424 * doc/tm.texi (UNIQUE_SECTION_P): Remove.
3425 (ASM_OUTPUT_SECTION_NAME): Remove.
3426 (TARGET_ASM_NAMED_SECTION): New.
3427 (TARGET_HAVE_NAMED_SECTIONS): New.
3428 (TARGET_SECTION_TYPE_FLAGS): New.
3429 (EH_FRAME_SECTION_ASM_OP): Remove.
3430 (EH_FRAME_SECTION_NAME): New.
3432 2001-08-03 Zack Weinberg <zackw@stanford.edu>
3434 * builtins.c (fold_builtin_constant_p): Return integer_zero_node
3435 for complex expressions when cfun == 0.
3436 * doc/extend.texi: Document that __builtin_constant_p can be
3437 used in data initializers as well as functions.
3439 2001-08-03 Alexandre Oliva <aoliva@redhat.com>
3441 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Declare
3442 variable I locally, instead of expecting a declaration in the
3445 2001-08-03 Richard Henderson <rth@redhat.com>
3447 * except.c (collect_one_action_chain): Add an explicit cleanup
3448 action if regions surrounding a catch were encoded entirely
3449 within the call-site entry.
3451 2001-08-03 Richard Henderson <rth@redhat.com>
3453 * dbxout.c (dbxout_symbol_location): Flatten subregs first;
3454 don't take REGNO of a non-register.
3456 2001-08-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
3458 * gthr-dce.h (__GTHREAD_MUTEX_INIT_FUNCTION and
3459 __GTHREAD_MUTEX_INIT_DEFAULT): New macros for mutex initialization.
3460 (__gthread_key_delete): Remove code for __PTHREAD_LIBRARY_VERSION_1 >= 1
3461 (__gthread_mutex_init_function): New function for mutex initialization.
3463 2001-08-03 Daniel Berlin <dan@cgsoftware.com>
3465 * Makefile.in: Revert screwed up commit.
3467 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3469 * config/m68hc11/t-m68hc11-gas (T_CPPFLAGS): Add _ctor and _dtor.
3470 * config/m68hc11/larith.asm (_exit): Split in several sub-sections
3471 merged by linker script to get a final _exit().
3472 (__do_global_dtors): New for destructor handling in specific exit
3474 (__do_global_ctors): New for constructors in specific install section.
3475 (__map_data_section): Map data sections before running constructors.
3476 * config/m68hc11/m68hc11.h (INT_ASM_OP): Define to use .word.
3477 (CTORS_SECTION_ASM_OP): Define to put in readonly section.
3478 (DTORS_SECTION_ASM_OP): Likewise.
3479 (CTORS_SECTION_FUNCTION): Define to force a reference to
3481 (DTORS_SECTION_FUNCTION): Likewise for __do_global_dtors.
3483 2001-08-03 Daniel Berlin <dan@cgsoftware.com>
3485 * ChangeLog: Fix date on previous ChangeLog entry for GCSE.
3487 * Makefile.in: Add df.h to gcse.c dependencies.
3489 2001-08-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
3491 * varasm.c (output_constant_def_contents): Use for the length of a
3492 string constant either its TREE_STRING_LENGTH or its int_size_in_bytes
3493 depending on which is larger.
3495 2001-08-03 Daniel Berlin <dan@cgsoftware.com>
3497 * gcse.c: Include df.h for use as a dataflow analyzer.
3499 Declaration of reg_set_info: gone.
3500 New df_analyzer variable used by store motion.
3501 (reg_set_info): Deleted.
3502 (mark_mem_regs): New function, analyze regs used by a mem.
3503 (store_ops_ok): Use dataflow analyzer results to determine if
3504 necessary regs are changed in the block.
3505 (find_moveable_store): Remove check for symbol ref, we can handle
3506 much more complex expressions now.
3507 (compute_store_table): Remove most of the code, it's unnecessary
3508 now that the dataflow analyzer records the info for us.
3509 (store_killed_after): Add parameter to say whether to do the
3510 store_ops_okay test, used to speed up testing when we already know
3511 the answer, and just want to know if the store itself was killed.
3512 (build_store_vector): Largely rewritten to calculate the various
3513 vectors properly, and somewhat optimized.
3514 (store_motion): Init the df_analyzer, get REG_DEF chains.
3515 Also handle trapping expressions (since mems almost always trap)
3516 (simple_mem): Redefine what a simple mem is.
3518 2001-08-03 DJ Delorie <dj@redhat.com>
3520 * ifcvt.c (noce_get_alt_condition): Don't make an auxiliary
3521 set from a constant part of the condition.
3523 2001-08-01 Andrew Cagney <ac131313@redhat.com>
3525 * mkdeps.c (deps_add_default_target): Make local variable
3526 ``start'' a const char pointer.
3527 * dwarf2out.c (compute_section_prefix): Localize use of ``p''.
3529 2001-08-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3531 * doc/install.texi (Configuration): Fix markup.
3532 (Specific, i?86-*-udk): Likewise.
3533 (Specific, alpha*-dec-osf*): Warn against --with-gnu-as,
3535 Document --enable-threads and --enable-libgcj status.
3536 (Specific, mips-sgi-irix*): Canonicalize triples.
3537 (Specific, mips-sgi-irix5): Warn about problems with this config.
3538 Mention required GNU as patch.
3539 Native assembler problems are fixed.
3540 (Specific, mips-sgi-irix6): Update O32 ABI support status.
3541 Document --enable-threads and --enable-libgcj status.
3543 2001-08-02 Nick Clifton <nickc@cambridge.redhat.com>
3545 * Makefile.in, mklibgcc.in: Restore changes with fixed invocation
3548 2001-08-03 Richard Henderson <rth@redhat.com>
3550 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't write to
3553 2001-08-03 Richard Henderson <rth@redhat.com>
3555 * rtlanal.c (find_first_parameter_load): Stop if we
3556 reach a CODE_LABEL at BOUNDARY.
3558 2001-08-03 Richard Henderson <rth@redhat.com>
3560 * config/alpha/alpha.md (force_movdi): New insn.
3561 * config/alpha/alpha.c (alpha_expand_prologue): Use it.
3562 Tweek FRP marking of VMS prologue insns.
3563 * config/alpha/vms.h (EPILOGUE_USES): New.
3565 2001-08-02 Richard Henderson <rth@redhat.com>
3567 * Makefile.in, mklibgcc.in: Revert mkinstalldirs change.
3569 2001-08-02 Lars Brinkhoff <lars@nocrew.org>
3571 * combine.c, config.gcc, cse.c, defaults.h, real.c, reload.c,
3572 simplify-rtx.c, config/alpha/alpha.h, config/avr/avr.h,
3573 config/convex/convex.h, config/d30v/d30v.c,
3574 config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
3575 config/elxsi/elxsi.h, config/fr30/fr30.h, config/m88k/m88k.c,
3576 config/mips/mips.h, config/mn10200/mn10200.h,
3577 config/mn10300/mn10300.h, config/pdp11/pdp11.md,
3578 config/v850/v850.h, config/vax/openbsd.h,
3579 config/vax/openbsd1.h, config/vax/ultrix.h,
3580 config/vax/vax-protos.h, config/vax/vax.c, config/vax/vax.h,
3581 config/vax/vax.md, config/vax/vaxv.h, config/vax/xm-vms.h,
3582 cp/decl2.c, doc/contrib.texi, doc/cpp.texi, doc/gcc.texi,
3583 doc/install.texi, doc/invoke.texi, doc/md.texi, doc/rtl.texi,
3584 doc/tm.texi: consistently use "VAX", "VAXen", and "MicroVAX"
3585 in comments and documentation.
3587 2001-08-03 Neil Booth <neil@cat.daikokuya.demon.co.uk>
3591 * Makefile.in (line-map.o): New.
3592 (LIBCPP_OBJS, LIBCPP_DEPS): Update.
3593 * c-lex.c (cb_file_change): Update for new cpp_file_change structure.
3594 * cpperror.c (print_containing_files): Similarly.
3595 (print_location): Update. Don't output a space before _Pragma.
3596 * cppfiles.c (stack_include_file): Set to line 1 immediately.
3597 (stack_include_filee, cpp_make_system_header): Update.
3598 (_cpp_execute_include): Get logical line number right for calling
3599 as-yet-unterminated #include.
3600 * cpphash.h (struct cpp_reader): Add line_maps.
3601 (_cpp_do_file_change): Update.
3602 * cppinit.c (cpp_create_reader): Initialize line maps.
3603 (cpp_destroy): Destroy line maps.
3604 (cpp_start_read): Get logical line number right.
3605 * cpplex.c (parse_string): Only warn once for multi-line strings.
3606 Use boolean variable for null warning.
3607 * cpplib.c (_cpp_handle_directive): End the directive if it isn't
3609 (do_include_common): End the directive early.
3610 (do_line): Don't warn about out-of-range lines in preprocessed
3611 source. Update. Remove unused variables.
3612 (_cpp_do_file_change): Update for new line mapping.
3613 (pragma_cb): New typedef.
3614 (cpp_register_pragma): Stop looking ahead before calling the
3616 (do_pragma_system_header): End directive early.
3617 (cpp_get_line_maps): New.
3618 (cpp_pop_buffer): Fudge logical line. Update.
3619 * cpplib.h: Include line-map.h
3620 (enum cpp_fc_reason): Remove.
3621 (struct cpp_file_change): Update.
3622 (cpp_get_line_maps): New.
3623 * cppmain.c (struct_printer): New member map.
3624 (cb_file_change): Update for new mappings.
3625 * fix-header.c (cb_file_change): Similarly.
3627 2001-08-02 Nick Clifton <nickc@cambridge.redhat.com>
3629 * Makefile.in (libgcc.mk): Define mkinstalldirs.
3630 * mklibgcc.in: Use mkinstalldirs instead of mkdir.
3632 2001-08-02 Lars Brinkhoff <lars@nocrew.org>
3634 * config/vax/vax.c: include expr.h.
3636 2001-08-02 Nick Clifton <nickc@cambridge.redhat.com>
3638 * Makefile.in ($(srcdir)/configure): Only rebuild in
3640 ($(srcdir)/config.in): Only define in maintainer mode.
3641 ($(srcdir)/cstamp-h.in): Only define in maintainer mode.
3643 2001-08-02 David Edelsohn <edelsohn@gnu.org>
3645 * doc/install.texi (Install GCC: Binaries): Update Bull info.
3647 2001-08-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3649 * gcc.c (set_collect_gcc_options): New function, split out from
3651 Ignore elided switches.
3652 (do_spec_1): Invoke before executing command.
3653 (set_input): Export.
3654 Move declaration ...
3655 * gcc.h (set_input): ... here.
3656 * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
3659 2001-08-02 Nathan Sidwell <nathan@codesourcery.com>
3662 * doc/c-tree.texi (Namespaces): Remove std & -fhonor-std
3664 * doc/invoke.texi (C++ Dialect Options): Remove -fno-honor-std.
3666 2001-08-02 Richard Sandiford <rsandifo@redhat.com>
3668 * mips.md (movdicc): Make conditional on TARGET_64BIT. Likewise
3669 for the unnamed instructions it expands to.
3671 2001-08-02 Richard Henderson <rth@redhat.com>
3673 * regclass.c (call_really_used_regs): Conditionally define.
3674 (init_reg_sets_1): Don't use it if not defined.
3675 (fix_register): Similarly, don't set it.
3677 2001-08-01 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3679 * params.def (PARAM_MAX_INLINE_INSNS): Change default to 600.
3680 Correct comment that had been missed in the previous change.
3682 2001-08-01 Stan Shebs <shebs@apple.com>
3684 * config/darwin.c (machopic_stub_name): Try matching by name.
3685 (update_stubs): New function.
3686 (darwin_encode_section_info): Call it and update_non_lazy_ptrs
3689 2001-08-01 Richard Henderson <rth@redhat.com>
3691 * except.c (output_function_exception_table): Use assemble_align.
3692 * varasm.c (assemble_eh_label): Remove.
3693 (assemble_eh_align, assemble_eh_integer): Remove.
3695 2001-08-01 Robert Lipe <robertl@caldera.com>
3697 * dwarfout.c: Remove reference to README.DWARF.
3699 2001-08-01 Andrew MacLeod <amacleod@redhat.com>
3701 * regclass.c (call_really_used_regs): New array for registers which
3702 are actually used by a call.
3703 (init_reg_sets_1): Initialize regs_invalidated_by_call with the
3705 (fix_register): Set call_really_used too.
3706 * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): Initialize.
3707 * doc/tm.texi (CALL_REALLY_USED_REGISTERS): Document.
3709 2001-08-01 Richard Henderson <rth@redhat.com>
3711 * read-rtl.c (read_name): Consider \r whitespace.
3713 2001-07-11 Andrew Cagney <ac131313@redhat.com>
3715 * config.gcc: Recognize powerpc-*-netbsd*.
3717 * doc/install.texi (Host/target specific installation notes for
3718 GCC): Mention powerpc-*-netbsd*.
3720 * config/rs6000/netbsd.h: New file.
3721 (STANDARD_STARTFILE_PREFIX, LINK_SHLIB_SPEC): Redefine.
3722 (LIB_DEFAULT_SPEC, STARTFILE_DEFAULT_SPEC): Redefine.
3723 (ENDFILE_DEFAULT_SPEC, LINK_START_DEFAULT_SPEC): Redefine.
3724 (LINK_OS_DEFAULT_SPEC, CPP_OS_DEFAULT_SPEC): Redefine.
3725 (TARGET_VERSION): Redefine.
3727 * config/rs6000/t-ppccomm (MULTILIB_MATCHES_SYSV): Recognize
3728 mcall-netbsd as a match for mcall-sysv.
3729 (EXTRA_MULTILIB_PARTS): Add ncrti$(objext) and ncrtn$(objext).
3730 (ncrti.S, ncrtn.S): New targets.
3731 ($(T)ncrti$(objext), $(T)ncrtn$(objext)): New targets.
3733 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Recognize
3734 "netbsd' as a V4 ABI.
3735 (ASM_SPEC): Check for -mcall-netbsd.
3736 (CC1_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC): Ditto.
3737 (CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC): Ditto.
3738 (LIB_SPEC, ENDFILE_SPEC): Ditto.
3739 (LIB_NETBSD_SPEC, STARTFILE_NETBSD_SPEC): Define.
3740 (ENDFILE_NETBSD_SPEC, LINK_START_NETBSD_SPEC): Define.
3741 (LINK_OS_NETBSD_SPEC, CPP_OS_NETBSD_SPEC): Define.
3742 (SUBTARGET_EXTRA_SPECS): Add NetBSD specs.
3744 * doc/invoke.texi (Option Summary): Add -mcall-netbsd.
3745 (RS/6000 and PowerPC Options): Mention -mcall-netbsd.
3747 2001-08-01 Mark Kettenis <kettenis@gnu.org>
3749 * unwind-pe.h (base_of_encoded_value, read_encoded_value): Define
3750 only if NO_BASE_OF_ENCODED_VALUE isn't defined.
3751 * unwind-dw2-fde.c (NO_BASE_OF_ENCODED_VALUE): Define before
3752 including "unwind-pe.h".
3754 Wed Aug 1 20:01:42 CEST 2001 Jan Hubicka <jh@suse.cz>
3756 * rs6000.md (define_splits): Kill unused constraints.
3758 Wed Aug 1 20:02:12 CEST 2001 Graham Stott <grahams@redhat.com>
3759 Jan Hubicka <jh@suse.cz>
3761 * function.c (thread_prologue_and_epilogue_insns): Kill code
3762 dealing with non-existent CFG.
3764 2001-08-01 Kazu Hirata <kazu@hxi.com>
3766 * alias.c: Fix comment formatting.
3767 * bitmap.c: Likewise.
3768 * builtins.c: Likewise.
3769 * calls.c: Likewise.
3770 * c-common.c: Likewise.
3771 * c-decl.c: Likewise.
3772 * c-dump.c: Likewise.
3773 * c-lex.c: Likewise.
3774 * collect2.c: Likewise.
3775 * combine.c: Likewise.
3776 * conflict.c: Likewise.
3777 * cppfiles.c: Likewise.
3778 * cppinit.c: Likewise.
3779 * cpplex.c: Likewise.
3780 * cpplib.c: Likewise.
3781 * cppmacro.c: Likewise.
3782 * cppspec.c: Likewise.
3783 * c-pragma.c: Likewise.
3784 * crtstuff.c: Likewise.
3786 * cselib.c: Likewise.
3787 * c-semantics.c: Likewise.
3788 * c-typeck.c: Likewise.
3790 2001-08-01 H.J. Lu <hjl@gnu.org>
3792 * config/mips/linux.h (ASM_OUTPUT_IDENT): Defined.
3794 2001-08-01 H.J. Lu <hjl@gnu.org>
3796 * gcc/config/mips/linux.h (ASM_OUTPUT_SOURCE_LINE): Defined.
3798 2001-08-01 Ziemowit Laski <zlaski@apple.com>
3800 * c-parse.in (OBJC_NEED_RAW_IDENTIFIER): Define macro and flag for
3801 contextualizing Objective-C class name lookup by the lexer.
3802 (typespec_reserved_nonattr): Disable ObjC class name lookup after
3804 (protocoldef): Add support for forward @protocol declarations.
3805 (yylexname): Suppress ObjC class name lookup in certain contexts;
3806 re-enable after lookup is complete.
3807 (_yylex): Re-enable ObjC class name lookup when certain
3808 punctuation marks are seen.
3810 * objc/objc-act.c (check_protocol_recursively): New function used
3811 for finding circular dependencies in protocols.
3812 (objc_declare_protocols): New function for handling forward
3813 @protocol declarations.
3814 (receiver_is_class_object): Detect the case when 'self' is used
3815 inside of a class method.
3816 (build_message_expr): Issue a warning if class method is desired
3817 but instance method is found instead.
3818 (conforms_to_protocol): Streamline.
3819 (objc_comptypes): Detect the fact that 'Bar<Foo> foo' conforms to
3820 protocol Foo, even if 'Bar foo' does not.
3821 (check_protocols): Streamline.
3822 (start_protocol): Add checks for circular and duplicate protocol
3824 (encode_aggregate_within): For typedefs of structs, encode the
3826 * objc/objc-act.h (PROTOCOL_DEFINED): New tree accessor.
3827 (objc_declare_protocols): New prototype.
3829 2001-08-01 Neil Booth <neil@cat.daikokuya.demon.co.uk>
3831 * cpphash.h (struct cpp_reader): New members line, pseudo_newlines.
3832 * cpplex.c (handle_newline): Update prototype. Maintain logical
3834 (skip_escaped_newlines, skip_block_comment, parse_string):
3836 (_cpp_lex_token): Update, and store token position within the token.
3837 * cpplib.h (struct cpp_token): Add line and column entries.
3838 * cppmacro.c (replace_args): Position stringified tokens correctly.
3840 2001-08-01 Andreas Jaeger <aj@suse.de>
3842 * basic-block.h: Add prototype for last_loop_beg_note.
3844 2001-07-31 Alexandre Petit-Bianco <apbianco@redhat.com>
3846 * expr.c (safe_from_p): Use WITH_CLEANUP_EXPR_RTL instead of
3847 RTL_EXPR_RTL while handling WITH_CLEANUP_EXPR nodes. Fixed typo in
3849 (expand_expr): Use WITH_CLEANUP_EXPR_RTL instead of RTL_EXPR_RTL
3850 while handling WITH_CLEANUP_EXPR node. Use second operand calling
3851 expand_decl_cleanup.
3852 * tree.c (firt_rtl_op): The third operand of WITH_CLEANUP_EXPR is
3854 (simple_cst_equal): WITH_CLEANUP_EXPR node to use its second
3855 operand while calling simple_cst_equal.
3856 * tree.def (WITH_CLEANUP_EXPR): Switched operands: the second
3857 operand is the cleanup expression, the third is the RTL_EXPR.
3858 * tree.h (WITH_CLEANUP_EXPR_RTL): New macro.
3860 2001-07-31 Jeff Sturm <jsturm@one-point.com>
3862 * except.c (duplicate_eh_regions): Test n_array[i] for NULL.
3864 2001-07-31 matthew green <mrg@eterna.com.au>
3866 * config.gcc (i386-*-netbsdelf): New description.
3867 * config/i386/netbsd-elf.h: New file.
3869 2001-07-30 Geoffrey Keating <geoffk@redhat.com>
3871 * loop.c (check_dbra_loop): Use single_set to compute
3874 2001-07-31 Daniel Berlin <dan@cgsoftware.com>
3876 PowerPC reorg and support for powerpc64-*-linux*.
3878 Also fixes emitting of constants on 32 bit and 64 bit
3881 * config.gcc: powerpc64-*-linux* is a new target.
3882 Things that needed aix.h now also include xcoff.h
3884 * config/rs6000/rs6000.h: Split XCOFF specific stuff into
3886 Move AIX specific stuff into aix.h.
3887 (TARGET_AIX): Renamed to TARGET_XCOFF, since the AIX ABI is used
3888 with more than just XCOFF now.
3889 (SET_ASM_OP): Remove, now defined where needed.
3890 (FUNCTION_PROLOGUE): New macro definition.
3891 (FUNCTION_EPILOGUE): New macro definition.
3892 (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): New macro definition.
3894 * config/rs6000/xcoff.h: New file.
3896 * config/rs6000/linux64.h: New file.
3898 * config/rs6000/darwin.h: Copy needed AIX alignment definitions.
3900 2001-07-31 Alan Modra <amodra@bigpond.net.au>
3902 * rs6000.c (print_operand_address): Handle ELF syntax.
3903 (output_toc): Simplify. Use DOUBLE_INT_ASM_OP.
3904 * rs6000.md (load_toc_aix_di): Handle ELF syntax.
3905 * rs6000.h (ASM_OUTPUT_DOUBLE_INT, ASM_LONG): Use DOUBLE_INT_ASM_OP.
3907 2001-07-31 David Edelsohn <edelsohn@gnu.org>
3909 * rs6000.c (rs6000_override_options): Only disable
3910 flag_function_sections for XCOFF.
3911 (exact_log2_cint_operand): New predicate.
3912 (reg_or_{add,sub}_cint64_operand): New predicates.
3913 (add_operand): Compare CONST_INT with fewer function calls.
3914 (rs6000_emit_set_const, rs6000_emit_set_long_const): New functions.
3915 (print_operand, case 'p'): Ensure positive operand.
3916 (rs6000_emit_load_toc_table): No load_toc_v4_pic_di.
3917 * rs6000.h (CONST_OK_FOR_LETTER_P, case 'N'): Ensure positive value.
3918 (PREDICATE_CODES): Add new predicates.
3919 * rs6000.md (addsi3): Split 32-bit constants more correctly.
3920 (divsi3, modsi3): Ensure positive power-of-2.
3921 (adddi3): Use new predicate. Split 32-bit constants more
3922 correctly. Re-arrange splitter to handle any constant.
3923 (subdi3): Use new predicate.
3924 (divdi3, moddi3): Ensure positive power-of-2.
3925 (movdi): Use rs6000_emit_set_const.
3926 (load_toc_v4_pic_di): Delete.
3928 2001-07-31 Graham Stott <grahams@redhat.com>
3930 * function.c (pad_below): Revert 2001-07-26 patch.
3932 Tue Jul 31 15:37:35 CEST 2001 Jan Hubicka <jh@suse.cz>
3934 * reg-stack (convert_regs_1): Fix best edge condition.
3936 Tue Jul 31 15:33:27 CEST 2001 Jan Hubicka <jh@suse.cz>
3938 * jump.c (duplicate_loop_exit_test): Better test for jumps
3939 entering the loop; create loop pre_header.
3941 2001-07-31 Hartmut Penner <hpenner@de.ibm.com>
3943 * doc/install.texi: Add s390 and s390x as new targets.
3944 * doc/invoke.texi: Add documantation of S/390 and zSeries
3946 * doc/md.texi: Add documantation of S/390 and zSeries constraints.
3948 2001-07-30 Roman Zippel <zippel@linux-m68k.org>
3950 * config/m68k/m68k.md: Replace all general_operand with
3951 nonimmediate_operand for all destinations.
3952 * config/m68k/m68k.c (not_sp_operand): Likewise.
3954 Mon Jul 30 23:20:34 EDT 2001 John Wehle (john@feith.com)
3956 * flow.c (merge_blocks): Return 1 if an extra jump is inserted.
3958 2001-07-30 Richard Henderson <rth@redhat.com>
3960 * config/ia64/ia64.h (DEBUG_RANGES_SECTION): New.
3961 * config/mips/iris6.h (DEBUG_RANGES_SECTION): New.
3963 2001-07-30 Roman Zippel <zippel@linux-m68k.org>
3965 * config/m68k/m68k.h (TARGET_SWITCHES/TARGET_OPTIONS):
3966 Add missing doc strings
3967 * config/m68k/linux-aout.h (SUBTARGET_SWITCHES): Likewise
3968 * config/m68k/linux.h (SUBTARGET_SWITCHES): Likewise
3970 Mon Jul 30 22:16:08 CEST 2001 Jan Hubicka <jh@suse.cz>
3972 * i386.c (ix86_output_main_function_alignment_hack): New function.
3973 (TARGET_ASM_FUNCTION_PROLOGUE): Default to it.
3975 * flow.c (mark_dfs_back_edges): Move from loop_p ; mark back
3976 edges by EDGE_DFS_BACK flag.
3977 (dump_edge_info): Add dfs_back flag.
3978 * basic-block.h (EDGE_DFS_BACK): New constant.
3979 (mark_dfs_back_edges): Declare.
3980 * alias.c (loop_p): Remove.
3981 (mark_constant_function): Use mark_dfs_back_edges.
3983 * reg-stack.c (block_info_def): Add predecesors counter and stack_out.
3984 (reg_to_stack): Call mark_dfs_back_edges; count the predecesors.
3985 (compensate_edge): Break out from ...
3986 (convert_regs_1): ... here; do smart choosing of stack_out to copy.
3987 (convert_regs_2): Set block_done once block is really done;
3988 Do updating of the predecesors counts.
3990 * toplev.c (rest_of_compilation): Recompute block_for_insn
3991 before post-reload cfg_cleanup.
3992 * function.c (thread_prologue_epilogue_insns):
3993 Call set_block_for_new_insns when emitting prologue directly.
3995 2001-07-30 Andreas Jaeger <aj@suse.de>
3997 * jump.c: Add prototype for mark_modified_reg.
3999 * cse.c (set_live_p): Add unused attribute.
4001 * gcov.c (calculate_branch_probs): Use gcov_type to avoid
4003 (scan_for_source_files): Use long for count to avoid overflow.
4004 (output_data): Likewise.
4005 (output_data): Don't use string concatatenation to silence gcc
4008 * predict.c: Fix typos and grammar.
4010 * gcse.c (insert_insn_end_bb): Remove unused variables.
4012 Mon Jul 30 21:54:53 CEST 2001 Jan Hubicka <jh@suse.cz>
4014 * flow.c (mark_set_1): Use REG_FREQ_FROM_BB.
4015 (attempt_auto_inc): LIkewise.
4016 (mark_used_reg): Likewise.
4017 (try_pre_increment_1): Likewise.
4018 * regclass.c (regclass): Likewise.
4019 * global.c (allocno_compare): Update comment; change scaling factor.
4020 * local-alloc.c (QTY_CMP_PRI): Likewise.
4021 * regs.h (REG_FREQ_FROM_BB): New.
4022 (REG_FREQ_MAX): Likewise.
4024 2001-07-30 H.J. Lu <hjl@gnu.org>
4026 * config/mips/linux.h (CPLUSPLUS_CPP_SPEC): Add
4029 2001-07-30 H.J. Lu (hjl@gnu.org)
4031 * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Defined.
4032 (ASM_DECLARE_FUNCTION_SIZE): Likewise.
4033 (FUNCTION_NAME_ALREADY_DECLARED): Likewise.
4035 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
4037 * config/arm/t-arm-elf (MULTILIB_EXCEPTIONS): Skip -mthumb as well
4038 as -mthumb-interwork when -mcpu=arm7 is specified.
4040 Mon Jul 30 17:44:43 CEST 2001 Jan Hubicka <jh@suse.cz>
4042 * predict.def (noreturn, loop branch, loop exit): Mark as first
4045 Mon Jul 30 12:52:11 CEST 2001 Jan Hubicka <jh@suse.cz>
4047 * combine.c (try_combine): Avoid barrier after noop jumps.
4049 2001-07-29 Neil Booth <neil@cat.daikokuya.demon.co.uk>
4051 * cpphash.h (struct cpp_reader): Remove import_warning.
4052 * cpplib.c (skip_rest_of_line): Don't bother turning off
4054 (parse_include): Move include handling to...
4055 (do_include_common): ... here. Move import warning from...
4056 (do_import): ... here.
4057 (do_pragma_poison): Don't do a callback for poison identifiers.
4058 * cpplib.h (struct cpp_callbacks): Don't do poison callbacks.
4059 * cppmain.c (setup_callbacks): Similarly.
4061 Sun Jul 29 23:26:50 CEST 2001 Jan Hubicka <jh@suse.cz>
4063 * rtlanal.c (parms_set, find_first_parameter_load): Break out from...;
4064 handle multiple sets.
4065 * except.c (sjlj_mark_call_sites): .... here.
4066 * gcse.c (insert_insn_end_bb): Use find_first_parameter_load.
4068 Sun Jul 29 21:38:45 CEST 2001 Jan Hubicka <jh@suse.cz>
4070 Suggested by Richard Henderson and Richard Kenner:
4071 * combine.c (recog_for_combine): Use the fake recog
4072 only if instruction does not match.
4073 * rtl.h (NOOP_MOVE_INSN_CODE): New.
4074 * rtlanal.c (noop_move_p): Always return 1 for NOOP_MOVE_INSN_CODE.
4076 * combine.c (try_combine): Discover noop jump as direct jump.
4078 2001-07-29 Daniel Berlin <dan@cgsoftware.com>
4080 * df.c (df_rd_global_compute): Add successors to worklist, not
4082 (df_ru_global_compute): Ditto.
4084 2001-07-27 Daniel Berlin <dan@cgsoftware.com>
4086 * regclass.c (reg_scan_mark_refs): Increment REG_N_REFS when we
4087 increment REG_N_SETS.
4089 2001-07-26 Daniel Berlin <dan@cgsoftware.com>
4091 * sbitmap.h: New prototype for sbitmap_a_xor_b.
4093 * sbitmap.c (sbitmap_a_xor_b): New function.
4094 ifdef the basic block stuff on IN_GCC.
4096 2001-07-29 Neil Booth <neil@cat.daikokuya.demon.co.uk>
4098 * cppexp.c (parse_defined): Always record the macro name.
4099 (lex): Don't worry about identifiers, or special-case
4101 (_cpp_parse_expr): Figure out at the end of the routine
4102 whether we saw a valid !defined() expression.
4103 * cppfiles.c (stack_include_file): Update for mi_valid.
4104 (_cpp_pop_file_buffer): Similarly.
4105 * cpplex.c (_cpp_lex_token): Similarly.
4106 * cpphash.h (enum mi_state, enum mi_ind, mi_state,
4107 mi_if_not_defined, mi_lexed): Remove.
4109 * cpplib.c (do_if): Simplify.
4110 (do_endif, push_conditional, _cpp_handle_directive): Update
4111 for renaming of mi_state to mi_valid.
4113 * cpp.texi: Add index entries for digraphs, and add comment
4114 that C++ refers to them as alternative tokens.
4116 Sun Jul 29 18:59:13 CEST 2001 Jan Hubicka <jh@suse.cz>
4118 * basic-block.h (CLEANUP_PRE_LOOP): New.
4119 * except.c (finish_eh_generation): Update call of cleanup_cfg.
4120 * sibcall.c (optimize_sibling_calls): Likewise.
4121 * toplev.c (rest_of_compilation): Likewise.
4122 * flow.c (try_forward_edges): Take argument MODE;
4123 do not forward over loop pre-headers if CLEANUP_PRE_LOOP.
4124 (try_optimize_cfg): Update call of try_forward_edges.
4126 Sun Jul 29 18:59:56 CEST 2001 Roman Zippel <zippel@linux-m68k.org>
4127 Jan Hubicka <jh@suse.cz>
4129 * (validate_replace_rtx_1): Fix simplification of MINUS.
4131 2001-07-29 Neil Booth <neil@daikokuya.demon.co.uk>
4133 PR preprocessor/3669
4134 * cppinit.c (init_dependency_output): Turn off dump requests
4135 if sending dependencies to stdout.
4137 2001-07-28 Richard Henderson <rth@redhat.com>
4139 * flow.c (life_analysis): Elide PROP_ALLOW_CFG_CHANGES if
4142 2001-07-28 Golubev I. N. <gin@mo.msk.ru>
4144 * config/i386/sco5.h (DWARF2_DEBUGGING_INFO): Define.
4146 2001-07-28 Kazu Hirata <kazu@hxi.com>
4148 * config/h8300/h8300.h (ENCODE_SECTION_INFO): Check to see if DECL
4149 is VAR_DECL first to prevent an ICE.
4151 2001-07-28 Richard Henderson <rth@redhat.com>
4153 * varasm.c (immed_real_const_1): Don't elide special cases for
4155 (clear_const_double_mem): Clear const_tiny_rtx too.
4157 2001-07-28 Richard Henderson <rth@redhat.com>
4159 * dwarf2out.c (dw_val_class_offset): New.
4160 (struct dw_ranges_struct, dw_ranges_ref): New.
4161 (ranges_table, ranges_table_allocated): New.
4162 (ranges_table_in_use, RANGES_TABLE_INCREMENT): New.
4163 (add_AT_offset, add_ranges, output_ranges): New.
4164 (print_die, output_die): Handle dw_val_class_offset.
4165 (attr_checksum, size_of_die, value_format): Likewise.
4166 (gen_lexical_block_die): Handle non-contiguous blocks.
4167 (gen_block_die): Likewise.
4168 (dwarf2out_finish): Add a DW_AT_entry_pc to the compilation unit
4169 if needed. Dump the ranges table.
4170 * final.c (final_start_function): Remove unnecessary notes and
4171 rebuild the block tree before numbering the blocks.
4172 * function.c (reorder_blocks_0): Walk the existing block tree
4173 to unmark all blocks.
4174 (reorder_blocks_1): Create block fragments when duplicate block
4176 (reorder_fix_fragments): New.
4177 (reorder_blocks): Call it.
4178 * tree.h (BLOCK_FRAGMENT_ORIGIN, BLOCK_FRAGMENT_CHAIN): New.
4180 2001-07-28 Richard Henderson <rth@redhat.com>
4182 * emit-rtl.c (adjust_address): Make a copy of the memory address.
4184 2001-07-28 Richard Henderson <rth@redhat.com>
4186 * flow.c (add_to_mem_set_list): New function.
4187 (init_propagate_block_info): Use it.
4188 (mark_set_1): Likewise.
4189 (insn_dead_p): Canonicalize memory address for dead store
4190 comparison. Allow wider mode stores to kill narrower mode stores.
4191 (invalidate_mems_from_autoinc): Use invalidate_mems_from_set.
4192 (invalidate_mems_from_set): Don't handle MEMs.
4194 2001-07-28 Kazu Hirata <kazu@hxi.com>
4196 * config/h8300/h8300.h: Fix formatting.
4198 Sat Jul 28 23:35:22 CEST 2001 Jan Hubicka <jh@suse.cz>
4200 * basic-block.h (EDGE_FREQUENCY): New macro.
4201 * bb-reorder (fixup_reorder_chain): Set counts and frequencies
4203 * flow.c (find_sub_basic_blocks): Likewise.
4204 (try_crossjump_to_edge): Likewise; use EDGE_FREQUENCY
4205 (redirect_edge_and_branch): Use EDGE_FREQUENCY.
4207 * predict.c (DEF_PREDICTOR): New argument FLAGS.
4208 (HITRATE): New macro.
4209 (PRED_FLAG_FIRST_MATCH): New constant.
4210 (predictor_info): New field flgags.
4211 (combine_predictions_for_insn): Use DS theory to combine
4212 probabilities; set the edge probabilities when finished.
4213 (estimate_probability): Avoid duplicated matches
4214 of LOOP_BRANCH heuristics for nested loops; update comment.
4215 * predict.def: Add flags for each prediction, set probabilities
4216 according to B&L paper.
4217 * predict.h (DEF_PREDICTOR): New argument FLAGS.
4219 * profile.c (compute_branch_probabilities): Cleanup way the edge
4220 probabilities are computed and REG_BR_PROB notes are dropped; if
4221 values does not match, emit error.
4222 (init_branch_prob): Do error instead of warning when profile driven
4223 feedback is missing or corrupt.
4225 2001-07-27 DJ Delorie <dj@redhat.com>
4227 * ifcvt.c (noce_get_alt_condition): If the condition is a compare
4228 against a constant, try to adjust the compare to have the desired
4229 constant in it so that min/max optimizations happen more often.
4231 Fri Jul 27 17:53:00 CEST 2001 Jan Hubicka <jh@suse.cz>
4233 * flow.c (last_loop_beg_note): New function.
4234 (redirect_edge_and_branch): Use it.
4235 (split_edge): Likewise.
4237 * alias.c (loop_p): Avoid uninitialized memory access.
4239 * flow.c (try_forward_edges): Avoid accessing freed memory.
4241 * flow.c (backward_edge_of_syntactic_loop_p): Avoid uninitialized
4244 2001-07-26 Andrew Haley <aph@redhat.com>
4245 Joern Rennecke <amylaar@redhat.com>
4247 * config/sh/linux.h (CPP_DEFAULT_CPU_SPEC): New.
4248 (SUBTARGET_CPP_ENDIAN_SPEC): New.
4249 (SUBTARGET_CPP_SPEC): New.
4251 * config/sh/sh.h (SUBTARGET_CPP_ENDIAN_SPEC): New.
4252 (SUBTARGET_CPP_PTR_SPEC): New.
4253 (CPP_DEFAULT_CPU_SPEC): New.
4254 (EXTRA_SPECS): Add SUBTARGET_CPP_ENDIAN_SPEC,
4255 SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
4256 (CPP_SPEC): Break out parts into SUBTARGET_CPP_ENDIAN_SPEC,
4257 SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
4258 (SUBTARGET_CPP_SPEC): Define as an empty string.
4260 2001-07-27 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4262 * doc/install.texi (Configuration): Properly link the host
4263 specific instructions also when generating HTML.
4265 Fri Jul 27 00:33:35 EDT 2001 John Wehle (john@feith.com)
4267 * flow.c (redirect_edge_and_branch_force): Test
4268 target->global_live_at_start.
4270 2001-07-26 Richard Henderson <rth@redhat.com>
4272 * simplify-rtx.c (avoid_constant_pool_reference): Export.
4273 * rtl.h (avoid_constant_pool_reference): Declare it.
4274 * dwarf2out.c (add_location_or_const_value_attribute): Use it.
4275 (add_const_value_attribute): Use add_AT_unsigned for unsigned values.
4277 Thu Jul 26 22:30:22 CEST 2001 Jan Hubicka <jh@suse.cz>
4279 * rtl.h (cleanup_barriers): Declare.
4280 * jump.c (cleanup_barriers): New function.
4281 * toplev.c (rest_of_compilation): Call cleanup_barriers
4282 before loop optimizer and after bb_reorder.
4284 * flow.c (back_edge_of_syntactic_loop_p): New.
4285 (split_edge): Use it.
4287 2001-07-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4289 * glimits.h (_MACH_MACHLIMITS_H_): Delete.
4291 Thu Jul 26 22:22:21 2001 Denis Chertykov <denisc@overta.ru>
4293 * cse.c (cse_process_notes): Replace any registers if the address
4296 Thu Jul 26 14:04:03 EDT 2001 John Wehle (john@feith.com)
4298 * basic-block.h (PROP_ALLOW_CFG_CHANGES): Define.
4299 (PROP_FINAL): Include PROP_ALLOW_CFG_CHANGES.
4300 (propagate_block): Update prototype.
4301 * flow.c (update_life_info): Simplify the CFG and
4302 recalculate the global regs which are alive when
4303 removing dead code during a global update.
4304 (propagate_block): Return non-zero if an INSN is
4307 2001-07-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4309 * Makefile.in (LIBICONV): Define.
4311 2001-07-26 Catherine Moore <clm@redhat.com>
4313 * config/v850/v850.h (ENCODE_SECTION_INFO): Change order
4314 of conditional to avoid tree checking errors.
4316 2001-07-26 Kazu Hirata <kazu@hxi.com>
4318 * regmove.c (regmove_optimize): Don't replace a reg with
4319 another reg of a different mode.
4321 2001-07-26 Andrew MacLeod <amacleod@redhat.com>
4323 * params.def (PARAM_MAX_PENDING_LIST_LENGTH): Add parameter to
4324 limit length of dependancy flush list.
4325 * params.h (MAX_PENDING_LIST_LENGTH): Define.
4326 * sched-int.h (struct deps): Add pending_flush_length field.
4327 * sched-deps.c (flush_pending_lists): Last_pending_memory_flush now
4328 has 1 element in it.
4329 (sched_analyze_1): Use MAX_PENDING_LIST_LENGTH.
4330 (sched_analyze): After a jump, if the pending memory flush list is too
4331 large, flush the pending lists.
4332 (init_deps): Initialize pending_flush_length to 0.
4333 * doc/invoke.texi (max_pending_list_length): Document parameter.
4335 2001-07-26 Neil Booth <neil@daikokuya.demon.co.uk>
4337 * toplev.c, varasm.c, final.c: Include xcoffout.h if appropriate.
4338 * dbxout.c (dbxout_global_decl): Move outside #ifdef.
4339 * Makefile.in (varasm.o, final.o, toplev.o): Update dependencies.
4341 2001-07-26 Neil Booth <neil@cat.daikokuya.demon.co.uk>
4343 * cpphash.h (struct_lexer_state): Delete was_skipping.
4344 Move skipping here from struct cpp_reader.
4345 * cpplex.c (parse_identifier): Update.
4346 (_cpp_lex_token): Don't skip tokens in a directive.
4347 * cpplib.c (struct if_stack): Update.
4348 (start_directive, end_directive): Don't change skipping state.
4349 (_cpp_handle_directive): Update.
4350 (do_ifdef, do_ifndef, do_if, do_elif): Similarly.
4351 (do_else, do_endif): Update; only check for excess tokens if not
4352 in a skipped conditional block.
4353 (push_conditional): Update for new struct if_stack.
4355 2001-07-26 Graham Stott <grahams@redhat.com>
4357 * function.c (locate_and_pad_parm): Also pad initial offset
4358 so that the total argument size also includes the padding.
4360 2001-07-26 Graham Stott <grahams@redhat.com>
4362 * gensupport.c (alter_output_for_insn): Correct enable checking failure
4363 change XSTR to XTMPL.
4365 (process_one_cond_exec): Likewise
4367 2001-07-25 Richard Henderson <rth@redhat.com>
4369 * varasm.c (assemble_variable): Create DECL_RTL before setting
4372 Thu Jul 26 00:19:30 CEST 2001 Jan Hubicka <jh@suse.cz>
4374 * predict.c (estimate_probability): Avoid duplicated predictions.
4376 * loop.c (find_and_verify_loops): Grok multiple barriers.
4378 Wed Jul 25 18:00:05 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4380 * config/alpha/alpha.c (print_operand, case '/'): Don't write '/'.
4382 * dbxout.c: Consistently use putc instead of fputc.
4383 (print_wide_int): New function; call instead of direct fprintf.
4384 (dbxout_type_index): Adjust calls of CHARS to be more accurate.
4385 (dbxout_type_fields, dbxout_type_method_1): Likewise.
4386 (dbxout_type_methods, dbxout_range_type, dbxout_type): Likewise.
4387 (print_int_cst_octal): Likewise.
4388 (print_octal): Show we wrote characters.
4389 (dbxout_type): Set have_used_extensions in more places.
4391 2001-07-25 Catherine Moore <clm@redhat.com>
4393 * config/v850/v850.c (v850_va_arg): Use addr
4394 instead of valist to build incr.
4396 Wed Jul 25 22:48:59 CEST 2001 Jan Hubicka <jh@suse.cz>
4398 * flow.c (delete_dead_jumptables): New function.
4399 (life_analyzis): Call it.
4400 * bb-reorder.c (skip_insns_after_block): Handle contradictory
4403 2001-07-25 Richard Henderson <rth@redhat.com>
4405 * except.c (reachable_handlers): Handle a region being removed
4406 out from under a RESX.
4408 2001-07-25 Richard Henderson <rth@redhat.com>
4410 * config/alpha/alpha.c (alpha_emit_conditional_move): Always
4411 swap GE/GT if it is an fp comparison.
4413 2001-07-25 Andrew Haley <aph@cambridge.redhat.com>
4415 * alias.c (rtx_equal_for_memref_p): Allow strings as types in
4418 Wed Jul 25 08:25:01 2001 Jeffrey A Law (law@cygnus.com)
4420 * ssa.c (rename_insn_1): Do not wrap an assignment to a
4421 paradoxical SUBREG inside a SEQUENCE. Fix minor formatting
4424 * ssa-ccp.c (visit_expression): Handle CALL_INSNs that can
4426 (visit_expression): When attempting to simplify an expression,
4427 retrieve any modes for arguments before they are simplified
4430 2001-07-25 Andrew MacLeod <amacleod@redhat.com>
4431 Janis Johnson <janis@us.ibm.com>
4433 * stmt.c (expand_goto): A nonlocal goto can be a call too.
4434 * builtins.c (expand_builtin_longjmp): Reverse label and static chain
4435 pointer parameters to match documented usage of nonlocal_goto.
4436 * config/ia64/ia64.md (nonlocal_goto): Revert label and static chain
4437 parameters to their correct order.
4438 * config/sparc/sparc.md (nonlocal_goto): Revert label and static chain
4439 parameters to their correct order.
4441 2001-07-25 Andrew MacLeod <amacleod@redhat.com>
4443 * config/ia64/ia64.h (STRIP_NAME_ENCODING): Strip out '*' as well.
4445 2001-07-25 Jan Hubicka <jh@suse.cz>
4446 Richard Henderson <rth@redhat.com>
4448 * flow.c (find_sub_basic_blocks): Fix handling of the last BB in
4450 (make_edges): New argument update_p; populate the edge cache if set.
4451 (find_basic_blocks): Update make_edges invocation.
4453 2001-07-24 Joel Sherrill <joel@OARcorp.com>
4455 * config/i960/i960.h (CPP_SPEC): Define _SOFT_FLOAT for -msoft-float.
4457 2001-07-24 Joel Sherrill <joel@OARcorp.com>
4459 * config/sparc/rtems.h (CPP_PREDEFINES): Remove redundant
4460 -Acpu and -Amachine.h.
4461 * config/sparc/rtemself.h (CPP_PREDEFINES): Likewise.
4462 Corrected header to say ELF not a.out.
4463 * config/sparc/sparc.h (CPP_CPU_SPEC): Define _SOFT_FLOAT
4464 when given -msoft-float.
4466 2001-07-24 Joel Sherrill <joel@OARcorp.com>
4468 * config.gcc (arm*-*-rtems*): Include crtinit.o and crtfini.o as
4469 extra multilib parts like arm-elf.
4470 (i960-*-coff*, i960-*-rtems): Should not use collect2.
4471 (m68020-*-elf*, m68k-*-elf*, m68k-*-rtems*): Include crtinit.o and
4472 crtfini.o as extra multilib parts.
4474 2001-07-24 Joel Sherrill <joel@OARcorp.com>
4476 * configure.in: Add rtems as a supported thread model.
4477 * gthr-rtems.h: Add missing entry point __gthread_active_p.
4478 * configure: Rebuilt.
4480 2001-07-24 Lars Brinkhoff <lars@nocrew.org>
4482 * stor-layout.c (get_mode_alignment): make it work when
4483 BITS_PER_UNIT is not a power of two.
4484 * builtins.c (get_pointer_alignment): Likewise.
4486 2001-07-24 Richard Henderson <rth@redhat.com>
4488 * simplify-rtx.c (avoid_constant_pool_reference): Coerce
4489 the retrieved constant into the expected mode.
4491 Wed Jul 25 01:41:27 CEST 2001 Jan Hubicka <jh@suse.cz>
4493 * flow.c (try_simplify_condjump): Avoid duplicated edges.
4494 (verify_flow_info): Check for duplicated edges; clarify
4497 * flow.c (block_label): Update basic_block_for_insn.
4498 (commit_edge_insertions): Call compute_bb_for_insn.
4500 * flow.c (purge_dead_edges): Handle conditional jumps and conditional
4503 * flow.c (redirect_edge_and_branch,
4504 try_optimize_cfg): Use redirect_edge_succ_nodup
4505 (redirect_edge_succ_nodup): New.
4506 * basic_block.h (redirect_edge_succ_nodup): Declare.
4508 * toplev.c (rest_of_compilation): Rebuild CFG before cfg_cleanup
4511 Wed Jul 25 00:32:49 CEST 2001 Jan Hubicka <jh@suse.cz>
4513 * flow.c (try_forward_edges): Accept fallthru edge; Update comment.
4514 (try_crossjump_to_edge): Update commetns.
4515 (try_crossjump_bb): Likewise.
4517 2001-07-24 Richard Henderson <rth@redhat.com>
4519 * combine.c (distribute_notes): Move set of need_refresh
4520 for noop_move_p down to catch all cases.
4522 Tue Jul 24 20:32:44 CEST 2001 Jan Hubicka <jh@suse.cz>
4524 * recog.c (split_all_insns_noflow): New.
4525 * rtl.h (split_all_insns_noflow): Declare.
4526 * ia64.c (ia64_reorg): Use split_all_insns_noflow.
4527 * m68hc11.c (m68hc11_reorg): Likewise.
4528 * sh.c (machine_dependent_reorg): Likewise.
4529 * toplev.c (rest_of_compilation): Likewise for last split_all_insns
4532 2001-07-18 Andrew Haley <aph@cambridge.redhat.com>
4534 * config/sh/sh.md (ashlsi3_std splitter): Split only after reload.
4535 (ashlsi3_n splitter): Likewise.
4536 (lshrsi3_n splitter): Likewise.
4538 (GOTaddr2picreg): Make const SImode.
4539 (sym_label2reg): Likewise.
4540 (symGOT2reg): Likewise.
4541 (symGOTOFF2reg) Likewise.
4543 (casesi_worker_0): Make unspec SImode.
4545 2001-07-18 Andrew Haley <aph@cambridge.redhat.com>
4547 * config/sh/sh.c (barrier_align): Check that an operand really is
4548 an insn before extracting its INSN_CODE.
4550 2001-07-24 Andrew Haley <aph@cambridge.redhat.com>
4552 * config/sh/sh.h (OVERRIDE_OPTIONS): Add braces to get rid of
4555 * config/sh/sh.h (INITIALIZE_TRAMPOLINE): Truncate operands
4556 for SImode to prevent overflow.
4558 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4560 * config/mips/irix6-libc-compat.c: New file.
4561 * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Use it.
4562 * doc/install.texi (Specific, mips*-sgi-irix6): Mention structure
4565 2001-07-24 lars brinkhoff <lars@nocrew.org>
4567 * rtl.texi (REG_POINTER): Document.
4568 (Machine Modes): Document BImode, OImode, PQImode, PHImode,
4569 QFmode, HFmode, TQFmode, QCmode, and HCmode.
4571 Tue Jul 24 10:49:40 CEST 2001 Jan Hubicka <jh@suse.cz>
4573 * flow.c (delete_noop_moves): Do not confuse libcall regions.
4575 2001-07-23 Richard Henderson <rth@redhat.com>
4577 * flow.c (try_simplify_condjump): Use tidy_fallthru_edge.
4579 2001-07-23 Kazu Hirata <kazu@hxi.com>
4581 * config/h8300/h8300-protos.h: Add a prototype for
4582 general_operand_dst_push.
4583 * config/h8300/h8300.c (general_operand_dst_push): New.
4584 * config/h8300/h8300.h (OK_FOR_T): New.
4585 (EXTRA_CONSTRAINT): Use it.
4586 * config/h8300/h8300.md (movqi_push): Remove and integrate into
4587 the existing movqi pattern.
4588 (movhi_push): Likewise.
4590 * reload.c: Fix comment typos.
4592 Mon Jul 23 23:34:07 CEST 2001 Jan Hubicka <jh@suse.cz>
4594 * gcse.c (cprop_insn): Update call of cprop_cc0_jump.
4596 2001-07-23 H.J. Lu (hjl@gnu.org)
4598 * doc/extend.texi: Update __builtin_return_address and
4599 __builtin_frame_address.
4601 2001-07-23 Richard Henderson <rth@redhat.com>
4603 * config/i386/i386.c (ix86_expand_setcc): Don't use method 0
4605 * config/i386/i386.md: New setcc+movzbl peephole2.
4607 2001-07-23 Neil Booth <neil@cat.daikokuya.demon.co.uk>
4609 * objc/Make-lang.in (objc-act.o): Depend on debug.h.
4610 * objc/objc-act.c: Include debug.h.
4611 (synth_module_prologue): Save and restore debug hooks too.
4613 2001-07-23 lars brinkhoff <lars@nocrew.org>
4615 * tm.texi (TARGET_FLOAT_FORMAT): Document IBM_FLOAT_FORMAT
4616 and C4X_FLOAT_FORMAT.
4617 (BOOL_TYPE_SIZE): Document.
4619 Mon Jul 23 11:54:23 2001 Clinton Popetz <cpopetz@cpopetz.com>
4621 * unroll.c (loop_iterations): Fix miscalculation of initial
4624 2001-07-13 Andrew Haley <aph@redhat.com>
4626 * doc/tm.texi (MD_CAN_REDIRECT_BRANCH): New macro.
4627 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): New macro.
4628 * config/sh/sh.c (sh_can_redirect_branch): New function.
4629 * config/sh/sh-protos.h (sh_can_redirect_branch): Declare.
4630 * reorg.c (steal_delay_list_from_target): Use
4631 MD_CAN_REDIRECT_BRANCH to see if redirection is possible.
4633 Mon Jul 23 17:20:18 CEST 2001 Jan Hubicka <jh@suse.cz>
4635 * flow.c (try_simplify_condjump): Unlink insn chain on
4636 fallthru edge; use can_fallthru.
4638 Mon Jul 23 16:03:19 CEST 2001 Jan Hubicka <jh@suse.cz>
4640 * basic-block.h (find_sub_basic_block): Declare.
4641 * flow.c (make_edges): New arguments MIN and MAX;
4642 (find_sub_basic_blocks): Revamp to use make_edges
4643 and purge_dead_edges.
4644 (find_basic_blocks): Update call of find_sub_basic_block.
4646 * recog.c (split_all_insns): Always expect CFG to be consistent;
4647 call find_sub_basic_blocks in case something has changed.
4648 * toplev.c (rest_of_compilation): Always call split_all_insns once CFG
4651 * basic-block.h (delete_noop_moves): Declare.
4652 * combine.c (combine_instructions): Call it.
4653 (recog_for_combine): Tolerate noop moves
4654 (distribute_notes): Force refresh when register dies at noop move.
4655 * flow.c (delete_noop_moves): Use BB structure; delete JUMP insns
4657 (life_analysis): Update delete_noop_moves call.
4658 (set_noop_p): Move too ...
4659 * rtlanal.c (noop_move_p): ... here.
4660 * rtl.h (noop_move_p): Declare.
4662 * basic-block.h (purge_all_dead_edges, purge_dead_edges): New functions.
4663 * toplev.c (rest_of_compilation): Conditionally call purge_all_dead_edges
4665 * gcse.c (cprop_cc0_jump, cprop_insn): New argument "basic_block".
4666 (cprop_jump): Likewise; call purge_dead_edges if substitution suceeded.
4668 2001-07-23 Hans-Peter Nilsson <hp@bitrange.com>
4670 * reload.c (push_reload): Fix typo in comment.
4671 (find_reloads_address): Ditto.
4672 (reg_overlap_mentioned_for_reload_p): Ditto in head comment.
4674 2001-07-22 Richard Henderson <rth@redhat.com>
4676 * flow.c: Grammar check and clarify a lot of comments.
4677 (try_simplify_condjump): Rename variables to be clearer.
4678 (try_forward_edges): Skip complex and fallthru edges.
4679 Rearrange tests to avoid duplicate checks.
4680 (flow_find_cross_jump): Likewise.
4681 (outgoing_edges_match): Allow match if neither branch has
4682 probability data. Loosen probability match to 5%.
4683 (try_crossjump_to_edge): Hoist repeated indirection into
4685 (try_crossjump_bb): Don't check complex edges. Eliminate
4686 redundant crossjump tests.
4687 (try_optimize_cfg): Fix use of bool. Reorganize cheaper
4688 checks before more expensive checks.
4690 2001-07-22 Richard Henderson <rth@redhat.com>
4692 * fold-const.c (fold): Test vs FLOAT_TYPE_P instead of
4693 INTEGRAL_TYPE_P when folding comparisons with operand_equal_p
4696 2001-07-22 Richard Henderson <rth@redhat.com>
4698 * m68k.c (const_uint32_operand): Abort if mode is <= 32 bits.
4699 (const_sint32_operand): Likewise.
4700 * m68k.md (anon mulsi pattern): Use const_int_operand not
4701 const_sint32_operand.
4702 (umulsi3_highpart): Zero extend a constant input.
4703 (smulsi3_highpart): Don't bother checking SImode constant.
4704 (const_umulsi3_highpart): Give op3 DImode.
4705 (const_smulsi3_highpart): Likewise.
4707 2001-07-22 Richard Henderson <rth@redhat.com>
4709 * flow.c (split_block): Make sure bb_note is included in the
4710 new block when splitting before a label.
4712 Sun Jul 22 23:28:56 CEST 2001 Jan Hubicka <jh@suse.cz>
4714 * basic-block.h (redirect_edge_and_branch_force,
4715 redirect_edge_and_branch, block_label, forwarder_block_p): Declare.
4716 * flow.c (redirect_edge_and_branch_force,
4717 redirect_edge_and_branch, block_label, forwarder_block_p): Make global.
4718 (redirect_edge_and_branch_force): Fix copying of lifeness information.
4719 (block_label): Handle EXIT_BLOCK_PTR by returning NULL.
4720 * ifcvt.c (dead_or_predictable): Take BB as an new destionation
4721 instead of label; update CFG after transformation.
4722 (find_if_case_1): Update call, use redirect_edge_and_branch_force
4723 for finishing the transformation; handle even case where ELSE
4724 does not follow THEN.
4725 (find_if_case_2): Update call of dead_or_predictable; simplify
4728 * emit-rtl.c (split_branch_probability): New global variable.
4729 (try_split): Take care to set split_branch_probability and
4730 create REG_BR_PROB note for new jump insns.
4731 * md.texi (define_split): Document new feature.
4733 * i386.c (ix86_split_fp_branch): Redistribute branch probability notes.
4735 2001-07-22 Neil Booth <neil@daikokuya.demon.co.uk>
4737 * varasm.c: Don't inlcude dbxout.h, sdbout.h or xcoffout.h.
4738 (asm_out_file): Remove redundant declaration.
4739 (assemble_asm): Remove old #if 0 block.
4740 (assemble_variable): Remove end of function; debug output is
4741 now handled with global_decl. Remove old #if 0 block. Update.
4742 Remove saved_in_section and associated no-op code.
4743 * Makefile.in (varasm.o): Correct dependencies.
4745 Sun Jul 22 17:55:11 2001 Alexandre Oliva <aoliva@redhat.com>
4747 * config/i386/freebsd-aout.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
4748 the definition in defaults.h.
4750 Sun Jul 22 21:31:04 CEST 2001 Jan Hubicka <jh@suse.cz>
4752 * jump.c: Update comments.
4753 (delete_barrier_successors, delete_unreferenced_labels,
4754 delete_noop_moves, tension_vector_labels, delete_from_jump_chain,
4755 delete_labelref_insn, redirect_tablejump, jump_optimize_1,
4756 jump_optimize, jump_optimize_minimal): Kill.
4757 (rebuild_jump_labels): Move code from jump_optimize_1.
4758 (purge_line_number_notes): Likewise.
4759 (copy_loop_headers): Likewise.
4760 * reg-stack.c: Update comment.
4762 * rtl.h (jump_optimize, jump_optimize_1, JUMP_NOOP_MOVES,
4763 JUMP_AFTER_REGSCAN): Kill.
4764 * toplev.c (rest_of_compilation): Use cleanup_cfg, call
4765 purge_line_number_notes and copy_loop_headers.
4767 2001-07-22 Neil Booth <neil@daikokuya.demon.co.uk>
4768 Richard Henderson <rth@redhat.com>
4770 * dbxout.c (dbxout_global_decl): New.
4771 (xcoff_debug_hooks, dbx_debug_hooks): Use it.
4772 * sdbout.c (sdbout_finish): New.
4773 (sdbout_debug_hooks): Use it, add comments.
4774 (sdbout_global_decl): Defer initialised public vars to
4776 * varasm.c (assemble_variable): Don't output debug information
4777 for file-scope variables.
4779 2001-07-22 Richard Henderson <rth@redhat.com>
4781 * config/alpha/alpha.c (get_trap_mode_suffix): New.
4782 (get_round_mode_suffix): New.
4783 (print_operand): Use them for [/]. Remove support for [&'`()+].
4784 * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Update.
4785 * config/alpha/alpha.md (attr round_suffix): New.
4786 (attr trap_suffix): New.
4787 (all insns): Set them appropriately. Use %/ instead of the
4790 2001-07-22 Neil Booth <neil@cat.daikokuya.demon.co.uk>
4792 * dbxout.c, sdbout.c, varasm.c: Revert most recent debug patch.
4794 2001-07-22 Richard Henderson <rth@redhat.com>
4796 * regrename.c (regrename_optimize): Compute nregs for each
4797 potential target register.
4799 2001-07-21 Neil Booth <neil@daikokuya.demon.co.uk>
4800 Richard Henderson <rth@redhat.com>
4802 * dbxout.c (dbxout_global_decl): New.
4803 (xcoff_debug_hooks, dbx_debug_hooks): Use it.
4804 * sdbout.c (sdbout_finish): New.
4805 (sdbout_debug_hooks): Use it, add comments.
4806 (sdbout_global_decl): Defer initialised public vars to
4808 * varasm.c (assemble_variable): Don't output debug information
4809 for file-scope variables.
4811 2001-07-21 H.J. Lu (hjl@gnu.org)
4813 * config/mips/mips.c (mips_cpu): Moved into ...
4814 (override_options): Here.
4816 * config/mips/mips.h (mips_cpu_attr): Replace mips_cpu with
4818 (mips_cpu): Removed.
4820 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4822 * config/m68hc11/m68hc11.md ("andqi3"): Accept d as second operand.
4823 ("iorqi3"): Likewise.
4824 ("xorqi3"): Likewise.
4825 ("*addhi3"): Fix constraint to avoid reloading in a soft register.
4826 ("*subhi3_sp): Likewise.
4827 ("*subhi3"): Likewise.
4828 ("extendhisi2"): Accept D, X and Y as source operand to avoid
4831 2001-07-21 Nathan Sidwell <nathan@codesourcery.com>
4833 * doc/tm.texi: Remove DEFAULT_VTABLE_THUNKS.
4834 * config/freebsd.h: Likewise.
4835 * config/linux.h: Likewise.
4836 * config/openbsd.h: Likewise.
4837 * config/alpha/linux-elf.h: Likewise.
4838 * config/arm/linux-elf.h: Likewise.
4839 * config/d30v/d30v.h: Likewise.
4840 * config/fr30/fr30.h: Likewise.
4841 * config/ia64/aix.h: Likewise.
4842 * config/ia64/ia64.h: Likewise.
4843 * config/mips/linux.h: Likewise.
4844 * config/pj/pj.h: Likewise.
4845 * config/rs6000/linux.h: Likewise.
4846 * config/sparc/linux.h: Likewise.
4847 * config/sparc/linux64.h: Likewise.
4849 2001-07-20 Bruce Korb <bkorb@gnu.org>
4851 * fixinc/fixincl.c(test_for_changes): force unsigned char comparisons
4852 because getc() and char* may disagree on signedness.
4854 2001-07-20 Richard Henderson <rth@redhat.com>
4856 * doc/rtl.texi (REG_DEAD): Update for current semantics.
4858 * flow.c (try_redirect_by_replacing_jump): Correctly compute which
4859 insns to delete in the presence of cc0 in a jump insn.
4861 Fri Jul 20 22:14:49 CEST 2001 Roman Zippel <zippel@linux-m68k.org>
4862 Jan Hubicka <jh@suse.cz>
4864 * m68k.md (zero_extend?i?i2 expander): Use gen_lowpart instead
4865 of doing the change by hand.
4867 Fri Jul 20 21:59:42 CEST 2001 Jan Hubicka <jh@suse.cz>
4869 * rtlanal.c (set_noop_p): Return true for noop jumps.
4871 * expr.c (emit_single_push_insn): Add call to push expander.
4872 * expr.h (optab_index): Add OTI_push
4873 (push_optab): New constant.
4874 * genopinit.c (optabs): Add push_optab.
4875 * optabs.c (init_optab): Init push optab.
4876 * md.texi (push??1): Document
4878 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4880 * config/m68hc11/m68hc11.md ("movdi", "movdi_internal"): Use an
4881 expand to emit the pattern; put a REG_INC note for push/pop
4883 ("movdf", "movdf_internal"): Likewise.
4884 ("movsi", "movsi_internal"): Likewise.
4885 ("movsf", "movsf_internal"): Likewise.
4886 ("movhi", "movqi"): Emit a REG_INC note for push/pop instructions.
4888 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4890 * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Don't use
4893 2001-07-20 Daniel Berlin <dan@cgsoftware.com>
4895 * params.def: Change default max inline insns to 100.
4897 2001-07-20 Diego Novillo <dnovillo@redhat.com>
4899 * combine.c (combine_simplify_rtx): Generate a new shift operation
4900 when simplifying the first operand of a (neg (ashift)) expression.
4902 2001-07-20 Roman Lechtchinsky <rl@cs.tu-berlin.de>
4904 * regclass.c (N_REG_INTS): Use only 32 bits per element.
4906 2001-07-20 Kelley Cook <kelley.cook@home.com>
4908 * doc/install.texi (sparc-sun-solaris*): Add in 4.x assembler bug
4909 information. Move rest into ...
4910 (*-*-solaris): ... here. Eliminate redundant information and
4911 reword necessary packages section. Delete 4.x assembler bug info.
4912 (sparc-sun-*): Merge into ...
4913 (sparc-sun-sunos*): here.
4915 2001-07-20 Catherine Moore <clm@redhat.com>
4917 * config/v850/v850.md (casesi): Generate LABEL_REF
4920 Fri Jul 20 14:12:57 CEST 2001 Jan Hubicka <jh@suse.cz>
4922 * i386-protos.h (ix86_zero_extend_to_Pmode): Declare.
4923 * i386.c (ix86_zero_extend_to_Pmode): Make global.
4924 * i386.md (strclrsi expander): Use it.
4926 Fri Jul 20 13:24:16 CEST 2001 Jan Hubicka <jh@suse.cz>
4928 * integrate.c (copy_insn_list): handle
4929 NOTE_INSN_DELETED_LABEL, as if it were CODE_LABEL.
4930 (copy_rtx_and_substitute): Likewise; behave to NOTE_INSN_DELETED_LABEL
4931 identically as to CODE_LABEL.
4933 * fold-const (fold): Convert A/B/C to A/(B*C) and
4936 * except.c (connect_post_landing_pads): Delete the RESX insns.
4938 2001-07-20 Aldy Hernandez <aldyh@redhat.com>
4940 * config/mips/mips.h (ISA_HAS_NMADD_NMSUB): New macro.
4942 * config/mips/mips.md (nmadd/nmsub): Use macro.
4944 2001-07-20 Nathan Sidwell <nathan@codesourcery.com>
4946 * cppinit.c (remove_dup_dir): Make static.
4947 (remove_dup_dirs): Make static. Only warn about preempting a
4948 system directory with a non-system directory.
4950 2001-07-19 Geoffrey Keating <geoffk@redhat.com>
4952 * ifcvt.c (noce_try_store_flag_constants): Correct order
4953 of parameters to trunc_int_for_mode.
4955 2001-07-19 Mark Mitchell <mark@codesourcery.com>
4957 * reorg.c (fill_simple_delay_slots): If an instruction might throw
4958 an exception that will be caught within this function, do not fill
4959 its delay slot with any subsequent instruction.
4961 2001-07-19 Steve Ellcey <sje@cup.hp.com>
4963 * tm.texi (POINTERS_EXTEND_UNSIGNED) Modify definition.
4964 * optabs.c (can_extend_p) Check HAVE_ptr_extend for a specialized
4965 pointer extension instruction.
4966 * combine.c (nonzero_bits,num_sign_bit_copies) Likewise.
4967 * simplify-rtx.c (simplify_unary_operation) Likewise.
4968 * explow.c (convert_memory_address) Check value of
4969 POINTERS_EXTEND_UNSIGNED to avoid some conversions when
4971 * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, MULTILIB_OPTIONS,
4972 MULTILIB_DIRNAMES, MULTILIB_MATCHES) Add multilib support.
4973 * config/ia64/hpux.h (CPP_SPEC, ASM_SPEC, SUBTARGET_SWITCHES)
4974 Add Multilib Support.
4975 (POINTERS_EXTEND_UNSIGNED) Define for ILP32 support.
4976 * config/ia64/ia64.h (MASK_ILP32, TARGET_ILP32, SUBTARGET_SWITCHES)
4977 Add Multilib Support.
4978 (POINTER_SIZE, LONG_TYPE_SIZE, MAX_LONG_TYPE_SIZE) Modify for ILP32
4980 * config/ia64/ia64.c (rtx_needs_barrier) Add support for addp4.
4981 * config/ia64/ia64.md (ptr_extend) New instruction to "swizzle"
4982 a 32 bit HP-UX pointer into a 64 bit HP-UX pointer.
4984 2001-07-19 Alexandre Oliva <aoliva@redhat.com>
4986 * simplify-rtx.c (simplify_replace_rtx): Try to obtain mode from
4987 old and new operands in `<', `3' and `b'.
4989 2001-07-19 Neil Booth <neil@daikokuya.demon.co.uk>
4991 * Makefile.in (emit-rtl.o, c-decl.o): Depend on debug.h.
4992 (final.o): Don't depend on xcoffout.h, dbxout.h or sdbout.h.
4993 (toplev.o): Don't depend on xcoffout.h.
4994 * c-decl.c: Include debug.h
4995 (duplicate_decls): Use debug hook.
4996 * dbxout.c (dbxout_source_file, dbxout_args): Make static.
4997 (dbx_debug_hooks, xcoff_debug_hooks): Update.
4998 (dbxout_types): Remove.
4999 * dbxout.h (dbxout_source_file, dbxout_types, dbxout_args): Remove.
5000 * debug.c (do_nothing_debug_hooks): Update.
5001 (debug_true_tree, debug_nothing_rtx): New.
5002 * debug.h (struct rtx_def): New.
5003 (struct gcc_debug_hooks): New hooks ignore_block,
5004 outlining_inline_function and label.
5005 (debug_true_tree, debug_nothing_rtx, dwarf2out_frame_init,
5006 dwarf2out_frame_finish): New.
5007 * dwarf2out.c (dwarf2out_ignore_block, dwarf2out_abstract_function):
5008 Make static, update prototype.
5009 (dwarf2_debug_hooks): Update.
5010 * dwarf2out.h (dwarf2out_ignore_block, dwarf2out_abstract_function,
5011 dwarf2out_frame_init, dwarf2out_frame_finish): Remove.
5012 * dwarfout.c (dwarf_debug_hooks): Update.
5013 * emit-rtl.c: Include debug.h.
5014 (remove_unnecessary_notes): Use debug hook.
5015 * final.c: Don't include dbxout.h, xcoffout.h or sdbout.h.
5016 (final_scan_insn): Use debug hook.
5017 * integrate.c (output_inline_function): Use debug hook.
5018 * sdbout.c (sdbout_toplevel_data, sdbout_label): Make static.
5019 (sdb_debug_hooks): Update.
5020 * sdbout.h (sdbout_label, sdbout_toplevel_data): Remove.
5021 * toplev.c: Don't include xcoffout.h.
5022 (note_outlining_of_inline_function, debug_ignore_block): Remove.
5023 * toplev.h (note_outlining_of_inline_function, debug_ignore_block):
5025 * tree.h (dwarf2out_do_frame): Remove.
5027 2001-07-19 Catherine Moore <clm@cygnus.com>
5029 * config/v850/v850.h (ASM_OUTPUT_LABELREF): Restore.
5031 2001-07-19 Geoffrey Keating <geoffk@redhat.com>
5033 * reload1.c (eliminate_regs_in_insn): When updating a set
5034 to the frame pointer to the hardware frame pointer, perform
5035 the update always not just when REPLACE is set.
5037 * reload1.c (choose_reload_regs): Don't inherit a reload
5038 that crosses multiple registers if registers past the first
5039 don't fit in the desired class.
5041 * ifcvt.c (noce_try_store_flag_constants): Use trunc_int_for_mode
5042 when negating constants.
5044 2001-07-19 Toon Moene <toon@moene.indiv.nluug.nl>
5046 * tree.def: Document restriction on {L|R}SHIFT_EXPR's second argument.
5047 * doc/tree.texi: Ditto.
5049 2001-07-19 Mark Kettenis <kettenis@wins.uva.nl>
5050 Jakub Jelinek <jakub@redhat.com>
5052 * unwind-dw2.c (_Unwind_FrameState): Add eh_ptr.
5053 (extract_cie_info): Handle "eh" augmentation properly,
5055 (struct frame_state, __frame_state_for): New.
5057 2001-07-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5059 * config/alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL,
5060 HANDLE_SYSV_PRAGMA): Define.
5061 * mips-tfile.c (add_ext_symbol): Pass complete symbol ptr, inline
5063 (copy_object): Caller changed.
5065 2001-07-19 Andreas Schwab <schwab@suse.de>
5067 * configure.in (assembler dwarf2 debug_line support): Define nop
5069 * configure: Regenerated.
5071 2001-07-19 Neil Booth <neil@daikokuya.demon.co.uk>
5073 * Makefile.in (toplev.o, dwarfout.o, final.o): Don't depend on
5075 * dbxout.c (dbxout_function): Rename dbxout_funciton_decl, move
5076 to conditionally compiled block.
5077 (dbx_debug_hooks, xcoff_debug_hooks): Update.
5078 * dbxout.h (dbxout_function): Remove.
5079 * debug.c (do_nothing_debug_hooks): Update.
5080 * debug.h (struct gcc_debug_hooks): New hooks function_decl,
5081 global_decl, deferred_inline_function.
5082 * dwarf2out.c (dwarf2_debug_hooks): Update.
5083 (dwarf2out_global_decl): New.
5084 * dwarfout.c: Don't include dwarfout.h.
5085 (dwarfout_global_decl, dwarfout_function_decl,
5086 dwarfout_deferred_inline_function): New.
5087 (dwarf_debug_hooks): Update.
5088 * dwarfout.h: Remove.
5089 * final.c: Don't include dwarfout.h.
5090 * sdbout.c (sdbout_global_decl): New.
5091 (sdbout_debug_hooks): Update.
5092 * toplev.c: Don't include dwarfout.h.
5093 (check_global_declarations, rest_of_compilation): Use new debug hooks.
5094 (note_deferral_of_defined_inline_function): Remove.
5095 * toplev.h (note_deferral_of_defined_inline_function): Remove.
5096 * ch/Makefile.in (lex.o): No dependence on dwarfout.h.
5097 * ch/lex.c: Don't include dwarfout.h.
5098 * cp/Make-lang.in (decl2.o): No dependence on dwarfout.h, dwarf2out.h.
5099 (semantics.o, optimize.o): Depend on debug.h not dwarfout.h.
5100 * cp/decl2.c: Don't include dwarfout.h and dwarf2out.h.
5101 * cp/optimize.c: Include debug.h.
5102 (maybe_clone_body): Use debug hook.
5103 * cp/semantics.c: Include debug.h.
5104 (expand_body): Use debug hook.
5105 * po/POTFILES.in: Remove dwarfout.h.
5107 2001-07-19 Neil Booth <neil@daikokuya.demon.co.uk>
5109 * c-lex.c (c_lex): Remove CPP_INT, CPP_FLOAT cases.
5110 * c-parse.in (yyerror, _yylex): Similarly.
5111 * cppexp.c (parse_number, parse_defined, lex, _cpp_parse_expr):
5112 Don't use CPP_INT, CPP_FLOAT; CPP_NUMBER is enough.
5114 * cpplib.h (CPP_INT, CPP_FLOAT): Remove.
5115 * cp/spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
5117 2001-07-18 Jeff Sturm <jsturm@one-point.com>
5119 * dwarf2out.c (dwarf2out_abstract_function): Don't emit
5120 in-class declaration at -g1. Fixes c++/2814.
5122 2001-07-18 Richard Henderson <rth@redhat.com>
5124 * doc/md.texi (reload_in/out): Document restrictions in predicates
5125 and constraints for these patterns. Document empty string matching
5128 2001-07-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5130 * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Check for ASM_WEAKEN_LABEL.
5132 Wed Jul 18 20:47:36 CEST 2001 Jan Hubicka <jh@suse.cz>
5134 * cse.c: Undo my previous patch.
5136 2001-07-18 Tom Tromey <tromey@redhat.com>
5139 * configure: Rebuilt.
5140 * configure.in: Don't check for iconv.h or iconv(); use AM_ICONV
5142 * aclocal.m4 (AM_ICONV): New macro from Bruno Haible.
5144 Wed Jul 18 18:46:30 CEST 2001 Richard Henderson <rth@cygnus.com>
5145 Jan Hubicka <jh@suse.cz>
5147 * flow.c (redirect_edge_and_branch): Bail out on complex edges.
5148 (try_optimize_cfg): Do not remove tail recursive labels before sibcall.
5149 * jump.c (mark_jump_label): Do not forward branches.
5151 Wed Jul 18 18:35:01 CEST 2001 Jan Hubicka <jh@suse.cz>
5153 * cse.c (delete_trivially_dead_insns): Delete the libcall block
5154 when return value is unused.
5156 Wed Jul 18 18:28:16 CEST 2001 Jan Hubicka <jh@suse.cz>
5158 * gcse.c (pre_insert_copy_insn): Call update_ld_motion_stores.
5160 Wed Jul 18 12:05:29 2001 Nicola Pero <n.pero@mi.flashnet.it>
5162 * gthr-posix.h (__gthread_objc_mutex_trylock): Fixed return value
5163 on error. We can't blindly return the result of
5164 pthread_mutex_trylock because it returns a positive number on
5165 error, while we must return -1 on error.
5166 (__gthread_objc_mutex_lock, __gthread_objc_mutex_unlock): Similar
5168 Reported by Stephen Brandon <stephen@brandonitconsulting.co.uk>.
5170 2001-07-18 Andreas Jaeger <aj@suse.de>
5172 * integrate.c (output_inline_function): Correct type of debug_hooks.
5174 2001-07-18 Toon Moene <toon@moene.indiv.nluug.nl>
5176 * combine.c (combine_simplify_rtx): DIV can be treated
5177 associatively for floats if unsafe math optimisations are enabled.
5179 2001-07-17 Richard Henderson <rth@redhat.com>
5181 * reload.c (push_secondary_reload): Accept empty-string for ALL_REGS.
5183 2001-07-17 Richard Henderson <rth@redhat.com>
5185 * calls.c (prepare_call_address): New parameter SIBCALLP. If true,
5186 don't force the function address into a register.
5187 (expand_call, emit_library_call_value_1): Update callers.
5188 * builtins.c (expand_builtin_apply): Likewise.
5189 * expr.h (prepare_call_address): Update decl.
5191 2001-07-17 Chandrakala Chavva <cchavva@redhat.com>
5193 * config.gcc: For *-*-chorusos triplet, get chorus.h file from
5195 * config/i386/chorus.h: Move up.
5196 * config/sparc/chorus.h: Likewise.
5197 * config/rs6000/chorus.h: Likewise.
5198 * config/chorus.h: Moved here.
5200 2001-07-17 Andreas Schwab <schwab@suse.de>
5202 * configure.in (assembler eh_frame optimization): Handle big
5204 * configure: Regenerated.
5206 Tue Jul 17 23:43:31 CEST 2001 Jan Hubicka <jh@suse.cz>
5208 * expr.c (epxand_expr): Convert divisions into multiplications by
5209 reciprocals if -ffast-math.
5211 2001-07-17 Neil Booth <neil@daikokuya.demon.co.uk>
5213 * dbxout.c (dbxout_really_begin_function): Rename to
5214 dbxout_begin_function.
5215 (dbx_debug_hooks, xcoff_debug_hooks): Update.
5216 (dbxout_begin_function): Remove.
5217 (dbxout_function): Update.
5218 (dbxout_source_line): Update prototype.
5219 * dbxout.h (dbxout_begin_function): Remove.
5220 * debug.c (do_nothing_debug_hooks): Update.
5221 (debug_nothing_tree): Update.
5222 (debug_nothing_charstar_rtx): Remove.
5223 * debug.h (union tree_node): Declare.
5224 (struct rtx_def): Remove.
5225 (gcc_debug_hooks): New hooks begin_prologue, end_prologue,
5226 begin_function. Change source_line prototype.
5227 (debug_nothing_tree): New.
5228 (debug_nothing_charstar_rtx): Delete.
5229 (dwarf2out_begin_prologue): Moved from ...
5231 * dwarf2out.c (dwarf2_debug_hooks): Update.
5232 (dwarf2out_begin_prologue): Update prototype. If genuine dwarf2
5233 debug info, call dwarf2out_source_line.
5234 (dwarf2out_souce_line): Update prototype.
5235 * dwarfout.c (dwarfout_begin_function): Rename dwarfout_end_prologue.
5236 Change prototype, make static.
5237 (dwarfout_source_line): Update prototype.
5238 (dwarf_debug_hooks): Update.
5239 * dwarfout.h (dwarfout_begin_function): Remove.
5240 * final.c (final_start_function, final_scan_insn): Use appropriate
5241 debug hooks, update to use notice_source_line.
5242 (output_source_line): Rename notice_source_line. Don't call the
5243 source_line debug hook.
5244 * sdbout.c (sdbout_begin_function): Rename sdbout_begin_prologue,
5245 make static, update prototype.
5246 (sdbout_mark_begin_function): Rename sdbout_begin_function, update
5248 (sdbout_end_prologue): New.
5249 (sdbout_source_line): Update prototype.
5250 (sdbout_debug_hooks): Update.
5251 (sdbout_symbol): Remove unused var.
5252 * sdbout.h (sdbout_begin_function, sdbout_mark_begin_function):
5254 * varasm.c: Include debug.h.
5255 (assemble_start_function): Use begin_function debug_hook.
5256 * xcoffout.c (xcoffout_begin_prologue): Rename xcoffout_begin_function,
5257 update with prototype.
5258 (xcoffout_source_line): Update prototype.
5259 * xcoffout.h (xcoffout_begin_prologue): Rename xcoffout_begin_function,
5261 (xcoffout_source_line): Update prototype.
5263 2001-07-17 Richard Henderson <rth@redhat.com>
5265 * c-typeck.c (build_binary_op): Do not shorten unsigned
5266 right shift after sign extension.
5268 Tue Jul 17 16:56:05 CEST 2001 Jan Hubicka <jh@suse.cz>
5270 * combine.c (combine_simplify_rtx): Attempt to simplify
5271 a*(b/c) as (a*b)/c for floats in unsafe_math mode.
5273 * simplify-rtx.c (avoid_constatn_pool_reference): New static function.
5274 (simplify_binary_operation, simplify_unary_operation,
5275 simplify_relational_operation): Use it.
5277 * combine.c (combine_simplify_rtx): Don't do associative law
5278 on divisions; allow associative law on floats.
5280 2001-07-17 H.J. Lu <hjl@gnu.org>
5281 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5283 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define iff ASM_WEAKEN_LABEL and
5284 ASM_OUTPUT_WEAK_ALIAS are defined.
5285 * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Define if possible.
5286 * config/mips/iris6.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL):
5288 * config/mips/iris5.h: ... here.
5289 (HANDLE_SYSV_PRAGMA): Defined as 1.
5290 * varasm.c (weak_finish): Use ASM_OUTPUT_WEAK_ALIAS.
5291 * doc/tm.texi (ASM_OUTPUT_WEAK_ALIAS): Support the undefined weak
5294 2001-07-17 Joseph S. Myers <jsm28@cam.ac.uk>
5296 * c-parse.in (all_prefix_attributes): New variable.
5297 (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): New macros.
5298 (maybe_resetattrs): New production.
5299 (c_parse_init, datadef, fndef, datadecl, setspecs, setattrs, decl,
5300 maybe_type_quals_setattrs, initdecls, notype_initdecls, initdcl,
5301 notype_initdcl, nested_function, notype_nested_function,
5302 component_decl, components, components_notype,
5303 component_declarator, component_notype_declarator,
5304 absdcl_maybe_attribute, parm, firstparm, setspecs_fp, ivar_decl,
5305 ivars, mydecl, myparm): Update. Avoid prefix attributes just
5306 after a comma being applied to more than one declarator.
5307 * doc/extend.texi (Attribute Syntax): Update. Remove
5308 documentation of bugs that are no longer present.
5310 2001-07-13 Eric Christopher <echristo@redhat.com>
5312 * config/mips/mips.h: Change TUNE_MIPS* options to use
5314 (EXTRA_SPECS): Add cc1_cpu_spec.
5315 * config/mips/mips.md (muldf3): Fix typo.
5317 2001-07-16 Richard Henderson <rth@redhat.com>
5319 * config/m68k/m68k.c: Include expr.h and reload.h.
5320 (print_operand_address) [16 bit int]: Cast INTVAL to int for %d.
5321 [general int]: Use HOST_WIDE_INT_PRINT_DEC.
5323 2001-07-16 Daniel Berlin <dan@cgsoftware.com>
5324 Richard Henderson <rth@redhat.com>
5326 * cse.c (set_live_p): Take INSN argument for cc0; update callers.
5327 (insn_live_p): Fix fall off end of function.
5328 (dead_libcall_p): Remove COUNTS argument; update callers.
5329 (delete_trivially_dead_insns): Remove unused variables.
5331 2001-07-17 Andreas Jaeger <aj@suse.de>
5333 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix output format for
5336 * lcm.c (optimize_mode_switching): Avoid warning for unused
5337 variable if !NORMAL_MODE.
5339 * flow.c (try_crossjump_to_edge): Remove unused variable.
5341 2001-07-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
5343 * inclhack.def (ultrix_atexit_param): New hack to fix ultrix 4.3
5344 atexit declaration in stdlib.h.
5346 2001-07-16 Richard Begg <Richard.Begg@colesmyer.com.au>
5348 * fixinc/inclhack.def(hpux_vsnprintf): brokenness in stdio.h
5350 Mon Jul 16 22:48:00 CEST 2001 Jan Hubicka <jh@suse.cz>
5352 * basic-block.h (CLEANUP_PRE_SIBCALL): New constant.
5353 * except.c (finish_eh_generation): Update call of cleanup_cfg;
5354 do rebuild_jump_labels instead of jump_optimize
5355 * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
5356 * toplev.c (rest_of_compulation): Likewise for -Wreturn_type.
5357 * flow.c (try_optimize_cfg): Remove unneeded code_labels.
5359 * flow.c: Include timevar.h
5360 (find_basic_block): Push/pop timevar;
5361 (cleanup_cfg): Likewise.
5362 * timevar.def (TV_CFG, TV_CLEANUP_CFG): New.
5363 * Makefile: Add dependencies on timevar.h
5365 * integrate.c (save_for_inline): Kill all BASIC_BLOCK notes.
5366 (copy_insn_list): Avoid killing of BASIC_BLOCK notes.
5368 * rtl.h (delete_trivially_dead_insns): Add new parameter.
5369 * toplev.c (rest_of_compilation): Update calls.
5370 * cse.c (set_live_p, insn_live_p, dead_libcall_p): Break out from ...
5371 (delete_trivially_dead_insns): ... here; accept new argument
5372 preserve_basic_blocks; preserve basic blocks if set.
5374 * reg-stack.c (stack_regs_mentioned): Return 0 if
5375 stack_regs_mentioned_data is not initialized.
5376 (reg_to_stack): Make stack_regs_mentioned survive after the
5377 reg-stack is completted; do not call cleanup_cfg.
5378 * toplev.c (rest_of_compilation): Do cleanup_cfg before bb-reorder;
5379 make cleanup_cfg after bb-reorder to output to debug file.
5381 2001-07-16 Richard Henderson <rth@redhat.com>
5383 * regclass.c (init_reg_sets): Use only 32 bits per initializer
5384 from int_reg_class_contents.
5386 2001-07-16 Richard Henderson <rth@redhat.com>
5388 * hard-reg-set.h (regs_invalidated_by_call): Declare.
5389 * regclass.c (regs_invalidated_by_call): Move from cse.c.
5390 (init_reg_sets_1): Move initialization from cse_main.
5391 * cse.c (regs_invalidated_by_call): Move to regclass.c.
5392 (cse_main): Move its initialization also.
5393 * df.c (df_insn_refs_record): Use regs_invalidated_by_call.
5394 * flow.c (propagate_one_insn): Likewise.
5395 * gcse.c (compute_hash_table): Likewise.
5396 (compute_kill_rd, compute_store_table): Likewise.
5397 * sched-deps.c (sched_analyze_1): Likewise.
5399 Mon Jul 16 18:07:07 2001 J"orn Rennecke <amylaar@redhat.com>
5401 * gcse.c (pre_insert_copy_insn): Use gen_move_insn instead of
5404 2001-07-16 Steve Ellcey <sje@cup.hp.com>
5406 * dominance.c (calc_dfs_tree_nonrec): Reverse order of tests
5407 in if statement so we don't access undefined memory.
5409 2001-07-16 Daniel Berlin <dan@cgsoftware.com>
5411 * gcse.c: Update comment at top.
5412 Update comment on mem handling.
5413 mem_last_set, mem_first_set, mem_set_in_block: gone.
5414 Declaration of reg_set_info: gone.
5415 (oprs_unchanged_p): Don't use mem_*set_* anymore. They are
5416 pointless with load_killed_in_block_p (they are *more*
5417 conservative then it, not less, and less accurate).
5418 (oprs_not_set_p): Ditto.
5419 (alloc_gcse_mem): Don't allocate mem_set_in_block
5420 (free_gcse_mem): Don't free it, either.
5421 (record_last_mem_set_info): Update comment in front, remove
5422 mem_*set_* stuff. Note the reason we don't handle stores directly
5424 (compute_hash_table): Update comments to reflect reality. Remove
5425 mem_*set_* references.
5426 (reset_opr_set_tables): Remove mem_*set_* references.
5428 (mark_set): Ditto. Also remove double sets of bitmaps for REG's.
5429 (mark_clobber): Ditto (on both parts, we double set here too).
5430 (expr_killed_p): Remove mem_set_in_block test.
5431 (compute_transp): Remove mem_set_in_block test.
5433 * ssa-ccp.c: (optimize_unexecutable_edges): Add note about removal
5434 of edge, and removal of phi alternative to dump file.
5435 (ssa_ccp_substitute_constants): Add note about register now being
5436 constant, and which uses were replaced in what insns to dump file.
5438 2001-07-16 Andreas Jaeger <aj@suse.de>
5440 * gcov.c (output_data): Use HOST_WIDEST_INT_PRINT_DEC to output
5441 variables of type HOST_WIDEST_INT.
5443 * libgcc2.c (__bb_exit_func): Handle gcov_type as long long.
5444 (__bb_exit_func): Correct type of count_max to avoid overflow.
5445 (num_digits): Handle long long argument.
5447 * combine.c (gen_lowpart_for_combine): Remove unused variable.
5449 2001-07-16 Neil Booth <neil@cat.daikokuya.demon.co.uk>
5451 * output.h (sdb_begin_function_line): Restore as an extern
5453 * sdbout.c (sdb_begin_function_line): Make extern.
5455 2001-07-15 Richard Henderson <rth@redhat.com>
5457 * machmode.def (Pmode): Redefine if GENERATOR_FILE.
5458 * genrecog.c (maybe_both_true_mode): New.
5459 (maybe_both_true_2): Use it.
5460 (write_switch): Don't put Pmode in a switch.
5461 * rtl.c (mode arrays): Don't explicitly size them.
5463 Sun Jul 15 14:07:36 CEST 2001 Jan Hubicka <jh@suse.cz>
5465 * toplev.c (rest_of_compilation): Fix register_life_up_to_date
5466 handling; move unconditional splitting before mode switching.
5468 * i386.md (type): Add fistp type.
5469 (i387, length_attr, scheduling definitions): Handle this type.
5470 (fix_trunc?f?i2): Revamp to use mode switching.
5471 (fix_trunct?f?i_nonmemory, fix_trunc?f?i_memory): New patterns.
5472 * i386.h (fp_cw_mode): New enum
5473 (OPTIMIZE_MODE_SWITCHING, NUM_MODES_FOR_MODE_SWITCHING, MODE_NEEDED,
5474 MODE_PRIORITY_TO_MODE, ENUM_MODE_SET): New macros.
5476 Sun Jul 15 12:53:51 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5478 * Makefile.in (integrate.o): Add debug.h.
5479 * integrate.c (debug.h): Add.
5480 (output_inline_function): Save, reset, and restore debug_hooks.
5482 2001-07-15 Richard Henderson <rth@redhat.com>
5484 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use CCmode
5485 instead of COMPARE for the EQUIV expression.
5487 2001-07-15 Richard Henderson <rth@redhat.com>
5489 * flow.c (redirect_edge_and_branch_force): Initialize
5490 global_live_at_start and global_live_at_end.
5491 (allocate_bb_life_data): Export.
5492 * basic-block.h (allocate_bb_life_data): Declare.
5493 * toplev.c (rest_of_compilation): Call it.
5495 2001-07-15 Richard Henderson <rth@redhat.com>
5497 * config/alpha/alpha.c (alpha_tablejump_addr_vec): New.
5498 (alpha_tablejump_best_label): New.
5499 * config/alpha/alpha-protos.h: Declare them.
5500 * config/alpha/alpha.md: Use braced strings for code blocks.
5501 (tablejump_osf): Break out add with r29.
5502 (tablejump_osf_internal): Remove.
5503 (tablejump_osf_nt_internal): Rename from tablejump_nt_internal,
5504 use alpha_tablejump_addr_vec and alpha_tablejump_best_label.
5506 Sun Jul 15 00:53:35 CEST 2001 Jan Hubicka <jh@suse.cz>
5508 * loop.c (scan_loop): Add USEs inside PARALLELs into dependencies
5511 * toplev.c (rest_of_compilation): Allow new pseudoes for mode switching.
5513 * i386-protos.h (ix86_split_fp_branch): Update prototype.
5514 (ix86_fp_jump_nontrivial_p): New.
5515 * i386.md (fp_jcc_?): Update call of split_fp_branch;
5516 use ix86_fp_jump_nontrivial_p.
5517 * i386.c (ix86_fp_jump_nontrivial_p): New.
5518 (ix86_split_fp_branch): Accept code instead of rtx.
5519 (ix86_expand_compare): Expand comparison early in case
5520 doing so is resonably cheap.
5522 2001-07-15 Nick Clifton <nickc@cambridge.redhat.com>
5524 * config/rs6000/sysv4.h (CPP_ENDIAN_BIG_SPEC): Assert 'endian'
5526 (CPP_ENDIAN_LITTLE_SPEC): Assert 'endian' not 'machine'.
5527 (CPP_ENDIAN_SOLARIS_SPEC): Assert 'endian' not 'machine'.
5529 2001-07-15 Neil Booth <neil@daikokuya.demon.co.uk>
5531 * dbxout.c (dbxout_source_line): Make static, update prototype.
5532 (dbx_debug_hooks, xcoff_debug_hooks): Add new hooks.
5533 (dbxout_init, dbxout_finish, dbxout_source_line,
5534 dbxout_begin_block, dbxout_end_block): Update for new prototypes.
5535 * dbxout.h (dbxout_source_line): Delete.
5536 * debug.c (debug_nothing_file, debug_nothing_file_int,
5537 debug_nothing_file_charstar_rtx): New.
5538 (do_nothing_debug_hooks): Update.
5539 (debug_nothing_void, debug_nothing_charstar_rtx,
5540 dwarf2out_end_epilogue): New.
5541 (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
5542 * debug.h (struct rtx_def): Declare.
5543 (gcc_debug_hooks): New hooks source_line, end_epilogue
5545 (debug_nothing_void, debug_nothing_charstar_rtx,
5546 dwarf2out_end_epilogue): New.
5547 (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
5548 * dwarf2out.c (dwarf2out_source_line): Make static, update prototype.
5549 (dwarf2_debug_hooks): Update.
5550 (dwarf2out_init, dwarf2out_finish, dwarf2out_source_line,
5551 dwarf2out_begin_block, dwarf2out_end_block): Update for new prototypes.
5552 * dwarf2out.h (dwarf2out_source_line): Remove.
5553 * dwarfout.c (dwarfout_end_epilogue, dwarfout_end_function):
5554 Make static, update prototype.
5555 (dwarfout_init, dwarfout_finish, dwarfout_source_line,
5556 dwarfout_begin_block, dwarfout_end_block): Update for new prototypes.
5557 (dwarf_debug_hooks): Update.
5558 * dwarfout.h (dwarfout_end_epilogue, dwarfout_source_line,
5559 dwarfout_end_function): Remove.
5560 * final.c (profile_function): Use debug hooks for ending functions
5562 (output_source_line, final_end_function): Update prototype,
5564 (final_start_function, final_scan_insn): Update.
5565 * output.h (sdb_begin_function_line): Remove.
5566 (final_end_function): Update prototype.
5567 * sdbout.c (sdb_begin_function_line): Make static.
5568 (PUT_SDB_EPILOGUE_END): Move to sdbout_end_epilogue.
5569 (sdbout_source_line): New.
5570 (sdbout_end_epilogue, sdbout_end_function): Make static, update
5572 (sdb_debug_hooks): Update.
5573 (sdbout_init, sdbout_source_line,
5574 sdbout_begin_block, sdbout_end_block): Update for new prototypes.
5575 * sdbout.h (sdbout_end_epilogue, sdbout_end_function): Remove.
5576 * toplev.c (compile_file, rest_of_compilation): Update.
5577 * tree.h (dwarf2out_end_epilogue): Move to debug.h.
5578 * xcoffout.c (xcoffout_source_line, xcoffout_begin_block,
5579 xcoffout_end_block, xcoffout_end_epilogue, xcoffout_end_function):
5580 Update for prototype changes.
5581 * xcoffout.h (xcoffout_source_line, xcoffout_begin_block,
5582 xcoffout_end_block, xcoffout_end_epilogue): Update prototypes.
5584 2001-07-15 Richard Henderson <rth@redhat.com>
5586 * config/alpha/alpha.h (TARGET_ABI_OSF): New.
5587 (TARGET_ABI_WINDOWS_NT, TARGET_ABI_OPEN_VMS): Rename; update users.
5588 * config/alpha/alpha-protos.h: Update TARGET_ABI_* users.
5589 * config/alpha/alpha.c: Likewise.
5590 * config/alpha/alpha.md: Likewise.
5591 * config/alpha/alpha32.h: Likewise.
5592 * config/alpha/vms.h: Likewise.
5595 2001-07-14 Richard Henderson <rth@redhat.com>
5597 * config/alpha/alpha.md: Use define_constants for unspec values.
5598 Substitute throughout.
5600 2001-07-14 Tim Josling <tej@melbpc.org.au>
5602 * tree.def (EXPON_EXPR) remove. Never supported anyway.
5604 2001-07-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
5606 * pa.md: Remove unused constraints from define_split's.
5608 2001-04-14 Richard Henderson <rth@redhat.com>
5610 * ifcvt.c (find_cond_trap): Test for exit block.
5612 Sun Jul 15 00:50:20 CEST 2001 Jan Hubicka <jh@suse.cz>
5614 Re-install recently reverted patch.
5615 * emit-rtl.c (try_split): Update mark_jump_label call.
5616 * flow.c (find_sub_basic_blocks): Likewise.
5617 * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
5619 (mark_all_labels): Kill second parameter.
5620 (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
5621 (rebuild_jump_labels, jump_optimize_minimal): Update call
5623 (jump_optimize_1): Kill crossjumping code.
5624 (mark_jump_label): Kill cross_jump parameter.
5625 * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
5626 (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
5627 * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
5629 * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
5631 (dump_file_info): Likewise.
5632 (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
5633 reorganize passes to do reg-stack first, bb-reorder second.
5634 * invoke.texi (-d letters doc): Remove the jump2 pass.
5636 2001-07-14 Richard Henderson <rth@redhat.com>
5638 * ifcvt.c (find_cond_trap): New.
5639 (find_if_header): Call it.
5640 (merge_if_block): Relax existing jump sanity check.
5641 * jump.c (jump_optimize_1): Remove conditional trap handling.
5643 2001-07-14 Alan Modra <amodra@bigpond.net.au>
5645 * config/pa/pa.c (emit_hpdiv_const): Return reg is r2 for 64-bit
5647 (insn_refs_are_delayed): Correct comment.
5648 * config/pa/pa.h (INSN_REFERENCES_ARE_DELAYED): Likewise.
5649 * config/pa/pa.md (mulsi3): If TARGET_64BIT, clobber r2
5650 instead of r31. Make associated insn !TARGET_64BIT, and
5651 provide an additional 64-bit insn that clobbers r2.
5653 (udivsi3): Likewise.
5655 (umodsi3): Likewise.
5657 Sat Jul 14 02:58:38 CEST 2001 Jan Hubicka <jh@suse.cz>
5659 * bb-reorder.c (skip_insn_after_block): Get past the line number notes.
5661 * flow.c (redirect_edge_and_branch_force, split_edge,
5662 try_crossjump_to_edge): Use set_block_for_new_insns.
5663 * bb-reorder.c (emit_jump_to_block_after): Call set_block_for_new_insns.
5665 2001-07-13 H.J. Lu (hjl@gnu.org)
5667 * config/elfos.h (UNIQUE_SECTION): Enable .bss section with
5670 2001-07-13 Geoffrey Keating <geoffk@redhat.com>
5672 Revert H.J. Lu's UNIQUE_SECTION patch of 2001-07-13.
5674 2001-07-13 Joseph S. Myers <jsm28@cam.ac.uk>
5676 * c-common.c (decl_attributes): Take a pointer to the node to
5677 which attributes are to be attached, and a flags argument.
5678 * c-common.h (enum attribute_flags): New.
5679 (decl_attributes): Update prototype.
5680 * c-decl.c (start_decl, push_parm_decl, finish_struct,
5681 finish_enum, start_function): Update calls to decl_attributes.
5682 * c-parse.in (component_declarator, component_notype_declarator,
5683 label): Update calls to decl_attributes.
5685 Fri Jul 13 23:04:00 2001 Denis Chertykov <denisc@overta.ru>
5687 * config/avr/avr.md (strlenhi): PARALLEL keyword removed.
5688 * config/avr/avr.c (legitimate_address_p): Return value changed
5689 from letter to register classes. For better debugging.
5691 2001-07-13 Kazu Hirata <kazu@hxi.com>
5693 * jump.c (reversed_comparison_code_parts): Fix comment typos.
5695 2001-07-13 H.J. Lu (hjl@gnu.org)
5697 * config/elfos.h (UNIQUE_SECTION): Enable .bss section.
5699 2001-07-13 Marc Espie <espie@cvs.openbsd.org>
5701 * config.gcc (*-*-openbsd*): Add fragment to compile libgcc
5702 correctly for shared configurations.
5703 * config/t-libgcc-pic: New.
5704 * config/{i386,m68k,sparc}/t-openbsd: New.
5705 * config/openbsd.h: Include cpu_spec in cpp_spec where needed.
5706 Support -shared. Support debugging libraries with -g.
5707 * config/i386/openbsd.h: Correct ASM_COMMENT_START. Ensure dwarf2
5708 frame information does not emit pointer diffs.
5709 * config/sparc/openbsd.h: Ensure dwarf2 frame information does not
5712 2001-07-13 Geoffrey Keating <geoffk@redhat.com>
5714 Revert Jan Hubicka's patch of Fri Jul 13 14:46:21 CEST 2001.
5716 2001-07-13 David Edelsohn <edelsohn@gnu.org>
5718 * combine.c (try_combine): Ensure const_int pow2 is positive.
5720 2001-07-13 Hartmut Penner <hpenner@de.ibm.com>
5722 * config.gcc: Add configuration for s/390.
5723 * config/s390/s390.c: New. Subroutines for code generation.
5724 * config/s390/s390.h: New. Definitions for s/390.
5725 * config/s390/s390-protos.h: New. Prototypes.
5726 * config/s390/linux.h: New. Definitions for linux for s/390.
5727 * config/s390/linux64.h: New. Definitions for linux for zSeries.
5728 * config/s390/t-linux: New. Makefile fragment.
5729 * config/s390/s390.md: New. Machine description for s/390 and zSeries.
5730 * config/s390/fixdfdi.h: New. Fix L_fix*di.
5732 Fri Jul 13 14:46:21 CEST 2001 Jan Hubicka <jh@suse.cz>
5734 * emit-rtl.c (try_split): Update mark_jump_label call.
5735 * flow.c (find_sub_basic_blocks): Likewise.
5736 * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
5738 (mark_all_labels): Kill second parameter.
5739 (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
5740 (rebuild_jump_labels, jump_optimize_minimal): Update call
5742 (jump_optimize_1): Kill crossjumping code.
5743 (mark_jump_label): Kill cross_jump parameter.
5744 * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
5745 (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
5746 * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
5748 * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
5750 (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
5751 reorganize passes to do reg-stack first, bb-reorder second.
5752 * invoke.texi (-d letters doc): Remove the jump2 pass.
5754 2001-07-12 Steve Ellcey <sje@cup.hp.com>
5756 * toplev.c (compile_file): Put call of ASM_FILE_START inside ifdef.
5758 Thu Jul 12 17:57:16 CEST 2001 Jan Hubicka <jh@suse.cz>
5760 * flow.c (try_optimize_cfg): Delete whole chain of trivially dead
5762 (verify_flow_info): Make diagnostics prettier.
5764 Thu Jul 12 16:48:54 CEST 2001 Jan Hubicka <jh@suse.cz>
5766 * flow.c (find_basic_blocks_1): Do not emit NOP after call.
5768 * flow.c (outgoing_edges_match): Return early if condition reversal
5771 2001-07-06 Richard Sandiford <rsandifo@redhat.com>
5773 * config/mips/mips.c (print_operand): Extend '%D' to memory operands.
5774 (mips_move_2words): When splitting a move into two instructions,
5775 prefix the second address operand with '%D'.
5777 2001-07-12 Neil Booth <neil@daikokuya.demon.co.uk>
5779 * Makefile.in (final.o): Depend on debug.h.
5780 * dbxout.c (dbxout_begin_block, dbxout_end_block): New.
5781 (dbx_debug_hooks): Add new hooks.
5782 (xcoff_debug_hooks): New.
5783 * debug.c (debug_nothing_file_int_int): New.
5784 (do_nothing_debug_hooks): Update.
5785 * debug.h (gcc_debug_hooks): New hooks begin_block and end_block.
5786 (debug_nothing_file_int_int): New.
5787 * dwarf2out.c (dwarf2out_begin_block, dwarf2out_end_block): Make
5788 static, update prototype.
5789 (dwarf2_debug_hooks): Update.
5790 * dwarf2out.h (dwarf2out_begin_block, dwarf2out_end_block): Remove.
5791 * dwarfout.c (dwarfout_begin_block, dwarfout_end_block): Make
5792 static, update prototype.
5793 (dwarf_debug_hooks): Update.
5794 * dwarfout.h (dwarfout_begin_block, dwarfout_end_block): Remove.
5795 * final.c: Include debug.h.
5796 (final_scan_insn): Use debug hooks when beginning and ending blocks.
5797 * sdbout.c (sdbout_begin_block, sdbout_end_block): Make
5798 static, update prototype.
5799 (sdb_debug_hooks): Update.
5800 * sdbout.h (sdbout_begin_block, sdbout_end_block): Remove.
5801 * toplev.c: Distinguish between xcoff and dbx.
5803 * f/lex.c (ffelex_file_pop_, ffelex_file_push_, ffelex_hash_):
5804 Call all debug hooks, not just dwarf ones.
5806 2001-07-11 Timothy Wall <twall@redhat.com>
5808 * config.gcc: Add configuration for AIX5/IA64.
5809 * config/ia64/aix.h: New. AIX5/IA64-specific configuration.
5810 * config/ia64/crt[in].asm: New. Generic static ctor/dtor
5811 support prefix/suffix code.
5812 * config/ia64/t-aix: New. Makefile fragment.
5813 * config/ia64/unwind-aix.c: New. Unwind table entry lookup.
5815 2001-07-11 Kazu Hirata <kazu@hxi.com>
5817 * recog.c (validate_change): Fix a comment typo.
5819 2001-07-11 Neil Booth <neil@daikokuya.demon.co.uk>
5821 * Makefile.in (c-lex.o): Wrap long lines. Depend on debug.h.
5822 * c-lex.c (cb_file_change, cb_define, cb_undef): Use debug
5824 * dbxout.c (dbx_debug_hooks): Add new hooks.
5825 (dbxout_start_new_source_file): Rename dbxout_start_source_file,
5827 (dbxout_resume_previous_source_file): Rename dbxout_end_source_file,
5829 * dbxout.h (dbxout_start_new_source_file,
5830 dbxout_resume_previous_source_file): Delete.
5831 * debug.c (do_nothing_debug_hooks): Add new hooks.
5832 (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
5833 (debug_nothing_int_charstar, debug_nothing_int): New.
5834 * debug.h (gcc_debug_hooks): New hooks define, undef,
5835 start_source_file and end_source_file.
5836 (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
5837 (debug_nothing_int_charstar, debug_nothing_int): New.
5838 * dwarf2out.c (dwarf2_debug_hooks): Add new hooks. Move into
5839 the conditionally compiled section.
5840 (dwarf2out_start_source_file, dwarf2out_end_source_file,
5841 dwarf2out_define, dwarf2out_undef): Make static.
5842 * dwarf2out.h (dwarf2out_start_source_file, dwarf2out_end_source_file,
5843 dwarf2out_define, dwarf2out_undef): Remove.
5844 * dwarfout.c (dwarf_debug_hooks): Add new hooks.
5845 (dwarfout_start_source_file, dwarfout_end_source_file,
5846 dwarfout_define, dwarfout_undef): Make static.
5847 (dwarfout_start_source_file_check,
5848 dwarfout_end_source_file_check): New.
5849 (dwarfout_define, dwarfout_finish): Update.
5850 * dwarfout.h (dwarfout_start_new_source_file,
5851 dwarfout_resume_previous_source_file, dwarfout_define,
5852 dwarfout_undef): Remove.
5853 * sdbout.c (sdb_debug_hooks): Add new hooks.
5854 (sdbout_start_new_source_file): Rename sdbout_start_source_file,
5856 (sdbout_resume_previous_source_file): Rename sdbout_end_source_file,
5857 make static, take an arg.
5858 * sdbout.h (sdbout_start_new_source_file,
5859 sdbout_resume_previous_source_file): Delete.
5860 * toplev.c (debug_start_source_file, debug_end_source_file,
5861 debug_define, debug_undef): Delete.
5862 * toplev.h (debug_start_source_file, debug_end_source_file,
5863 debug_define, debug_undef): Delete.
5865 * java/jcf-parse.c: Include debug.h.
5866 (parse_class_file): Update to use debug hooks directly.
5867 * java/Make-lang.in (jcf-parse.o): Depend on debug.h.
5869 Wed Jul 11 10:07:18 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5871 * alias.c (set_mem_alias_set): New function.
5872 * rtl.h (set_mem_alias_set): Declare it.
5873 * builtins.c (expand_builtin_return_addr): Call it instead of
5874 using MEM_ALIAS_SET accessor.
5875 (expand_builtin_setjmp_setup, expand_builtin_longjmp): Likewise.
5876 (get_memory_rtx, expand_builtin_va_arg): Likewise.
5877 (expand_builtin_va_copy):Likewise.
5878 * caller-save.c (setup_save_areas): Likewise.
5879 * calls.c (compute_argument_addresses): Likewise.
5880 * explow.c (set_mem_attributes): Likewise.
5881 * expr.c (emit_single_push_insn, emit_push_insn): Likewise.
5882 (expand_assignment, store_constructor_field, store_field): Likewise.
5883 (expand_expr_unaligned): Likewise.
5884 * function.c (assign_stack_temp_for_type): Likewise.
5885 (put_reg_into_stack, gen_mem_addressof): Likewise.
5886 * ifcvt.c (noce_try_cmove_arith): Likewise.
5887 * reload1.c (reload, alter_reg): Likewise.
5888 * config/alpha/alpha.c (get_aligned_mem): Likewise.
5889 (alpha_set_memflags_1, alpha_expand_unaligned_load): Likewise.
5890 (alpha_expand_unaligned_store): Likewise
5891 (alpha_expand_unaligned_load_words): Likewise.
5892 (alpha_expand_unaligned_store_words): Likewise.
5893 (alpha_expand_block_clear, alpha_expand_prologue): Likewise.
5894 (alpha_expand_epilogue): Likewise.
5895 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
5896 * config/clipper/clipper.c (clipper_builtin_saveregs): Likewise.
5897 * config/i386/i386.c (legitimize_pic_address): Likewise.
5898 * config/i960/i960.c (setup_incoming_varargs): Likewise.
5899 * config/ia64/ia64.c (spill_restore_mem): Likewise.
5900 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
5901 * config/m8k/m88k.c (m88k_builtin_saveregs): Likewise.
5902 * config/mips/mips.c (mips_va_arg): Likewise.
5903 * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
5904 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
5905 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
5906 (setup_incoming_varargs, rs6000_va_arg): Likewise.
5907 (rs6000_emit_eh_toc_restore, rs6000_emit_prologue): Likewise.
5908 (rs6000_emit_epilogue): Likewise.
5909 * config/sh/sh.c (sh_builtin_saveregs): Likewise.
5910 * config/sparc/sparc.c (sparc_va_arg): Likewise.
5911 * config/v850/v850.c (v850_va_arg): Likewise.
5913 Wed Jul 11 21:27:25 CEST 2001 Jan Hubicka <jh@suse.cz>
5915 * flow.c (merge_blocks_move_successor_nojumps): Do not crash
5916 when fallthru edge is present.
5917 (mege_blocks): Handle case where creation of jump insn
5920 * basic-block.h (CLEANUP_EXPENSIVE, CLEANUP_CROSSJUMP,
5921 CLEANUP_POST_REGSTACK): New constants.
5922 * except.c (finish_eh_generation): Update call of cleanup_cfg,
5923 * jump.c (rtx_renumbered_equal_p): Handle 't' fields.
5924 * output.h (cleanup_cfg): Update prototype.
5925 * reg-stack.c (reg_to_stack): Use cleanup_cfg instead of jump_optimize
5926 * sibcall.c (optimize_sibling_and_tail_recursive_call): Update
5927 cleanup_cfg call; kill missleading comment.
5928 * toplev.c (rest_of_compilation): Update all cleanup_cfg calls.
5929 * flow.c (merge_blocks, try_optimize_cfg, cleanup_cfg): Accept mode
5930 parameter; control optimizations performed using it.
5931 (flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
5932 try_crossjump_bb): New functions.
5934 2001-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
5936 * pa.c (pa_output_function_prologue): Delete prototype. Make function
5938 * pa.h (ASM_OUTPUT_MI_THUNK): Rename output_function_prologue to
5939 pa_output_function_prologue.
5940 * pa-protos.h (pa_output_function_prologue): New prototype.
5942 2001-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
5944 * stmt.c (emit_case_nodes): Widen high and low instead of new_bound
5945 and low to get correct sign extension in low+high test.
5947 2001-07-11 Janis Johnson <janis@us.ibm.com>
5949 * gcov.c (arcdata): Use gcov_type to fix branch percentage
5950 for large hit count.
5952 * profile.c (branch_prob): Fix .bbg info for computed gotos
5955 2001-07-11 Mark Mitchell <mark@codesourcery.com>
5957 * stmt.c (parse_output_constraint): New function, split out
5959 (expand_asm_operands): ... here. Use parse_output_constraint.
5960 * tree.h (parse_output_constraint): Declare it.
5962 2001-07-11 Richard Henderson <rth@redhat.com>
5964 * bitmap.c: Comment some functions; fiddle whitespace.
5965 (bitmap_free): Don't export.
5966 (bitmap_element_allocate): Use memset.
5967 * bitmap.h (bitmap_free): Don't declare.
5969 2001-07-11 Daniel Berlin <dan@cgsoftware.com>
5971 * gcse.c, lcm.c, sched-deps.c:
5972 s/free on sbitmap vectors/sbitmap_vector_free on sbitmap vectors/g
5974 * flow.c (flow_loops_find): Free dom if we found no loops, since
5975 we aren't going to save it.
5977 * lcm.c (pre_edge_rev_lcm): Free st_antin, st_antout when we are
5980 Wed Jul 11 09:00:48 2001 Jeffrey A Law (law@cygnus.com)
5982 * ssa-ccp.c (ssa_fast_dce): Free worklist when completed.
5984 Wed Jul 11 10:07:18 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5986 * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Add dummy version
5987 #ifndef DWARF2_DEBUGGING_INFO.
5989 2001-07-11 Richard Sandiford <rsandifo@redhat.com>
5991 * simplify-rtx.c (simplify_gen_subreg): Return null for QUEUED rtxes.
5993 2001-07-11 Richard Sandiford <rsandifo@redhat.com>
5995 * config/mips/mips.c (gen_int_relational): Tell the caller not to
5996 reverse a branch if a NE comparison is implemented with GTU.
5998 2001-07-11 Richard Sandiford <rsandifo@redhat.com>
5999 H.J. Lu <hjl@gnu.org>
6001 * mips.md (call_internal1): Use CONSTANT_ADDRESS_P to check for
6003 (call_internal2): Likewise.
6004 (call_value_internal1): Likewise.
6005 (call_value_internal2): Likewise.
6006 (call_value_multiple_internal1): Likewise.
6007 (call_value_multiple_internal2): Likewise.
6009 2001-07-10 Kazu Hirata <kazu@hxi.com>
6011 * calls.c (emit_library_call_value_1): Fix a comment typo.
6012 * dwarf2out.c (mem_loc_descriptor): Likewise.
6013 * config/i386/i386.c (ix86_expand_aligntest): Likewise.
6015 2001-07-11 David Billinghurst <David.Billinghurst@riotinto.com>
6017 * simplify-rtx.c (simplify_subreg): Fix typo in comment
6019 Tue Jul 10 07:27:53 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6021 * recog.c (offsettable_address_p): Handle LO_SUM case.
6022 * config/mips/mips.c (double_memory_operand): Use adjust_address_nv
6023 instead of plus_constant.
6025 2001-07-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6027 * reload1.c (merge_assigned_reloads): After a RELOAD_OTHER merge,
6028 fix setting of the reloads of that reload to RELOAD_FOR_OTHER_ADDRESS.
6030 Tue Jul 10 07:27:53 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6032 * config/rs6000/rs6000.c (print_operand, case 'L', 'Y', 'Z'): Use
6033 adjust_address_nv instead of plus_constant.
6035 2001-07-10 Neil Booth <neil@daikokuya.demon.co.uk>
6037 * Makefile.in (toplev.o, sdbout.o, dbxout.o, dwarfout.o,
6038 dwarf2out.o): Depend on debug.h, wrap long lines.
6039 * dbxout.c: Include debug.h.
6040 (dbx_debug_hooks): New.
6041 (dbxout_init): Make static, take just 2 args.
6042 (dbxout_finish): Make static.
6043 * dbxout.h (dbxout_init, dbxout_finish): Delete.
6044 * debug.c: New file.
6045 * debug.h: New file.
6046 * dwarf2out.c: Include debug.h.
6047 (dwarf2_debug_hooks): New.
6048 (dwarf2out_init): Make static.
6049 (dwarf2out_finish): Make static, take 2 args.
6050 * dwarf2out.h (dwarf2out_init, dwarf2out_finish): Delete.
6051 * dwarfout.c: Include debug.h.
6052 (dwarf_debug_hooks): New.
6053 (dwarfout_init): Make static.
6054 (dwarfout_finish): Make static, take 2 args.
6055 * dwarfout.h (dwarfout_init, dwarfout_finish): Delete.
6056 * sdbout.c: Include debug.h.
6057 (sdb_debug_hooks): New.
6058 (sdbout_init): Make static, take 2 args.
6059 * sdbout.h (sdbout_init): Delete.
6060 * toplev.c: Include debug.h.
6062 (compile_file): Set deubg_hooks based on command line options.
6063 Use the hooks unconditionally rather than conditional compilation.
6065 Tue Jul 10 09:04:45 2001 Jeffrey A Law (law@cygnus.com)
6067 * ssa-ccp.c (first_phi_node): Remove. Replace uses with calls to
6068 first_insn_after_basic_block_note instead.
6070 * df.c (df_bb_refs_unlink): #if 0 out for now.
6072 2001-07-10 David Billinghurst <David.Billinghurst@riotinto.com
6074 * ssa.h: Add prototype for ssa_const_prop
6075 * ssa-ccp.c: Add prototype for ssa_fast_dce and mark_references
6076 (ssa_ccp_substitute_constants): Fix signed vs unsigned comparison
6077 (ssa_fast_dce): Remove unused variable
6079 2001-07-10 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
6081 * diagnostic.c (finish_diagnostic): Rename to
6082 diagnostic_finish. Make it take an 'output_buffer *'. Adjust
6085 2001-07-10 Jason Merrill <jason_merrill@redhat.com>
6087 * dwarf2out.c (dwarf2out_line): Emit -dA comment even when we have
6090 * collect2.c (main): Set COLLECT_NO_DEMANGLE for subprocesses.
6091 (dump_file): Only pad the demangled name with spaces if the
6092 mangled name was padded with spaces.
6094 2001-07-10 Bernd Schmidt <bernds@redhat.com>
6096 * bb-reorder.c (make_reorder_chain_1): Correct branch/fallthru
6099 Tue Jul 10 07:27:53 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6101 * expr.c (expand_expr, case COMPONENT_REF): Don't force using bitfield
6102 extraction if no direct load if either EXPAND_CONST_ADDRESS or
6105 * emit-rtl.c (adjust_address, adjust_address_nv): Change criteria for
6106 whether can put offset inside LO_SUM to check mode alignment, not size.
6108 2001-07-10 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
6110 * doc/tm.texi (Misc): Fix thinko.
6112 2001-07-10 Jan van Male <jan.vanmale@fenk.wau.nl>
6114 * regmove.c (replace_in_call_usage): Fix warnings.
6115 * sched-deps.c (add_dependence): Fix warnings.
6116 * simplify-rtx.c (simplify_subreg): Likewise.
6117 Return NULL_RTX instead of NULL.
6119 * reg-stack.c (emit_swap_insn): Eliminate warnings.
6120 (subst_asm_stack_regs): Likewise.
6122 * combine.c (num_sign_bit_copies): Cast bitwidth to int to avoid
6125 * dwarf2out.c (output_call_frame_info): Declare i as int.
6126 (build_abbrev_table): Declare n_alloc as int.
6127 (dwarf2out_finish): Initialize die.
6128 * except.c: Declare sjlj_funcdef_number as unsigned.
6129 (connect_post_landing_pads): Declare j as unsigned.
6130 (convert_to_eh_region_ranges): Initialize call_site.
6131 (output_function_exception_table): Initialize tt_format_size.
6132 * expr.c (move_by_pieces_1): Initialize to1.
6133 (store_constructor): Initialize minelt and maxelt.
6134 * flow.c (mark_regs_live_at_end): Declare i as unsigned.
6135 * function.c (instantiate_decls): Avoid signed/unsigned warning.
6137 * c-decl.c (combine_parm_decls): Unused, remove.
6138 * c-tree.h: Remove prototype for combine_parm_decls.
6140 * reload.c (push_reload): Fix warning.
6141 (regno_clobbered_p): Likewise.
6142 * reload1.c (replace_pseudos_in_call_usage): Likewise.
6143 (reload_combine): Likewise.
6145 * bitmap.c: Rename bitmap_zero to bitmap_zero_bits to fix warnings.
6146 * bitmap.h: Rename bitmap_zero to bitmap_zero_bits to fix
6148 * bitmap.c (bitmap_operation): Change user.
6149 * bitmap.h (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
6151 2001-07-10 Eric Christopher <echristo@redhat.com>
6153 * config/mips/mips.c (override_options): Fix typo.
6155 2001-07-09 Stan Shebs <shebs@apple.com>
6157 * target.h (struct gcc_target): New fields init_builtins and
6159 * target-def.h (TARGET_INIT_BUILTINS): New macro.
6160 (TARGET_EXPAND_BUILTIN): New macro.
6161 (TARGET_INITIALIZER): Add them.
6162 * builtins.c: Include target.h.
6163 (expand_builtin): Use targetm.expand_builtin.
6164 (default_init_builtins): New function.
6165 (default_expand_builtin): New function.
6166 * expr.h (default_init_builtins): Declare.
6167 (default_expand_builtin): Declare.
6168 * c-common.c (c_common_nodes_and_builtins): Use
6169 targetm.init_builtins.
6170 * defaults.h (MD_INIT_BUILTINS): Remove.
6171 * Makefile.in (builtins.o): Depend on target.h.
6173 * config/arm/arm.c (TARGET_INIT_BUILTINS): Define.
6174 (TARGET_EXPAND_BUILTIN): Define.
6175 * config/arm/arm.h (MD_INIT_BUILTINS): Remove.
6176 (MD_EXPAND_BUILTIN): Remove.
6178 * config/c4x/c4x.c (TARGET_INIT_BUILTINS): Define.
6179 (TARGET_EXPAND_BUILTIN): Define.
6180 (c4x_init_builtins): Make endlink arg a local.
6181 (c4x_print_operand): Fix typos in adjust_address usages.
6182 * config/c4x/c4x-protos.h (c4x_init_builtins): Update decl.
6183 * config/c4x/c4x.h (MD_INIT_BUILTINS): Remove.
6184 (MD_EXPAND_BUILTIN): Remove.
6186 * config/i386/i386.c (TARGET_INIT_BUILTINS): Define.
6187 (TARGET_EXPAND_BUILTIN): Define.
6188 (ix86_init_mmx_sse_builtins): New function, was ix86_init_builtins.
6189 (ix86_init_builtins): Call new function only if TARGET_MMX.
6190 * config/i386/i386-protos.h (ix86_init_mmx_sse_builtins): Declare.
6191 * config/i386/i386.h (MD_INIT_BUILTINS): Remove.
6192 (MD_EXPAND_BUILTIN): Remove.
6194 * config/ia64/ia64.c (TARGET_INIT_BUILTINS): Define.
6195 (TARGET_EXPAND_BUILTIN): Define.
6196 * config/ia64/ia64.h (MD_INIT_BUILTINS): Remove.
6197 (MD_EXPAND_BUILTIN): Remove.
6199 * doc/tm.texi: Document these changes.
6201 2001-07-09 Diego Novillo <dnovillo@redhat.com>
6203 * basic-block.h (tree_node): Forward declare if needed.
6204 (struct basic_block_def): Add fields 'head_tree' and 'end_tree'.
6205 (BLOCK_HEAD_TREE): Define.
6206 (BLOCK_END_TREE): Define.
6207 (struct loops): Rename field 'tree' to 'tree_root'.
6208 * flow.c (entry_exit_blocks): Add initializers for 'head_tree' and
6210 (flow_loops_tree_build): Rename reference to field 'tree' to
6212 (flow_loops_level_compute): Ditto.
6213 * predict.c (estimate_bb_frequencies): Ditto.
6214 * tree.h (struct tree_common): Add field 'aux'.
6216 2001-07-09 Stan Shebs <shebs@apple.com>
6218 * config/darwin.c (darwin_encode_section_info): Don't mark any
6219 DECL_EXTERNAL node as defined.
6221 2001-07-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
6223 * pa.c (pa_init_machine_status, pa_mark_machine_status,
6224 pa_free_machine_status, hppa_init_pic_save): Delete.
6225 (hppa_pic_save_rtx): New. Use get_hard_reg_initial_val.
6226 (hppa_profile_hook): Use hppa_pic_save_rtx.
6227 * pa.h (struct machine_function, PIC_OFFSET_TABLE_SAVE_RTX,
6228 hppa_init_pic_save): Delete.
6229 (hppa_pic_save_rtx): Declare.
6230 * pa.md (call, call_value, sibcall, sibcall_value,
6231 builtin_setjmp_receiver): Use hppa_pic_save_rtx.
6233 2001-07-09 Kazu Hirata <kazu@hxi.com>
6235 * config/h8300/t-h8300 (LIB1ASMFUNCS): Add _floatdisf and _fixsfdi.
6236 * config/mn10200/t-mn10200 (LIB1ASMFUNCS): Likewise.
6238 2001-07-09 Andreas Jaeger <aj@suse.de>
6240 * output.h: Add declaration of final_forward_branch_p.
6242 * config/i386/i386.c (output_fix_trunc): Remove unused variable.
6244 * varray.c: Include errors.h for internal_error and trim_filename
6247 * Makefile.in (varray.o): Add errors.h.
6249 2001-07-09 Toon Moene <toon@moene.indiv.nluug.nl>
6251 * expr.h: Adjust prototypes for have_add2_insn, have_sub2_insn.
6252 * optabs.c (have_add2_insn): Check whether the add insn chosen
6253 really accepts the operands. (have_sub2_insn): Ditto for sub insn.
6254 * reload1.c (reload_cse_move2add): Adjust calls of have_add2_insn.
6256 Mon Jul 9 13:26:40 2001 Jeffrey A Law (law@cygnus.com)
6258 * Makefile.in (OBJS): Add ssa-ccp.o
6259 (ssa-ccp.o): Add dependencies.
6260 * toplev.c (DFI_ssa_ccp): New dump file enum.
6261 (dump_file): Add entry for dumping after SSA CCP.
6262 (flag_ssa_ccp): New flag variable.
6263 (f_options): Add -fssa-ccp.
6264 (rest_of_compilation): Run SSA CCP if requested.
6265 * timevar.def (TV_SSA_CCP): New timevar.
6266 * ssa.c (mark_phi_and_copy_regs): Handle deleted PHI nodes.
6267 * doc/gcc.texi (Passes): Add documentation for SSA CCP pass.
6268 Fix minor typo in SSA DCE documentation.
6269 * doc/invoke.texi: Add documentation for new flag -fssa-ccp.
6270 Add documentation for new dump option. Renumber dump files
6273 Mon Jul 9 21:36:00 CEST 2001 Jan Hubicka <jh@suse.cz>
6275 * emit-rtl.c (gen_highpart_mode): New.
6276 * rtl.h (gen_highpart_mode): Declare.
6277 * sparc.md (insn splitters): Use gen_highpart_mode, whenever the
6278 operand can be VOIDmode constant.
6280 Mon Jul 9 17:23:10 CEST 2001 Jan Hubicka <jh@suse.cz>
6282 * flow.c (redirect_edge_and_branch_force): New.
6283 (can_fallthru): Ensure that basic blocks are succeeding.
6284 (try_optimize_cfg): Do not delete basic block if it is the last one.
6286 * flow.c (try_redirect_by_replacing_jump): Do not remove
6287 jumps with side effects, unlink chain on fallthru edge;
6288 set block for new jump instruction; avoid basic block to
6289 over by line number note.
6291 * flow.c (try_simplify_condjump): Verify that the condjump
6292 is not always falling trought.
6295 * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
6297 * flow.c (forwarder_block_p): Fix for fallthru blocks.
6298 (try_redirect_by_replacing_jump): Update properly the count
6299 and frequency information.
6301 Mon Jul 9 06:41:07 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6303 * emit-rtl.c (adjust_address, adjust_address_nv): Handle an
6304 address that is a LO_SUM specially.
6305 * explow.c (plus_constant_wide, case LO_SUM): Deleted.
6307 * c-lang.c (start_cdtor): Remove extra parameter from start_function.
6309 * emit-rtl.c (adjust_address_nv, replace_equiv_address_nv): New fcns.
6310 (operand_subword): Use them.
6311 (change_address_1): Renamed from change_address; new arg VALIDATE.
6312 * expr.h: Reflect above changes; change_address now macro.
6313 * alias.c (canon_rtx): Use replace_equiv_address_nv instead of
6315 * cselib.c (add_mem_for_addr): Likewise.
6316 * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
6317 * regmove.c (try_apply_stack_adjustment): Likewise.
6318 * reload.c (push_reload, make_memloc): Likewise.
6319 * reload1.c (eliminate_regs): Likewise.
6320 * simplify-rtx.c (simplify_replace_rtx): Likewise.
6321 * caller-save.c (setup_save_areas): Use adjust_address_nv instead of
6323 * combine.c (make_extraction, simplify_shift_const): Likewise.
6324 (gen_lowpart_for_combine): Likewise.
6325 * cse.c (gen_lowpart_if_possible): Likewise.
6326 * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
6327 * expr.c (expand_expr, case COMPONENT_REF): Likewise.
6328 * optabs.c (gen_move_insn): Likewise.
6329 * reload1.c (alter_reg): Likewise.
6330 * simplify-rtx.c (simplify_subreg): Likewise.
6331 * stmt.c (expand_anon_union_decl): Likewise.
6332 * recog.c (validate_replace_rtx_1): Likewise.
6334 * Makefile.in (recog.o): Add $(EXPR_H).
6335 * explow.c (stabilize): Call replace_equiv_address.
6336 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
6337 * final.c (alter_subreg): OFFSET is HOST_WIDE_INT.
6339 2001-07-03 Andrew Haley <aph@redhat.com>
6341 * expmed.c (store_fixed_bit_field): Don't use a mode bigger than
6342 the mode of the memory location.
6344 2001-07-09 Bo Thorsen <bo@suse.co.uk>
6346 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix x86-64 vtable support.
6348 2001-07-09 Neil Booth <neil@daikokuya.demon.co.uk>
6350 * final.c (output_addr_const): Use target opening and
6351 closing parentheses.
6352 * target-def.h: Define TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN
6353 defaults, add to TARGET_ASM_OUT.
6354 * target.h (struct gcc_target): Add open_paren and close_paren.
6355 * doc/md.texi: Update.
6356 * doc/tm.texi: Document TARGET_ASM_FUNCTION_END_PROLOGUE,
6357 TARGET_ASM_FUNCTION_BEGIN_EPILOGUE, TARGET_ASM_OPEN_PAREN and
6358 TARGET_ASM_CLOSE_PAREN.
6359 * config/i386/i386.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
6361 * config/pdp11/pdp11.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
6363 * config/1750a/1750a.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
6364 * config/a29k/a29k.h: Similarly.
6365 * config/alpha/alpha.h: Similarly.
6366 * config/arc/arc.h: Similarly.
6367 * config/arm/aof.h: Similarly.
6368 * config/arm/aout.h: Similarly.
6369 * config/avr/avr.h: Similarly.
6370 * config/c4x/c4x.h: Similarly.
6371 * config/clipper/clipper.h: Similarly.
6372 * config/convex/convex.h: Similarly.
6373 * config/d30v/d30v.h: Similarly.
6374 * config/dsp16xx/dsp16xx.h: Similarly.
6375 * config/elxsi/elxsi.h: Similarly.
6376 * config/fr30/fr30.h: Similarly.
6377 * config/h8300/h8300.h: Similarly.
6378 * config/i370/i370.h: Similarly.
6379 * config/i386/i386.h: Similarly.
6380 * config/i860/i860.h: Similarly.
6381 * config/i960/i960.h: Similarly.
6382 * config/ia64/ia64.h: Similarly.
6383 * config/m32r/m32r.h: Similarly.
6384 * config/m68hc11/m68hc11.h: Similarly.
6385 * config/m68k/m68k.h: Similarly.
6386 * config/m88k/m88k.h: Similarly.
6387 * config/mcore/mcore.h: Similarly.
6388 * config/mips/mips.h: Similarly.
6389 * config/mn10200/mn10200.h: Similarly.
6390 * config/mn10300/mn10300.h: Similarly.
6391 * config/ns32k/ns32k.h: Similarly.
6392 * config/pa/pa.h: Similarly.
6393 * config/pdp11/pdp11.h: Similarly.
6394 * config/pj/pj.h: Similarly.
6395 * config/romp/romp.h: Similarly.
6396 * config/rs6000/rs6000.h: Similarly.
6397 * config/sh/sh.h: Similarly.
6398 * config/sparc/sparc.h: Similarly.
6399 * config/v850/v850.h: Similarly.
6400 * config/vax/vax.h: Similarly.
6401 * config/we32k/we32k.h: Similarly.
6403 2001-07-09 Joseph S. Myers <jsm28@cam.ac.uk>
6405 * doc/c-tree.texi: Document representation of attributes.
6407 2001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
6409 * doc/tm.texi: Update some places for the rename of target to
6412 2001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
6414 * target.h (struct gcc_target): Add insert_attributes.
6415 * target-def.h (TARGET_INSERT_ATTRIBUTES): Define.
6416 (TARGET_INITIALIZER): Update.
6417 * tree.c, tree.h (default_insert_attributes): New function.
6418 Update comments on other default functions to refer to targetm,
6420 * doc/tm.texi (INSERT_ATTRIBUTES): Update to document
6421 TARGET_INSERT_ATTRIBUTES.
6422 (SET_DEFAULT_DECL_ATTRIBUTES): Remove.
6423 * c-common.c (decl_attributes): Use targetm.insert_attributes.
6424 Don't use PRAGMA_INSERT_ATTRIBUTES.
6425 * Makefile.in (c-common.o): Depend on $(TARGET_H).
6426 * c-decl.c (start_decl, start_function): Don't call
6427 SET_DEFAULT_DECL_ATTRIBUTES.
6428 * config/c4x/c4x.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
6429 * config/c4x/c4x-protos.h (c4x_set_default_attributes): Don't
6431 * config/c4x/c4x.c (TARGET_INSERT_ATTRIBUTES): Define.
6432 (c4x_check_attribute): Avoid modifying attribute list itself.
6433 (c4x_set_default_attributes): Rename to c4x_insert_attributes.
6435 * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Don't define.
6436 * config/sh/sh-protos.h (sh_pragma_insert_attributes): Don't
6438 * config/sh/sh.c (TARGET_INSERT_ATTRIBUTES): Define.
6439 (sh_pragma_insert_attributes): Rename to sh_insert_attributes.
6441 * config/v850/v850.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
6442 * config/v850/v850-protos.h (v850_set_default_decl_attr): Don't
6444 * config/v850/v850.c (TARGET_INSERT_ATTRIBUTES): Define.
6445 (v850_set_default_decl_attr): Rename to v850_insert_attributes.
6446 Adjust parameters. Make static.
6448 2001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
6450 * c-common.c (decl_attributes): Only take a single attributes
6452 * c-common.h (decl_attributes): Update prototype.
6453 * c-decl.c (start_decl, start_function): Only take a single
6454 attributes parameter. Update calls to decl_attributes.
6455 (finish_struct, finish_enum): Update calls to decl_attributes.
6456 (push_parm_decl): Expect unified list of attributes. Update call
6458 * c-parse.in (fndef, initdcl, notype_initdcl, nested_function,
6459 notype_nested_function, component_declarator,
6460 component_notype_declarator, label): Update calls to
6462 (absdcl_maybe_attribute, parm, firstparm, myparm): Unify attribute
6463 lists that are passed to push_parm_decl.
6464 * c-tree.h (start_function, start_decl): Update prototypes.
6465 * config/sh/sh-protos.h, config/sh/sh.c
6466 (sh_pragma_insert_attributes): Only take a single attributes
6468 * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Likewise.
6469 * doc/tm.texi (INSERT_ATTRIBUTES): Update.
6470 * objc/objc-act.c (define_decl, generate_objc_symtab_decl,
6471 build_module_descriptor, generate_static_references,
6472 generate_strings, build_selector_translation_table,
6473 generate_descriptor_table, generate_protocols,
6474 generate_ivars_list, generate_dispatch_table,
6475 generate_protocol_list, generate_category,
6476 generate_shared_structures, really_start_method, add_objc_decls,
6477 generate_classref_translation_entry): Update calls to start_decl
6479 (build_tmp_function_decl, start_method_def): Unify attribute lists
6480 that are passed to push_parm_decl.
6482 2001-07-08 Neil Booth <neil@daikokuya.demon.co.uk>
6484 * final.c (no_asm_to_stream): New.
6485 (final_scan_insn): Use target structures for prologue ends
6486 and epilogue starts.
6487 * output.h (no_asm_to_stream): New.
6488 * target-def.h (TARGET_ASM_FUNCTION_END_PROLOGUE,
6489 TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): New.
6490 (TARGET_ASM_OUT): Update.
6491 * target.h (struct gcc_target): New members function_end_prologue
6492 and function_begin_epilogue.
6493 * config/1750/1750.h (ASM_OUTPUT_FUNNAM): Delete as unused.
6494 * config/alpha/alpha-protos.h (output_end_prologue): Delete.
6495 * config/alpha/alpha.c (output_end_prologue): Rename to
6496 alpha_output_function_end_prologue. Use in target struct
6498 * config/alpha/alpha.h (FUNCTION_END_PROLOGUE): Delete.
6499 * config/ia64/ia64-protos.h (ia64_output_end_prologue): Delete.
6500 * config/ia64/ia64.c (ia64_output_end_prologue): Rename to
6501 ia64_output_function_end_prologue. Use in target struct
6503 (ia64_function_prologue, ia64_funciton_epilogue): Rename
6504 mistyped prototypes.
6505 * config/ia64/ia64.h (FUNCTION_END_PROLOGUE): Delete.
6506 * config/m88k/m88k-protos.h (m88k_end_prologue, m88k_begin_epilogue):
6508 * config/m88k/m88k.c (m88k_end_prologue, m88k_begin_epilogue): Rename
6509 an use in target struct, make static.
6510 * config/ia64/ia64.h (FUNCTION_END_PROLOGUE, FUNCTION_BEGIN_EPILOGUE):
6513 2001-07-08 Richard Henderson <rth@redhat.com>
6515 * stmt.c (emit_case_nodes): Convert modes properly in low+high test.
6517 2001-07-08 Richard Henderson <rth@redhat.com>
6519 * config/i386/i386.md: Remove constraints strings from define_split
6520 and define_peephole2 patterns.
6521 (eh_return_si, eh_return_di): Split eh_return_1 for modes.
6522 (eh_return): Use them.
6524 2001-07-08 Richard Henderson <rth@redhat.com>
6526 * doc/tm.texi (Exception Handling): New subnode of Stack and Calling.
6527 Document MD_FALLBACK_FRAME_STATE_FOR.
6529 2001-07-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6531 * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset):
6532 Take into account m68hc11_sp_correction for FRAME_POINTER_REGNUM
6534 * config/m68hc11/m68hc11.h (STARTING_FRAME_OFFSET): Use 0.
6536 2001-07-07 Nick Clifton <nickc@cambridge.redhat.com>
6538 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Append # to end
6539 of the label inside NAME as opposed to just the end of NAME.
6541 2001-07-07 Neil Booth <neil@daikokuya.demon.co.uk>
6543 * config/alpha/alpha-protos.h (vms_valid_decl_attribute_p): Delete.
6544 * config/alpha/alpha.c (alpha_init_machine_status,
6545 alpha_mark_machine_status, alpha_free_machine_status): Delete.
6546 (TARGET_VALID_DECL_ATTRIBUTE): Define for VMS.
6547 (vms_valid_decl_attribute_p): Make static, conditionally compile.
6548 * config/alpha/alpha.h (VALID_MACHINE_DECL_ATTRIBUTE): Delete.
6550 2001-07-06 Stan Shebs <shebs@apple.com>
6552 * target.h (targetm): Rename global from "target", so as not to
6553 conflict with local variables.
6555 * c-typeck.c: Ditto.
6559 * cp/decl2.c: Ditto.
6560 * cp/typeck.c: Ditto.
6561 * 1750a/1750a.c: Ditto.
6562 * a29k/a29k.c: Ditto.
6566 * clipper/clipper.c: Ditto.
6567 * convex/convex.c: Ditto.
6568 * d30v/d30v.c: Ditto.
6569 * dsp16xx/dsp16xx.c: Ditto.
6570 * elxsi/elxsi.c: Ditto.
6571 * fr30/fr30.c: Ditto.
6572 * h8300/h8300.c: Ditto.
6573 * i370/i370.c: Ditto.
6574 * i386/i386.c: Ditto.
6575 * i860/i860.c: Ditto.
6576 * i960/i960.c: Ditto.
6577 * ia64/ia64.c: Ditto.
6578 * m32r/m32r.c: Ditto.
6579 * m68hc11/m68hc11.c: Ditto.
6580 * m68k/m68k.c: Ditto.
6581 * m88k/m88k.c: Ditto.
6582 * mips/mips.c: Ditto.
6583 * ns32k/ns32k.c: Ditto.
6585 * pdp11/pdp11.c: Ditto.
6586 * romp/romp.c: Ditto.
6587 * rs6000/rs6000.c: Ditto.
6589 * sparc/sparc.c: Ditto.
6591 * we32k/we32k.c: Ditto.
6592 * doc/tm.texi: Update the manual to match.
6594 2001-07-06 Richard Henderson <rth@redhat.com>
6596 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Examine the value of
6597 DWARF2_UNWIND_INFO not just whether it is defined.
6599 2001-07-06 Diego Novillo <dnovillo@redhat.com>
6601 * combine.c (combine_simplify_rtx): Also recompute 'mode' if the
6602 call to simplify_binary_operation returns a new pattern.
6604 2001-07-06 Roman Lechtchinsky <rl@cs.tu-berlin.de>
6606 * glimits.h (__SHRT_MAX__): New.
6607 (SHRT_MIN, USHRT_MAX): Define in terms of SHRT_MAX.
6608 (SHRT_MAX): Define in terms of __SHRT_MAX__.
6610 2001-07-06 Jan van Male <jan.vanmale@fenk.wau.nl>
6612 * alias.c (base_alias_check): Cast GET_MODE_UNIT_SIZE to int to
6615 2001-07-06 Richard Henderson <rth@redhat.com>
6617 * bitmap.c (bitmap_release_memory): Move adjacent to the
6618 allocation functions.
6619 (bitmap_first_set_bit, bitmap_last_set_bit): Streamline knowing
6620 the implementation. Binary search for the set bit.
6621 (bitmap_union_of_diff): Allocate the temporary on the stack
6622 instead of using xmalloc.
6624 2001-07-06 Richard Henderson <rth@redhat.com>
6626 * genrecog.c (validate_pattern): Warn for constraints in
6627 define_{expand,split,peephole2}. Remove strict_low_part
6628 before looking up match_dup.
6630 2001-07-06 DJ Delorie <dj@redhat.com>
6632 * doc/gcc.texi (Makefile): Rename to be a more general purpose
6633 chapter about various build hints and history. Add section
6634 talking about the various types of native and cross builds.
6636 2001-07-06 Neil Booth <neil@daikokuya.demon.co.uk>
6638 * Makefile.in (final.o): Depend on target.h.
6639 * final.c: Include target.h.
6640 (default_function_pro_epilogue): New.
6641 (final_start_function): Use target structure for function prologues.
6642 (final_end_function): Use target structure for function epilogues.
6643 * fold-const.c (real_hex_to_f): Constify s and p.
6644 * output.h (default_function_pro_epilogue): New.
6645 * real.h (real_hex_to_f): Update prototype.
6646 * target-def.h (TARGET_ASM_FUNCTION_PROLOGUE,
6647 TARGET_ASM_FUNCTION_EPILOGUE, TARGET_ASM_OUT): New.
6648 (TARGET_INITIALIZER): Update.
6649 * target.h (gcc_target): Add struct asm_out.
6650 * doc/tm.texi: Update.
6653 Update each arch to use TARGET_ASM_FUNCTION_PROLOGUE and
6654 TARGET_ASM_FUNCTION_EPILOGUE. Move macro code to functions
6655 in cpu/cpu.c, or rename old functions consistently. Take
6656 a HOST_WIDE INT not an int as the SIZE parameter. Remove now
6657 redundant macros and prototypes. Make new functions static.
6659 * 1750a/1750a.c: Similarly.
6660 * 1750a/1750a.h: Similarly.
6661 * a29k/a29k-protos.h: Similarly.
6662 * a29k/a29k.c: Similarly.
6663 * a29k/a29k.h: Similarly.
6664 * arc/arc-protos.h: Similarly.
6665 * arc/arc.c: Similarly.
6666 * arc/arc.h: Similarly.
6667 * arm/arm-protos.h: Similarly.
6668 * arm/arm.c: Similarly.
6669 * arm/arm.h: Similarly.
6670 * avr/avr-protos.h: Similarly.
6671 * avr/avr.c: Similarly.
6672 * avr/avr.h: Similarly.
6673 * clipper/clipper-protos.h: Similarly.
6674 * clipper/clipper.c: Similarly.
6675 * clipper/clipper.h: Similarly.
6676 * convex/convex.c: Similarly.
6677 * convex/convex.h: Similarly.
6678 * d30v/d30v-protos.h: Similarly.
6679 * d30v/d30v.c: Similarly.
6680 * d30v/d30v.h: Similarly.
6681 * d30v/d30v.md: Similarly.
6682 * dsp16xx/dsp16xx-protos.h: Similarly.
6683 * dsp16xx/dsp16xx.c: Similarly.
6684 * dsp16xx/dsp16xx.h: Similarly.
6685 * elxsi/elxsi.c: Similarly.
6686 * elxsi/elxsi.h: Similarly.
6687 * fr30/fr30.c: Similarly.
6688 * fr30/fr30.md: Similarly.
6689 * h8300/h8300-protos.h: Similarly.
6690 * h8300/h8300.c: Similarly.
6691 * h8300/h8300.h: Similarly.
6692 * i370/i370-protos.h: Similarly.
6693 * i370/i370.c: Similarly.
6694 * i370/i370.h: Similarly.
6695 * i386/i386.c: Similarly.
6696 * i386/osf1elf.h: Similarly.
6697 * i386/osfrose.h: Similarly.
6698 * i860/i860-protos.h: Similarly.
6699 * i860/i860.c: Similarly.
6700 * i860/i860.h: Similarly.
6701 * i960/i960-protos.h: Similarly.
6702 * i960/i960.c: Similarly.
6703 * i960/i960.h: Similarly.
6704 * ia64/ia64-protos.h: Similarly.
6705 * ia64/ia64.c: Similarly.
6706 * ia64/ia64.h: Similarly.
6707 * m32r/m32r-protos.h: Similarly.
6708 * m32r/m32r.c: Similarly.
6709 * m32r/m32r.h: Similarly.
6710 * m68hc11/m68hc11-protos.h: Similarly.
6711 * m68hc11/m68hc11.c: Similarly.
6712 * m68hc11/m68hc11.h: Similarly.
6713 * m68k/crds.h: Similarly.
6714 * m68k/dpx2.h: Similarly.
6715 * m68k/m68k-protos.h: Similarly.
6716 * m68k/m68k.c: Similarly.
6717 * m68k/m68k.h: Similarly.
6718 * m68k/news.h: Similarly.
6719 * m88k/m88k-protos.h: Similarly.
6720 * m88k/m88k.c: Similarly.
6721 * m88k/m88k.h: Similarly.
6722 * mips/mips-protos.h: Similarly.
6723 * mips/mips.c: Similarly.
6724 * mips/mips.h: Similarly.
6725 * ns32k/merlin.h: Similarly.
6726 * ns32k/ns32k.c: Similarly.
6727 * ns32k/ns32k.h: Similarly.
6728 * ns32k/tek6000.h: Similarly.
6729 * pa/pa-protos.h: Similarly.
6730 * pa/pa.c: Similarly.
6731 * pa/pa.h: Similarly.
6732 * pdp11/2bsd.h: Similarly.
6733 * pdp11/pdp11-protos.h: Similarly.
6734 * pdp11/pdp11.c: Similarly.
6735 * pdp11/pdp11.h: Similarly.
6736 * romp/romp-protos.h: Similarly.
6737 * romp/romp.c: Similarly.
6738 * romp/romp.h: Similarly.
6739 * rs6000/rs6000-protos.h: Similarly.
6740 * rs6000/rs6000.c: Similarly.
6741 * rs6000/rs6000.h: Similarly.
6742 * rs6000/sysv4.h: Similarly.
6743 * sh/sh-protos.h: Similarly.
6744 * sh/sh.c: Similarly.
6745 * sh/sh.h: Similarly.
6746 * sparc/sparc-protos.h: Similarly.
6747 * sparc/sparc.c: Similarly.
6748 * sparc/sparc.h: Similarly.
6749 * vax/vax.c: Similarly.
6750 * vax/vax.h: Similarly.
6751 * vax/vms.h: Similarly.
6752 * we32k/we32k.c: Similarly.
6753 * we32k/we32k.h: Similarly.
6755 Fri Jul 6 11:47:59 2001 Jeffrey A Law (law@cygnus.com)
6757 * basic-block.h (first_insn_after_basic_block_note): Declare.
6758 * flow.c (first_insn_after_basic_block_note): Define. Moved
6760 * ssa.c (first_insn_after_basic_block_note): Remove.
6761 * ssa-dce.c (find_inherently_necessary): Consider BARRIERs
6763 (ssa_eliminate_dead_code): Properly update the CFG and PHI
6764 nodes when we find a dead conditional branch. Insert BARRIERs
6765 after any blocks with no successors, but which do not have
6768 2001-07-06 Zack Weinberg <zackw@stanford.edu>
6770 * varray.c (varray_check_failed): Use internal_error.
6772 2001-07-05 Andrew Haley <aph@redhat.com>
6774 * Makefile.in (LIB2_DIVMOD_FUNCS): New.
6775 (LIB2FUNCS): Move divmod functions to LIB2_DIVMOD_FUNCS.
6776 * mklibgcc.in: Compile LIB2_DIVMOD_FUNCS.
6778 2001-07-02 Jason Merrill <jason_merrill@redhat.com>
6780 * dwarf2out.c (mem_loc_descriptor): Only look through a constant pool
6781 reference if the target constant is also a SYMBOL_REF.
6783 2001-07-05 Eric Christopher <echristo@redhat.com>
6785 * config/mips/mips.h (MASK_MIPS3900): Remove.
6786 (MASK_MIPS16,MASK_NO_CHECK_ZERO_DIV,MASK_CHECK_RANGE_DIV,
6787 MASK_UNINIT_CONST_IN_RODATA): Change for 3900 mask removal.
6788 (TARGET_MIPS3900): Change to use mips_arch.
6789 (TARGET_MIPS4000): New.
6790 (TARGET_MIPS4100): New.
6791 (TARGET_MIPS4300): New.
6792 (TARGET_SWITCHES): Change 3900 and 4650 options to NULL.
6793 (SUBTARGET_TARGET_OPTIONS): Add -march. Change help text
6795 (GENERATE_BRANCHLIKELY): Move TARGET_MIPS3900.
6796 (ISA_HAS_BRANCHLIKELY): To here.
6797 (CC1_CPU_SPEC): New.
6798 (CC1_SPEC): Use here. Remove 4650 and 3900 options.
6799 (mips_arch_string): Declare.
6800 (mips_arch): Declare.
6801 (TARGET_OPTIONS): Add -march and -mtune.
6803 * config/mips/mips.c (mips_arch_string): New.
6805 (override_options): Handle -march for codegen and -mtune
6806 for scheduling. Use mips_arch. Move tx39 target default here.
6807 (mips_parse_cpu): Move error message to override_options.
6809 * config/mips/r3900.h (TARGET_DEFAULT): Remove.
6811 * config/mips/mips.md: Use TARGET_MIPS4000 and TARGET_MIPS4300.
6813 * doc/invoke.texi (Option Summary): Add -march and -mtune entries.
6814 (MIPS Options): Ditto. Change mcpu entry to historical text.
6816 2001-07-05 H.J. Lu (hjl@gnu.org)
6818 * config/mips/mips.c (mips_parse_cpu): New function to parse
6821 2001-07-05 Jim Wilson <wilson@redhat.com>
6823 * config/ia64/lib1funcs.asm: Revert 2001-07-02 change.
6824 * config/ia64/t-ia64: Likewise.
6825 (LIB1ASMFUNCS): Update comment.
6827 2001-07-05 David Edelsohn <edelsohn@gnu.org>
6829 * doc/install.texi (Install GCC: Binaries): Fix typo.
6831 2001-07-04 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6833 * config/m68hc11/m68hc11.md ("*ashlsi3"): Operand 1 can be a memory
6834 reference using the stack pointer, adjust it since we push Y
6836 ("*ashrsi3"): Likewise.
6837 ("*lshrsi3"): Likewise.
6839 2001-07-05 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6841 * config/m68hc11/m68hc11.h (RETURN_ADDR_RTX): Fix return address
6842 when -fomit-frame-pointer is used.
6844 2001-07-05 Jeffrey Oldham <oldham@codesourcery.com>
6846 * flow.c: Reverse Jan Hubicka's patch of 02July2001.
6847 (try_redirect_by_replacing_jump): Reverse updating properly the
6848 count and frequency information. Reverse removing cc0 setter.
6849 (forwarder_block_p): Reverse fixing for fallthru blocks.
6851 2001-07-05 DJ Delorie <dj@redhat.com>
6853 * gcc.c (TARGET_OPTION_TRANSLATE_TABLE): New.
6854 (translate_options): If the above is defined, use it to map
6855 given options to new options.
6856 * doc/tm.texi: Document it.
6858 2001-07-05 Brad Lucier <lucier@math.purdue.edu>
6859 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6861 * doc/invoke.texi (Optimize Options): Document that -fgcse may
6862 cause programs using computed gotos to run more slowly.
6864 2001-07-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6866 * doc/install.texi (Specific): Markup, spelling and typo fixes.
6868 Consistently require binutils 2.11.2, not prereleases.
6869 (Specific, decstation-*): Canonicalize as mips-dec-*.
6870 (Specific, i?86-*-sco3.2v5*): Remove make bootstrap requirement,
6872 (Specific, m68k-altos): Removed reference to README.altos, deleted.
6873 (Specific, mips-*): Reword MIPS C compiler requirements.
6874 (Specific, powerpc*-*-*): New, mention --with-cpu once.
6875 (Specific, sunv5): Removed, obsolete.
6877 2001-07-05 Nathan Sidwell <nathan@codesourcery.com>
6879 * dwarf2out.c (output_loc_list): Use an all ones mask for
6880 .text asm output and don't rely on long long
6881 literals. Reformat some long lines.
6883 2001-07-05 Andreas Jaeger <aj@suse.de>
6885 * doc/gcc.texi (GNU/Linux): Remove accidental re-add of GPL
6888 2001-07-04 Daniel Berlin <dan@cgsoftware.com>
6890 * dwarf2out.c (dwarf2out_define): Update comment.
6891 (dwarf2out_undef): Ditto.
6892 (dwarf2out_start_source_file): Ditto.
6893 (dwarf2out_end_source_file): Ditto.
6894 (dwarf2out_finish): Output DW_MACINFO_end_file for primary file,
6895 since we never call the start/end debug hook for the primary file.
6897 2001-07-04 Kazu Hirata <kazu@hxi.com>
6899 * config/h8300/h8300.c (get_shift_alg): Remove an extra operand
6902 2001-07-04 Nathan Sidwell <nathan@codesourcery.com>
6904 * cppinit.c (remove_dup_dirs): Inform if a system include
6905 directory is being reordered.
6906 * doc/invoke.texi (Directory Options): GCC warns if you hide a
6908 * doc/cpp.texi (Search Paths): Likewise.
6909 * doc/gcc.texi (Interoperation): Remove information about
6912 2001-07-04 Nathan Sidwell <nathan@codesourcery.com>
6914 * varray.h (VARRAY_TOP_GENERIC_PTR): Remove spurious parameter.
6915 (VARRAY_TOP_CHAR_PTR): Likewise.
6917 2001-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6919 * gcc.c (process_command): Don't assign elements of a const char*.
6921 Wed Jul 4 13:40:02 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6923 * emit-rtl.c (change_address): Don't abort if invalid address while
6924 reload is in progress.
6926 2001-07-04 Daniel Berlin <dan@cgsoftware.com>
6928 * c-lex.c (cb_file_change): Pass line number to
6929 debug_start_source_file.
6930 (cb_undefine): Pass correct line number to debug_undef.
6932 * toplev.c (debug_start_source_file): Add line number to
6933 parameters. Pass it along to dwarf2out_start_source_file.
6934 (decode_g_option): Stop resetting debug level back to normal when
6935 we change debug formats, unless the current level is
6936 none. (Before, -g3 -gdwarf-2 would use debug level 2, rather than
6939 * toplev.h (debug_start_source_file): Add line number to
6942 * dwarf2out.h (dwarf2out_start_source_file): Add line number to
6945 * dwarf2out.c (dwarf2out_start_source_file): Add line number to
6947 Output debug_macinfo data for starting file if requested.
6948 (dwarf2out_end_source_file): Output debug_macinfo data for ending
6950 (dwarf2out_define): Output debug_macinfo data for defining a macro
6952 (dwarf2out_undef): Output debug_macinfo data for undefining a
6954 (DEBUG_MACINFO_SECTION): New. DWARF2 macro info section name.
6955 (DEBUG_MACINFO_SECTION_LABEL): New. DWARF2 macro info section label.
6956 (macinfo_section_label): New. DWARF2 macro info section label.
6957 (dwarf2out_init): If we want macro info, output the start label
6959 (dwarf2out_finish): If we want macro info, add a DW_AT_macro_info
6960 attribute to the compilation unit die pointing to the macro info.
6962 2001-07-04 Daniel Berlin <dan@cgsoftware.com>
6964 * dwarf2out.c (new_loc_list): Move to inside #ifdef
6965 DWARF2_DEBUGGING_INFO.
6966 (add_loc_descr_to_loc_list): Ditto.
6967 (output_loc_list): Ditto.
6968 Also, fix thinko in curr not being initialized.
6969 (gen_internal_sym): Ditto.
6971 Wed Jul 4 13:40:02 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6973 * emit-rtl.c (replace_equiv_address): New function.
6974 * expr.h (replace_equiv_address): New declaration.
6975 * explow.c (validize_mem): Call it instead of change_address and
6976 also call if -fforce-addr and address is constant.
6977 * expr.c: Replace more calls to change_address with adjust_address
6978 and/or replace_equiv_address or to validize_mem.
6979 * function.c, regmove.c, config/alpha/alpha.c: Likewise.
6980 * config/arm/arm.md, config/clipper/clipper.md: Likewise.
6981 * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
6982 * config/i370/i370.md, config/i860/i860.md: Likewise.
6983 * config/i960/i960.md, config/mips/mips.c: Likewise.
6984 * config/mips/mips.md, config/pa/pa.md: Likewise.
6985 * config/pdp11/pdp11.md, config/rs6000/rs6000.c: Likewise.
6986 * config/rs6000/rs6000.md, config/sh/sh.md: Likewise.
6988 2001-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6990 * bitmap.c (bitmap_union_of_diff): Don't use BITMAP_ALLOCA.
6992 * bitmap.h (BITMAP_ALLOCA): Don't pass alloca as an argument to a
6995 2001-07-04 Joseph S. Myers <jsm28@cam.ac.uk>
6997 * doc/include: New directory.
6998 * doc/fdl.texi: Move to doc/include/fdl.texi.
6999 * doc/texinfo.tex: Move to doc/include/texinfo.tex.
7000 * doc/include/funding.texi, doc/include/gpl.texi: New files.
7001 * doc/gcc.texi: Use funding.texi and gpl.texi.
7002 * Makefile.in ($(docdir)/cpp.info, $(docdir)/gcc.info,
7003 $(docdir)/cppinternals.info, cpp.dvi. gcc.dvi. cppinternals.dvi):
7004 Update dependencies and use -I $(docdir)/include.
7006 2001-07-04 Anthony Green <green@redhat.com>
7008 * config/v850/t-v850 (v850-c.o): Add missing dependencies.
7010 2001-07-04 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7012 * doc/install.texi (sparc64-*-*): Remove garbage.
7014 Wed Jul 4 09:07:44 2001 Jan van Male <jan.vanmale@fenk.wau.nl>
7016 * i386.c (ix86_expand_builtin, case IX86_BUILTIN_SETPS):
7017 Fix typo in last change to use adjust_address.
7019 2001-07-04 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7021 * doc/install.texi (Specific): Update information for *-*-solaris*.
7023 Tue Jul 3 22:33:15 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7025 * explow.c (plus_constant_wide): Reinitialize Y for restart.
7027 2001-07-03 Stan Shebs <shebs@apple.com>
7029 * config/darwin.h (SECTION_FUNCTION): Remove WAS_TEXT argument, remove
7030 case for flag_no_mach_text_sections.
7031 (EXTRA_SECTION_FUNCTIONS): Remove arg from uses of SECTION_FUNCTION.
7032 * config/darwin.c (flag_no_mach_text_sections): Remove.
7033 * config/darwin-protos.h (darwin_init_pragma): Remove decl.
7035 Tue Jul 3 15:35:52 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7037 * explow.c (plus_constant_wide, case PLUS): Call find_constant_term
7038 and avoid checking for constant as first operand.
7039 * recog.c (find_constant_term_loc): No longer static.
7040 (adj_offettable_operand): Delete.
7041 * rtl.h (adj_offsettable_operand): Delete declaration.
7042 (find_constant_term): Add declaration.
7043 * caller-save.c: Replace calls to adj_offsettable_operand with calls
7045 * config/arm/arm.c, config/c4x/c4x.c: Likewise.
7046 * config/clipper/clipper.md, config/h8300/h8300.c: Likewise.
7047 * config/i386/i386.c, config/i386/i386.md: Likewise.
7048 * config/i860/i860.c, config/i960/i960.c: Likewise.
7049 * config/i960/i960.md, config/m68hc11/m68hc11.c: Likewise.
7050 * config/m68k/m68k.c, config/m68k/m68k.md: Likewise.
7051 * config/m88k/m88k.md, config/mcore/mcore.c: Likewise.
7052 * config/mips/mips.c, config/mips/mips.md: Likewise.
7053 * config/mn10200/mn10200.c, config/mn10300/mn10300.c: Likewise.
7054 * config/ns32k/ns32k.c, config/ns32k/ns32k.md: Likewise.
7055 * config/pa/pa.c, config/pdp11/pdp11.c: Likewise.
7056 * config/pdp11/pdp11.md, config/sh/sh.c, config/v850/v850.c: Likewise.
7057 * config/vax/vax.md, config/ns32k/ns32k.c: Likewise.
7058 * config/ns32k/ns32k.md: Likewise.
7060 2001-07-03 Zack Weinberg <zackw@stanford.edu>
7062 * rtl.c (copy_rtx): Handle 'T' format letter.
7063 * gensupport.c (collect_insn_data): Likewise.
7064 * print-rtl.c (print_rtx): Print 'T' slots like 's'.
7066 2001-07-03 Nick Clifton <nickc@cambridge.redhat.com>
7068 * doc/invoke.texi (Directory Options): Specifiy range for <N> in
7069 -B option. Use 'dir' not 'foo' as example directory name.
7071 2001-07-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7073 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7074 Fixes PRs bootstrap/3067, bootstrap/3249, bootstrap/3275.
7076 2001-07-03 Joseph S. Myers <jsm28@cam.ac.uk>
7078 * doc/cppinternals.texi: Improve formatting and logical markup.
7080 2001-07-03 Andreas Jaeger <aj@suse.de>
7082 * Makefile.in (insn-recog.o): Add dependency on reload.h.
7084 * genrecog.c (write_header): Include reload.h for prototypes in
7087 2001-07-03 Neil Booth <neil@daikokuya.demon.co.uk>
7090 * i386/cygwin.h (VALID_MACHINE_DECL_ATTRIBUTE,
7091 VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
7092 * i386/i386-protos.h (i386_pe_valid_decl_attribute_p,
7093 i386_pe_valid_type_attribute_p): Add.
7094 * i386/i386.c (TARGET_INITIALIZER): Override for cygwin targets.
7095 * i386/winnt.c (i386_valid_decl_attribute_p): Return directly.
7097 Mon Jul 2 21:52:19 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7099 * explow.c (plus_constant_wide, case LO_SUM): New case.
7100 (plus_constant_for_output_wide): Delete.
7101 * rtl.h (plus_constant_for_output): Delete.
7102 * alias.c (canon_rtx, init_alias_analysis): Call plus_constant
7103 instead of plus_constant_for_output.
7104 * recog.c (offsettable_address_p, adj_offsettable_operand): Likewise.
7105 * config/darwin.c, config/arm/arm.c, config/m68k/m68k.c: Likewise.
7106 * config/m88k/m88k.c, config/mips/mips.c, config/pa/pa.c: Likewise.
7107 * config/rs6000/rs6000.c, config/sparc/sparc.c: Likewise.
7108 * config/sparc/sparc.md: Likewise.
7109 Convert some change_address calls to adjust_address.
7111 2001-07-03 Joseph S. Myers <jsm28@cam.ac.uk>
7113 * doc/extend.texi, doc/gcc.texi, doc/invoke.texi, doc/md.texi,
7114 doc/rtl.texi, doc/tm.texi: Improve formatting. Improve
7115 documentation of -std and -Wwrite-strings.
7117 2001-07-02 Geoffrey Keating <geoffk@redhat.com>
7119 * cse.c (canon_hash): Don't register registers in very small
7120 register classes, as extending their lifetime might cause
7123 Mon Jul 2 23:14:00 CEST 2001 Jan Hubicka <jh@suse.cz>
7125 * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
7127 * flow.c (forwarder_block_p): Fix for fallthru blocks.
7128 (try_redirect_by_replacing_jump): Update properly the count
7129 and frequency information.
7131 Mon Jul 2 14:20:13 2001 Jeffrey A Law (law@cygnus.com)
7133 * toplev.c (dump_file_index): Move SSA dumps just after first
7135 (dump_file): Corresponding changes.
7136 (rest_of_compilation): Move SSA path to just after the first
7138 * doc/gcc.texi (Passes): Update due to movement of SSA path.
7139 * doc/invoke.texi: Update dump file #s as they were completely
7140 out of date with reality.
7142 2001-07-02 Geoffrey Keating <geoffk@redhat.com>
7144 * doc/tm.texi (Frame Layout): Document STACK_PUSH_CODE.
7146 * expr.c (emit_move_insn_1): Deal with non-default
7149 * expr.c (emit_single_push_insn): Fix warning.
7151 2001-07-02 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
7153 * expr.c (emit_move_insn_1): Avoid modifying
7154 cfun->expr->x_stack_pointer when PUSH_ROUNDING is defined.
7156 Mon Jul 2 15:33:31 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7158 * emit-rtl.c (adjust_address): New function.
7159 * expr.h (adjust_address): Add declaration.
7160 * builtins.c: Replace some calls to change_address with calls to it
7162 * caller-save.c, dwarf2out.c, except.c, expmed.c, expr.c: Likewise.
7163 * function.c, config/a29k/a29k.md, config/alpha/alpha.c: Likewise.
7164 * config/arm/arm.c, config/convex/convex.c: Likewise.
7165 * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
7166 * config/i386/i386.c, config/i386/i386.md: Likewise.
7167 * config/ia64/ia64.c, config/ia64/ia64.md: Likewise.
7168 * config/m32r/m32r.c, config/m68k/m68k.md: Likewise.
7169 * config/m88k/m88k.c, config/mips/mips.md: Likewise.
7170 * config/ns32k/ns32k.c, config/rs6000/rs6000.c: Likewise.
7171 * config/sh/sh.c, config/sparc/sparc.md: Likewise.
7173 2001-07-02 Jim Wilson <wilson@redhat.com>
7175 * config/ia64/ia64.h: Delete obsolete lib1funcs.asm comment.
7177 2001-07-02 Steve Ellcey <sje@cup.hp.com>
7179 * config/ia64/t-ia64: Change LIB1ASMFUNCS to use single underscore.
7180 * config/ia64/lib1funcs.asm: Change macro names to match t-ia64.
7182 2001-07-02 Zack Weinberg <zackw@stanford.edu>
7184 * cppinit.c (lang_defaults): New table.
7185 (set_lang): Just read from lang_defaults into the live options
7188 2001-07-02 Zack Weinberg <zackw@stanford.edu>
7190 * Makefile.in (doc): Depend on $(GENERATED_MANPAGES).
7191 * doc/.cvsignore: Add gcc.1, cpp.1, gcov.1.
7192 * doc/gcc.1, doc/cpp.1, doc/gcov.1: Removed.
7194 2001-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7196 * doc/install.texi: Various spelling and markup fixes.
7197 (Installing GCC): Component specific installation instructions are
7200 Warn about removing old install dir in the presence of shared libs.
7201 (Configuration): Invoke with options target to match configure
7203 Consistently refer to gas, gld pathnames.
7204 Invert --enable-multilib documentation.
7205 Remove references to old compiler versions.
7207 Mon Jul 2 12:50:51 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7209 * flow.c (try_simplify_condjump): Fix typo in updating fallthru flags.
7211 2001-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7213 * doc/install.texi (Specific, mips*-sgi-irix4): Split from IRIX 5
7215 (Specific, mips*-sgi-irix5): Note IDO download.
7216 Reworded MIPS C hints.
7217 Use GNU as instead of GAS.
7219 Removed SGI Freeware reference, IRIX 6 only.
7220 (Specific, mips*-sgi-irix6): Removed ranlib caveats, obsolete.
7221 Note N64 library requirement/workaround.
7223 Complete list of structure passing bug victims.
7225 2001-07-02 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7227 * doc/install.texi: Remove CVS Id.
7229 2001-07-02 Andreas Jaeger <aj@suse.de>
7231 * ssa-dce.c (note_inherently_necessary_set): Add unused attribute.
7232 (find_inherently_necessary): Remove unused variable.
7234 2001-07-02 Nathan Sidwell <nathan@codesourcery.com>
7236 * c-common.h (TDI_inlined): New ast dump phase.
7237 (dump_flag_name): New function.
7238 * c-dump.c (dump_files): Add inlined phase.
7239 (dump_flag_name): Define.
7240 * doc/invoke.texi (-fdump-ast-inlined): Document.
7242 Mon Jul 2 06:29:36 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7244 * stor-layout.c (layout_decl): Revert change to handling of alignment
7247 Sun Jul 1 11:53:52 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7249 * c-common.c (decl_attributes, case A_MODE): Don't call layout_decl
7252 2001-07-01 Geoffrey Keating <geoffk@redhat.com>
7254 * doc/tm.texi (FUNCTION_ARG): Document that the last call
7257 2001-07-01 Nathan Sidwell <nathan@codesourcery.com>
7259 * tlink.c (recompile_files): Remove COMPILER_PATH and
7260 LIBRARY_PATH from the environment.
7262 2001-07-01 Zack Weinberg <zackw@stanford.edu>
7264 * c-common.h (enum rid): Add RID_FIRST_AT, RID_LAST_AT,
7265 RID_LAST_PQ. Move RID_FIRST_PQ down with the other FIRST/LAST
7267 (OBJC_IS_AT_KEYWORD, OBJC_IS_PQ_KEYWORD): New macros.
7269 * c-parse.in (OBJC_STRING): Kill.
7270 (objc_string): Decompose to [objc_string] '@' STRING.
7271 (reswords): Take the leading '@' off all the Objective C keywords.
7272 (objc_rid_sans_at): Kill.
7273 (init_reswords): Don't initialize it.
7274 (yylexname): Use OBJC_IS_AT_KEYWORD and OBJC_IS_PQ_KEYWORD.
7275 (_yylex): Kill reconsider label. Look ahead one token after
7276 an '@'; if we get an identifier, check whether it's an
7277 Objective C @-keyword. If so, return the keyword. Otherwise,
7278 put back the token and return the '@' as a terminal.
7280 * cpplib.c (lex_macro_node): Remove unnecessary check for
7281 leading '@' on identifier. Clarify control flow and commentary.
7283 Sun Jul 1 11:53:52 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7285 * cse.c (new_label_ref): Variable deleted.
7286 (insert): Remove set of new_label_ref.
7287 (check_for_label_ref): New function.
7288 (cse_basic_block): Don't check new_label_ref; call check_for_label_ref.
7290 See ChangeLog.5 for earlier changes.